Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrated ListItemField tests to @testing-library/react #1304

Merged
merged 8 commits into from
Feb 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 0 additions & 52 deletions packages/uniforms-antd/__tests__/ListItemField.tsx

This file was deleted.

1 change: 1 addition & 0 deletions packages/uniforms-antd/__tests__/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ describe('@RTL', () => {
suites.testListField(theme.ListField, {
getListAddField: screen => screen.getByRole('img', { name: 'plus-square' }),
});
suites.testListItemField(theme.ListItemField);
suites.testLongTextField(theme.LongTextField);
// FIXME: AntD number input doesn't work with new RTL test implementation
// suites.testNumField(antd.NumField);
Expand Down
52 changes: 0 additions & 52 deletions packages/uniforms-bootstrap3/__tests__/ListItemField.tsx

This file was deleted.

1 change: 1 addition & 0 deletions packages/uniforms-bootstrap3/__tests__/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ describe('@RTL', () => {
suites.testListField(theme.ListField, {
getListAddField: screen => screen.getByRole('button'),
});
suites.testListItemField(theme.ListItemField);
suites.testLongTextField(theme.LongTextField);
suites.testNestField(theme.NestField);
suites.testNumField(theme.NumField);
Expand Down
52 changes: 0 additions & 52 deletions packages/uniforms-bootstrap4/__tests__/ListItemField.tsx

This file was deleted.

1 change: 1 addition & 0 deletions packages/uniforms-bootstrap4/__tests__/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ describe('@RTL', () => {
suites.testListField(theme.ListField, {
getListAddField: screen => screen.getByRole('button'),
});
suites.testListItemField(theme.ListItemField);
suites.testLongTextField(theme.LongTextField);
suites.testNestField(theme.NestField);
suites.testNumField(theme.NumField);
Expand Down
52 changes: 0 additions & 52 deletions packages/uniforms-bootstrap5/__tests__/ListItemField.tsx

This file was deleted.

1 change: 1 addition & 0 deletions packages/uniforms-bootstrap5/__tests__/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ describe('@RTL', () => {
suites.testListField(theme.ListField, {
getListAddField: screen => screen.getByRole('button'),
});
suites.testListItemField(theme.ListItemField);
suites.testLongTextField(theme.LongTextField, {
testMinMaxLength: true,
});
Expand Down
52 changes: 0 additions & 52 deletions packages/uniforms-material/__tests__/ListItemField.tsx

This file was deleted.

1 change: 1 addition & 0 deletions packages/uniforms-material/__tests__/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ describe('@RTL', () => {
suites.testListField(theme.ListField, {
getListAddField: screen => screen.getByText(/\+/),
});
suites.testListItemField(theme.ListItemField);
suites.testLongTextField(theme.LongTextField);
suites.testNestField(theme.NestField, { skipInMuiTests: true });
suites.testNumField(theme.NumField);
Expand Down
52 changes: 0 additions & 52 deletions packages/uniforms-mui/__tests__/ListItemField.tsx

This file was deleted.

1 change: 1 addition & 0 deletions packages/uniforms-mui/__tests__/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ describe('@RTL', () => {
suites.testListField(theme.ListField, {
getListAddField: screen => screen.getByText(/\+/),
});
suites.testListItemField(theme.ListItemField);
suites.testLongTextField(theme.LongTextField);
suites.testNestField(theme.NestField, { skipInMuiTests: true });
suites.testNumField(theme.NumField);
Expand Down
Loading
Loading