package.json: update eslint-plugin-jest-dom

Also, add @testing-library/dom because this is needed by the newer
user-event. Fix tests for new style standards.
This commit is contained in:
Jacob Kozol 2021-10-14 14:22:09 +02:00 committed by Sanne Raymaekers
parent 471063522c
commit c56ae8328b
3 changed files with 131 additions and 19403 deletions

19525
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -53,6 +53,7 @@
"@babel/preset-flow": "7.14.5",
"@babel/preset-react": "7.8.3",
"@redhat-cloud-services/frontend-components-config": "4.3.9",
"@testing-library/dom": "8.9.0",
"@testing-library/jest-dom": "5.14.1",
"@testing-library/react": "11.0.4",
"@testing-library/user-event": "13.3.0",
@ -66,7 +67,7 @@
"eslint": "6.8.0",
"eslint-config-prettier": "6.15.0",
"eslint-loader": "3.0.3",
"eslint-plugin-jest-dom": "3.2.4",
"eslint-plugin-jest-dom": "3.9.2",
"eslint-plugin-react": "7.18.3",
"eslint-plugin-testing-library": "3.10.0",
"git-revision-webpack-plugin": "5.0.0",

View file

@ -676,7 +676,7 @@ describe('Click through all steps', () => {
// leave AWS account id empty
screen.getByRole('button', { name: /Next/ }).click();
expect(screen.queryByText('Embed an activation key and register systems on first boot')).toBeNull();
expect(screen.queryByText('Embed an activation key and register systems on first boot')).not.toBeInTheDocument();
// fill in AWS to proceed
userEvent.type(screen.getByTestId('aws-account-id'), '012345678901');
@ -692,7 +692,7 @@ describe('Click through all steps', () => {
expect(screen.queryByText(
'Review the information and click the Create button to create your image using the following criteria.'
)).toBeNull();
)).not.toBeInTheDocument();
// fill in the registration
await screen.findByTestId('subscription-activation');
@ -728,7 +728,7 @@ describe('Click through all steps', () => {
expect(screen.queryByText(
'Review the information and click the Create button to create your image using the following criteria.'
)).toBeNull();
)).not.toBeInTheDocument();
// fill in the registration
await screen.findByTestId('subscription-activation');