@@ -39,10 +39,10 @@ | |||
"@emotion/jest": "11.10.5", | |||
"@swc/core": "1.3.23", | |||
"@swc/jest": "0.2.24", | |||
"@testing-library/dom": "8.13.0", | |||
"@testing-library/dom": "8.19.0", | |||
"@testing-library/jest-dom": "5.16.5", | |||
"@testing-library/react": "12.1.5", | |||
"@testing-library/user-event": "14.0.4", | |||
"@testing-library/user-event": "14.4.3", | |||
"@types/cheerio": "0.22.31", | |||
"@types/classnames": "2.3.1", | |||
"@types/d3-array": "3.0.3", |
@@ -19,7 +19,7 @@ | |||
*/ | |||
import { screen, within } from '@testing-library/react'; | |||
import userEvent from '@testing-library/user-event'; | |||
import { UserEvent } from '@testing-library/user-event/dist/types/setup'; | |||
import { UserEvent } from '@testing-library/user-event/dist/types/setup/setup'; | |||
import selectEvent from 'react-select-event'; | |||
import { byLabelText, byRole, byText } from 'testing-library-selector'; | |||
import { getMyProjects, getScannableProjects } from '../../../api/components'; |
@@ -20,7 +20,7 @@ | |||
import { screen, waitFor, within } from '@testing-library/react'; | |||
import userEvent from '@testing-library/user-event'; | |||
import { UserEvent } from '@testing-library/user-event/dist/types/setup'; | |||
import { UserEvent } from '@testing-library/user-event/dist/types/setup/setup'; | |||
import ComputeEngineServiceMock from '../../../api/mocks/ComputeEngineServiceMock'; | |||
import { renderAppWithAdminContext } from '../../../helpers/testReactTestingUtils'; | |||
import { TaskStatuses, TaskTypes } from '../../../types/tasks'; |
@@ -20,7 +20,7 @@ | |||
import { screen } from '@testing-library/react'; | |||
import userEvent from '@testing-library/user-event'; | |||
import { UserEvent } from '@testing-library/user-event/dist/types/setup'; | |||
import { UserEvent } from '@testing-library/user-event/dist/types/setup/setup'; | |||
import { times } from 'lodash'; | |||
import * as React from 'react'; | |||
import selectEvent from 'react-select-event'; |
@@ -53,6 +53,9 @@ it('should correctly navigate through TAB', async () => { | |||
await user.tab({ shift: true }); | |||
expect(await ui.afterLink.find()).toHaveFocus(); | |||
await user.tab({ shift: true }); | |||
expect(ui.helpIcon.get()).toHaveFocus(); | |||
await user.tab(); | |||
await user.tab(); | |||
await user.tab(); | |||
await user.tab({ shift: true }); | |||
expect(await ui.afterLink.find()).toHaveFocus(); |
@@ -19,7 +19,7 @@ | |||
*/ | |||
import { act, render } from '@testing-library/react'; | |||
import userEvent from '@testing-library/user-event'; | |||
import { UserEvent } from '@testing-library/user-event/dist/types/setup'; | |||
import { UserEvent } from '@testing-library/user-event/dist/types/setup/setup'; | |||
import * as React from 'react'; | |||
import { byRole } from 'testing-library-selector'; | |||
import Toggler from '../Toggler'; |
@@ -19,7 +19,7 @@ | |||
*/ | |||
import { screen, waitFor } from '@testing-library/react'; | |||
import userEvent from '@testing-library/user-event'; | |||
import { UserEvent } from '@testing-library/user-event/dist/types/setup'; | |||
import { UserEvent } from '@testing-library/user-event/dist/types/setup/setup'; | |||
import * as React from 'react'; | |||
import { byLabelText, byRole, byText } from 'testing-library-selector'; | |||
import { getAlmSettingsNoCatch } from '../../../api/alm-settings'; |
@@ -19,7 +19,7 @@ | |||
*/ | |||
import { screen, within } from '@testing-library/react'; | |||
import userEvent from '@testing-library/user-event'; | |||
import { UserEvent } from '@testing-library/user-event/dist/types/setup'; | |||
import { UserEvent } from '@testing-library/user-event/dist/types/setup/setup'; | |||
import * as React from 'react'; | |||
import UserTokensMock from '../../../../api/mocks/UserTokensMock'; | |||
import { mockComponent } from '../../../../helpers/mocks/component'; | |||
@@ -96,10 +96,14 @@ it('should render correctly and allow navigating between the different steps', a | |||
await clickButton(user, 'onboarding.build.cfamily'); | |||
// OS's | |||
[OSs.Linux, OSs.Windows, OSs.MacOS].forEach(async (os) => { | |||
await clickButton(user, `onboarding.build.other.os.${os}`); | |||
assertCFamilyStepIsCorrectlyRendered(os); | |||
}); | |||
await clickButton(user, `onboarding.build.other.os.${OSs.Linux}`); | |||
assertCFamilyStepIsCorrectlyRendered(OSs.Linux); | |||
await clickButton(user, `onboarding.build.other.os.${OSs.Windows}`); | |||
assertCFamilyStepIsCorrectlyRendered(OSs.Windows); | |||
await clickButton(user, `onboarding.build.other.os.${OSs.MacOS}`); | |||
assertCFamilyStepIsCorrectlyRendered(OSs.MacOS); | |||
//// Analysis step: Other | |||
await clickButton(user, 'onboarding.build.other'); |
@@ -19,7 +19,7 @@ | |||
*/ | |||
import { screen } from '@testing-library/react'; | |||
import userEvent from '@testing-library/user-event'; | |||
import { UserEvent } from '@testing-library/user-event/dist/types/setup'; | |||
import { UserEvent } from '@testing-library/user-event/dist/types/setup/setup'; | |||
import * as React from 'react'; | |||
import UserTokensMock from '../../../../api/mocks/UserTokensMock'; | |||
import { mockComponent } from '../../../../helpers/mocks/component'; |
@@ -1596,9 +1596,9 @@ __metadata: | |||
languageName: node | |||
linkType: hard | |||
"@testing-library/dom@npm:8.13.0, @testing-library/dom@npm:^8.0.0": | |||
version: 8.13.0 | |||
resolution: "@testing-library/dom@npm:8.13.0" | |||
"@testing-library/dom@npm:8.19.0, @testing-library/dom@npm:^8.11.1": | |||
version: 8.19.0 | |||
resolution: "@testing-library/dom@npm:8.19.0" | |||
dependencies: | |||
"@babel/code-frame": ^7.10.4 | |||
"@babel/runtime": ^7.12.5 | |||
@@ -1608,7 +1608,7 @@ __metadata: | |||
dom-accessibility-api: ^0.5.9 | |||
lz-string: ^1.4.4 | |||
pretty-format: ^27.0.2 | |||
checksum: 880f1872b9949800d4444e3bdbd03df86d6f41ec7c27136dff1da29e87d2df2d7ee904afcdf895ffce351c25bd12119117eae023354d50e707ad56d43b2ed3ed | |||
checksum: 6bb93fef96703b6c47cf1b7cc8f71d402a9576084a94ba4e9926f51bd7bb1287fbb4f6942d82bd03fc6f3d998ae97e60f6aea4618f3a1ce6139597d2a4ecb7b9 | |||
languageName: node | |||
linkType: hard | |||
@@ -1628,9 +1628,9 @@ __metadata: | |||
languageName: node | |||
linkType: hard | |||
"@testing-library/dom@npm:^8.11.1": | |||
version: 8.19.0 | |||
resolution: "@testing-library/dom@npm:8.19.0" | |||
"@testing-library/dom@npm:^8.0.0": | |||
version: 8.13.0 | |||
resolution: "@testing-library/dom@npm:8.13.0" | |||
dependencies: | |||
"@babel/code-frame": ^7.10.4 | |||
"@babel/runtime": ^7.12.5 | |||
@@ -1640,7 +1640,7 @@ __metadata: | |||
dom-accessibility-api: ^0.5.9 | |||
lz-string: ^1.4.4 | |||
pretty-format: ^27.0.2 | |||
checksum: 6bb93fef96703b6c47cf1b7cc8f71d402a9576084a94ba4e9926f51bd7bb1287fbb4f6942d82bd03fc6f3d998ae97e60f6aea4618f3a1ce6139597d2a4ecb7b9 | |||
checksum: 880f1872b9949800d4444e3bdbd03df86d6f41ec7c27136dff1da29e87d2df2d7ee904afcdf895ffce351c25bd12119117eae023354d50e707ad56d43b2ed3ed | |||
languageName: node | |||
linkType: hard | |||
@@ -1675,12 +1675,12 @@ __metadata: | |||
languageName: node | |||
linkType: hard | |||
"@testing-library/user-event@npm:14.0.4": | |||
version: 14.0.4 | |||
resolution: "@testing-library/user-event@npm:14.0.4" | |||
"@testing-library/user-event@npm:14.4.3": | |||
version: 14.4.3 | |||
resolution: "@testing-library/user-event@npm:14.4.3" | |||
peerDependencies: | |||
"@testing-library/dom": ">=7.21.4" | |||
checksum: 7a99309acfd22e5173543546548ad2fe8b53466294607fdc9300e914d320f86b1631a45f2e5a695750c1067272d7b57ed541e7e3645fe1fff4de285ecdf76521 | |||
checksum: 852c48ea6db1c9471b18276617c84fec4320771e466cd58339a732ca3fd73ad35e5a43ae14f51af51a8d0a150dcf60fcaab049ef367871207bea8f92c4b8195e | |||
languageName: node | |||
linkType: hard | |||
@@ -2436,10 +2436,10 @@ __metadata: | |||
"@emotion/styled": 11.10.5 | |||
"@swc/core": 1.3.23 | |||
"@swc/jest": 0.2.24 | |||
"@testing-library/dom": 8.13.0 | |||
"@testing-library/dom": 8.19.0 | |||
"@testing-library/jest-dom": 5.16.5 | |||
"@testing-library/react": 12.1.5 | |||
"@testing-library/user-event": 14.0.4 | |||
"@testing-library/user-event": 14.4.3 | |||
"@types/cheerio": 0.22.31 | |||
"@types/classnames": 2.3.1 | |||
"@types/d3-array": 3.0.3 |