-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3723 from Royal-Navy/feat/upgrade-react-reactdom-…
…styled-components feat: Upgrade React, ReactDOM, styled-components to latest
- Loading branch information
Showing
244 changed files
with
6,235 additions
and
5,282 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,7 +12,7 @@ const expectedResult = { | |
exampleDatePicker: '2022-01-31T12:00:00.000Z', | ||
exampleSelect: 'three', | ||
exampleAutocomplete: 'four', | ||
exampleRangeSlider: [28], | ||
exampleRangeSlider: [20], | ||
} | ||
|
||
const examples = [ | ||
|
@@ -68,21 +68,36 @@ test.describe('Form examples, empty', () => { | |
test.describe('when the form is filled in correctly', () => { | ||
test.beforeEach(async ({ page }) => { | ||
await page.type(selectors.input.email, '[email protected]') | ||
|
||
await page.type(selectors.input.password, 'password') | ||
|
||
await page.type(selectors.input.description, 'Hello, World!') | ||
|
||
await page.locator(selectors.input.radio).nth(0).click() | ||
|
||
await page.locator(selectors.input.checkbox).nth(1).click() | ||
|
||
await page.locator(selectors.input.switchOption).nth(0).click() | ||
|
||
await page.click(selectors.input.numberInputIncrease) | ||
|
||
await page.type(selectors.input.datePickerInput, '31/01/2022') | ||
|
||
// eslint-disable-next-line playwright/no-wait-for-timeout | ||
page.waitForTimeout(1000) | ||
|
||
await page.type(selectors.input.select, 'th') | ||
await page.keyboard.press('Enter') | ||
|
||
// eslint-disable-next-line playwright/no-wait-for-timeout | ||
page.waitForTimeout(1000) | ||
|
||
await page.type(selectors.input.autocomplete, 'fo') | ||
await page.keyboard.press('ArrowDown') | ||
await page.keyboard.press('Enter') | ||
await page.click(selectors.input.rangeSliderRail, { | ||
position: { x: 800, y: 5 }, | ||
}) | ||
|
||
// await page.click(selectors.input.rangeSliderRail, { | ||
// position: { x: 800, y: 5 }, | ||
// }) | ||
}) | ||
|
||
test('shows no validation errors', async ({ page }) => { | ||
|
Oops, something went wrong.