Skip to content

Commit

Permalink
Migrated ListField tests to @testing-library/react (#1299)
Browse files Browse the repository at this point in the history
  • Loading branch information
piotrpospiech authored Feb 23, 2024
1 parent 1a6ca83 commit 33c0138
Show file tree
Hide file tree
Showing 17 changed files with 125 additions and 1,290 deletions.
183 changes: 0 additions & 183 deletions packages/uniforms-antd/__tests__/ListField.tsx

This file was deleted.

2 changes: 2 additions & 0 deletions packages/uniforms-antd/__tests__/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ describe('@RTL', () => {
suites.testListDelField(theme.ListDelField);
suites.testListField(theme.ListField, {
getListAddField: screen => screen.getByRole('img', { name: 'plus-square' }),
testTooltip: true,
testStyle: true,
});
suites.testLongTextField(theme.LongTextField);
// FIXME: AntD number input doesn't work with new RTL test implementation
Expand Down
175 changes: 0 additions & 175 deletions packages/uniforms-bootstrap3/__tests__/ListField.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 @@ -47,6 +47,7 @@ describe('@RTL', () => {
suites.testListDelField(theme.ListDelField);
suites.testListField(theme.ListField, {
getListAddField: screen => screen.getByRole('button'),
disableInlineError: true,
});
suites.testLongTextField(theme.LongTextField);
suites.testNestField(theme.NestField);
Expand Down
Loading

0 comments on commit 33c0138

Please sign in to comment.