Skip to content
This repository has been archived by the owner on Dec 16, 2024. It is now read-only.

Commit

Permalink
Update snapshots for master (#3137)
Browse files Browse the repository at this point in the history
Co-authored-by: GitHub Action <[email protected]>
  • Loading branch information
github-actions[bot] and actions-user authored Sep 27, 2021
1 parent b610442 commit d6a6cc9
Show file tree
Hide file tree
Showing 4 changed files with 70 additions and 71 deletions.
100 changes: 49 additions & 51 deletions lib/a11y-snapshot/__snapshots__/aom.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,10 @@ exports[`chromium / 1`] = `
<link>About us</link>
</menubar>
</navigation>
<searchbox>Search</searchbox>
<combobox autocomplete="list" haspopup="listbox">
Search
</combobox>
<text>Ctrl+K</text>
<button>
Search… Ctrl+K
<text>Search…Ctrl+K</text>
</button>
<button>Turn off the light</button>
</banner>
<main>
Expand Down Expand Up @@ -3380,8 +3379,8 @@ exports[`chromium /components/buttons/ 1`] = `
</listitem>
</list>
<heading level="2">
Basic Button
<text>Basic Button</text>
Basic button
<text>Basic button</text>
</heading>
<paragraph>
<text>The</text>
Expand Down Expand Up @@ -3420,8 +3419,8 @@ exports[`chromium /components/buttons/ 1`] = `
<code>$SOME_CODE</code>
</Pre>
<heading level="3">
Text buttons
<text>Text buttons</text>
Text button
<text>Text button</text>
</heading>
<paragraph>
<link>Text buttons</link>
Expand Down Expand Up @@ -3458,8 +3457,8 @@ exports[`chromium /components/buttons/ 1`] = `
<code>$SOME_CODE</code>
</Pre>
<heading level="3">
Contained buttons
<text>Contained buttons</text>
Contained button
<text>Contained button</text>
</heading>
<paragraph>
<link>Contained buttons</link>
Expand Down Expand Up @@ -3521,8 +3520,8 @@ exports[`chromium /components/buttons/ 1`] = `
<code>$SOME_CODE</code>
</Pre>
<heading level="3">
Outlined buttons
<text>Outlined buttons</text>
Outlined button
<text>Outlined button</text>
</heading>
<paragraph>
<link>Outlined buttons</link>
Expand Down Expand Up @@ -3883,8 +3882,8 @@ exports[`chromium /components/buttons/ 1`] = `
<text>.</text>
</paragraph>
<heading level="2">
Loading buttons
<text>Loading buttons</text>
Loading button
<text>Loading button</text>
</heading>
<paragraph>
<text>
Expand Down Expand Up @@ -3967,8 +3966,8 @@ exports[`chromium /components/buttons/ 1`] = `
<combobox haspopup="menu">See more</combobox>
</toolbar>
<heading level="2">
Complex buttons
<text>Complex buttons</text>
Complex button
<text>Complex button</text>
</heading>
<paragraph>
<text>
Expand Down Expand Up @@ -4323,16 +4322,16 @@ exports[`chromium /components/buttons/ 1`] = `
</paragraph>
<list>
<listitem level="1">
<link>Basic Button</link>
<link>Basic button</link>
<list>
<listitem level="2">
<link>Text buttons</link>
<link>Text button</link>
</listitem>
<listitem level="2">
<link>Contained buttons</link>
<link>Contained button</link>
</listitem>
<listitem level="2">
<link>Outlined buttons</link>
<link>Outlined button</link>
</listitem>
</list>
</listitem>
Expand Down Expand Up @@ -4366,10 +4365,10 @@ exports[`chromium /components/buttons/ 1`] = `
<link>Customization</link>
</listitem>
<listitem level="1">
<link>Loading buttons</link>
<link>Loading button</link>
</listitem>
<listitem level="1">
<link>Complex buttons</link>
<link>Complex button</link>
</listitem>
<listitem level="1">
<link>Third-party routing library</link>
Expand Down Expand Up @@ -16356,10 +16355,9 @@ exports[`firefox / 1`] = `
<link>About us</link>
</menubar>
</landmark>
<combobox autocomplete="list" haspopup="true">
Search
</combobox>
<text>Ctrl+K</text>
<button>
Search… Ctrl+ K<text>Search…Ctrl+K</text>
</button>
<button>Turn off the light</button>
</landmark>
<landmark>
Expand Down Expand Up @@ -19366,8 +19364,8 @@ exports[`firefox /components/buttons/ 1`] = `
</listitem>
</list>
<heading level="2">
Basic Button
<text>Basic Button</text>
Basic button
<text>Basic button</text>
</heading>
<paragraph>
<text>
Expand Down Expand Up @@ -19407,8 +19405,8 @@ exports[`firefox /components/buttons/ 1`] = `
variant="outlined">Outlined</Button>
</text>
<heading level="3">
Text buttons
<text>Text buttons</text>
Text button
<text>Text button</text>
</heading>
<paragraph>
<link>Text buttons</link>
Expand Down Expand Up @@ -19447,8 +19445,8 @@ exports[`firefox /components/buttons/ 1`] = `
href="#text-buttons">Link</Button>
</text>
<heading level="3">
Contained buttons
<text>Contained buttons</text>
Contained button
<text>Contained button</text>
</heading>
<paragraph>
<link>Contained buttons</link>
Expand Down Expand Up @@ -19512,8 +19510,8 @@ exports[`firefox /components/buttons/ 1`] = `
elevation </Button>
</text>
<heading level="3">
Outlined buttons
<text>Outlined buttons</text>
Outlined button
<text>Outlined button</text>
</heading>
<paragraph>
<link>Outlined buttons</link>
Expand Down Expand Up @@ -19905,8 +19903,8 @@ exports[`firefox /components/buttons/ 1`] = `
<text>.</text>
</paragraph>
<heading level="2">
Loading buttons
<text>Loading buttons</text>
Loading button
<text>Loading button</text>
</heading>
<paragraph>
<text>
Expand Down Expand Up @@ -19995,8 +19993,8 @@ exports[`firefox /components/buttons/ 1`] = `
<buttonmenu haspopup="true">See more</buttonmenu>
</toolbar>
<heading level="2">
Complex buttons
<text>Complex buttons</text>
Complex button
<text>Complex button</text>
</heading>
<paragraph>
<text>
Expand Down Expand Up @@ -20316,20 +20314,20 @@ exports[`firefox /components/buttons/ 1`] = `
</paragraph>
<list>
<listitem level="1">
Basic Button Text buttons Contained buttons Outlined buttons
<link>Basic Button</link>
Basic button Text button Contained button Outlined button
<link>Basic button</link>
<list>
<listitem level="2">
Text buttons
<link>Text buttons</link>
Text button
<link>Text button</link>
</listitem>
<listitem level="2">
Contained buttons
<link>Contained buttons</link>
Contained button
<link>Contained button</link>
</listitem>
<listitem level="2">
Outlined buttons
<link>Outlined buttons</link>
Outlined button
<link>Outlined button</link>
</listitem>
</list>
</listitem>
Expand Down Expand Up @@ -20372,12 +20370,12 @@ exports[`firefox /components/buttons/ 1`] = `
<link>Customization</link>
</listitem>
<listitem level="1">
Loading buttons
<link>Loading buttons</link>
Loading button
<link>Loading button</link>
</listitem>
<listitem level="1">
Complex buttons
<link>Complex buttons</link>
Complex button
<link>Complex button</link>
</listitem>
<listitem level="1">
Third-party routing library
Expand Down
26 changes: 13 additions & 13 deletions lib/a11y-snapshot/deploy.json
Original file line number Diff line number Diff line change
@@ -1,33 +1,33 @@
{
"id": "61495791fa4a84000731c08a",
"id": "615182acd8ec1b000706d2a8",
"site_id": "64f32322-7c26-4008-b886-60800cd747b0",
"build_id": "61495791fa4a84000731c088",
"build_id": "615182acd8ec1b000706d2a6",
"state": "ready",
"name": "material-ui",
"url": "http://material-ui.netlify.app",
"admin_url": "https://app.netlify.com/sites/material-ui",
"deploy_url": "http://master--material-ui.netlify.app",
"deploy_ssl_url": "https://master--material-ui.netlify.app",
"created_at": "2021-09-21T03:54:57.040Z",
"updated_at": "2021-09-21T04:16:25.911Z",
"commit_ref": "f8fcae6bfc1e365aac0b82f1ae0dd2ad8438052c",
"created_at": "2021-09-27T08:37:00.656Z",
"updated_at": "2021-09-27T10:10:02.721Z",
"commit_ref": "be67d9b0482acd49cd91417585244b3d0f83ba1a",
"review_id": null,
"skipped": null,
"locked": null,
"branch": "master",
"commit_url": "https://github.com/mui-org/material-ui/commit/f8fcae6bfc1e365aac0b82f1ae0dd2ad8438052c",
"commit_url": "https://github.com/mui-org/material-ui/commit/be67d9b0482acd49cd91417585244b3d0f83ba1a",
"log_access_attributes": {
"type": "firebase",
"url": "https://netlify-builds5.firebaseio.com/builds/61495791fa4a84000731c088/log",
"endpoint": "https://netlify-builds5.firebaseio.com",
"path": "/builds/61495791fa4a84000731c088/log",
"token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ2IjowLCJpYXQiOjE2MzIyMDIwOTIsImQiOnsidWlkIjoiIn19.NipTTV5tG2WKoIoSHnkY6btQsAaFV9ii4FunqRhhDOE"
"url": "https://netlify-builds4.firebaseio.com/builds/615182acd8ec1b000706d2a6/log",
"endpoint": "https://netlify-builds4.firebaseio.com",
"path": "/builds/615182acd8ec1b000706d2a6/log",
"token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ2IjowLCJpYXQiOjE2MzI3Mzg0MDUsImQiOnsidWlkIjoiIn19.soLgAs_boAwjLnp4A4FZvvkHDwu5MJWROSk93chJ45Q"
},
"title": "[website] Add components index page (#28485)",
"title": "[Slider] Don't error on minimal changes with readonly value (#28472)\n\nCo-authored-by: Olivier Tassinari <[email protected]>",
"review_url": null,
"published_at": "2021-09-21T04:05:33.094Z",
"published_at": "2021-09-27T08:53:40.942Z",
"context": "production",
"deploy_time": 633,
"deploy_time": 998,
"public": true,
"plugin_state": "success"
}
2 changes: 1 addition & 1 deletion lib/a11y-snapshot/mui-utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ async function waitForMuiLazyHydration(page, timeout) {
await Promise.all([
// we wait for a React.lazy component which is mounted in a useEffect
// at this point we definitely hydrated
page.waitForSelector("#docsearch-input", { timeout }),
page.waitForSelector("button:text('Search…')", { timeout }),
// demo toolbars are deferred with React.lazy and use a aria-busy skeleton.
page.waitForFunction(
() => {
Expand Down
13 changes: 7 additions & 6 deletions lib/a11y-snapshot/screen-reader.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,19 +48,20 @@ describe("nvda", () => {
await page.keyboard.press("Control+k");
}).toMatchSpeechInlineSnapshot(`
"landmark"
"Search, combo box, expanded, has auto complete, editable, Search…, blank"
"form landmark"
"edit, has auto complete, Search…, blank"
`);

await expect(async () => {
await page.keyboard.type("Rating");
}).toMatchSpeechInlineSnapshot(``);

await expect(async () => {
await page.keyboard.press("ArrowDown");
}).toMatchSpeechInlineSnapshot(`
"list"
"Link to the result, 1 of 5"
"Rating, 1 of 5"
`);

await expect(async () => {
await page.keyboard.press("ArrowDown");
}).toMatchSpeechInlineSnapshot(`"Basic rating Rating, 2 of 5"`);
}, 20000);

test("settings drawer", async () => {
Expand Down

0 comments on commit d6a6cc9

Please sign in to comment.