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

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');