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 ListField tests to @testing-library/react #1299

Merged
merged 4 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
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
Loading