-
Notifications
You must be signed in to change notification settings - Fork 153
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(android-setup): remove extra main elements in AndroidSetupSpinner…
…Step UIs (#2906) #### Description of changes Several of the steps that are based on `AndroidSetupSpinnerStep` were wrapping it in a `<main>` element, but it already is based on `AndroidSetupStepLayout` which provides a `<main>` element. This removes the extra landmark. No visual change. #### Pull request checklist <!-- If a checklist item is not applicable to this change, write "n/a" in the checkbox --> - [n/a] Addresses an existing issue: #0000 - [x] Ran `yarn fastpass` - [x] Added/updated relevant unit test(s) (and ran `yarn test`) - [x] Verified code coverage for the changes made. Check coverage report at: `<rootDir>/test-results/unit/coverage` - [x] PR title *AND* final merge commit title both start with a semantic tag (`fix:`, `chore:`, `feat(feature-name):`, `refactor:`). See `CONTRIBUTING.md`. - [n/a] (UI changes only) Added screenshots/GIFs to description above - [x] (UI changes only) Verified usability with NVDA/JAWS
- Loading branch information
Showing
8 changed files
with
60 additions
and
80 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
26 changes: 12 additions & 14 deletions
26
...ice-connect-view/components/android-setup/__snapshots__/detect-devices-step.test.tsx.snap
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 |
---|---|---|
@@ -1,19 +1,17 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`DetectDevicesStep renders 1`] = ` | ||
<main> | ||
<AndroidSetupSpinnerStep | ||
deps={ | ||
Object { | ||
"LinkComponent": [Function], | ||
"androidSetupActionCreator": null, | ||
"androidSetupStepComponentProvider": null, | ||
"closeApp": null, | ||
"showOpenFileDialog": null, | ||
"startTesting": null, | ||
} | ||
<AndroidSetupSpinnerStep | ||
deps={ | ||
Object { | ||
"LinkComponent": [Function], | ||
"androidSetupActionCreator": null, | ||
"androidSetupStepComponentProvider": null, | ||
"closeApp": null, | ||
"showOpenFileDialog": null, | ||
"startTesting": null, | ||
} | ||
spinnerLabel="Scanning for devices..." | ||
/> | ||
</main> | ||
} | ||
spinnerLabel="Scanning for devices..." | ||
/> | ||
`; |
26 changes: 12 additions & 14 deletions
26
...connect-view/components/android-setup/__snapshots__/detect-permissions-step.test.tsx.snap
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 |
---|---|---|
@@ -1,19 +1,17 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`DetectDevicesStep renders 1`] = ` | ||
<main> | ||
<AndroidSetupSpinnerStep | ||
deps={ | ||
Object { | ||
"LinkComponent": [Function], | ||
"androidSetupActionCreator": null, | ||
"androidSetupStepComponentProvider": null, | ||
"closeApp": null, | ||
"showOpenFileDialog": null, | ||
"startTesting": null, | ||
} | ||
<AndroidSetupSpinnerStep | ||
deps={ | ||
Object { | ||
"LinkComponent": [Function], | ||
"androidSetupActionCreator": null, | ||
"androidSetupStepComponentProvider": null, | ||
"closeApp": null, | ||
"showOpenFileDialog": null, | ||
"startTesting": null, | ||
} | ||
spinnerLabel="Checking permissions..." | ||
/> | ||
</main> | ||
} | ||
spinnerLabel="Checking permissions..." | ||
/> | ||
`; |
28 changes: 13 additions & 15 deletions
28
...ice-connect-view/components/android-setup/__snapshots__/detect-service-step.test.tsx.snap
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 |
---|---|---|
@@ -1,20 +1,18 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`DetectServiceStep renders 1`] = ` | ||
<main> | ||
<AndroidSetupSpinnerStep | ||
deps={ | ||
Object { | ||
"LinkComponent": [Function], | ||
"androidSetupActionCreator": null, | ||
"androidSetupStepComponentProvider": null, | ||
"closeApp": null, | ||
"showOpenFileDialog": null, | ||
"startTesting": null, | ||
} | ||
<AndroidSetupSpinnerStep | ||
deps={ | ||
Object { | ||
"LinkComponent": [Function], | ||
"androidSetupActionCreator": null, | ||
"androidSetupStepComponentProvider": null, | ||
"closeApp": null, | ||
"showOpenFileDialog": null, | ||
"startTesting": null, | ||
} | ||
disableCancel={true} | ||
spinnerLabel="Scanning for devices..." | ||
/> | ||
</main> | ||
} | ||
disableCancel={true} | ||
spinnerLabel="Scanning for devices..." | ||
/> | ||
`; |
26 changes: 12 additions & 14 deletions
26
...connect-view/components/android-setup/__snapshots__/installing-service-step.test.tsx.snap
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 |
---|---|---|
@@ -1,19 +1,17 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`InstallingServiceStep renders 1`] = ` | ||
<main> | ||
<AndroidSetupSpinnerStep | ||
deps={ | ||
Object { | ||
"LinkComponent": [Function], | ||
"androidSetupActionCreator": null, | ||
"androidSetupStepComponentProvider": null, | ||
"closeApp": null, | ||
"showOpenFileDialog": null, | ||
"startTesting": null, | ||
} | ||
<AndroidSetupSpinnerStep | ||
deps={ | ||
Object { | ||
"LinkComponent": [Function], | ||
"androidSetupActionCreator": null, | ||
"androidSetupStepComponentProvider": null, | ||
"closeApp": null, | ||
"showOpenFileDialog": null, | ||
"startTesting": null, | ||
} | ||
spinnerLabel="Installing on your device..." | ||
/> | ||
</main> | ||
} | ||
spinnerLabel="Installing on your device..." | ||
/> | ||
`; |