Skip to content

Commit

Permalink
Update snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Jan 27, 2021
1 parent 97845ec commit 7087eab
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 28 deletions.
36 changes: 18 additions & 18 deletions lib/a11y-snapshot/deploy.json
Original file line number Diff line number Diff line change
@@ -1,33 +1,33 @@
{
"id": "601021480359cf00082adc55",
"id": "6011bec2f462ca0008cb0d19",
"site_id": "64f32322-7c26-4008-b886-60800cd747b0",
"build_id": "601021480359cf00082adc53",
"build_id": "6011bec2f462ca0008cb0d17",
"state": "ready",
"name": "material-ui",
"url": "http://material-ui.netlify.app",
"admin_url": "https://app.netlify.com/sites/material-ui",
"deploy_url": "http://next--material-ui.netlify.app",
"deploy_ssl_url": "https://next--material-ui.netlify.app",
"created_at": "2021-01-26T14:03:52.871Z",
"updated_at": "2021-01-26T14:16:49.436Z",
"commit_ref": "15108a5aad5342d92e86be5c5388b8321a88b280",
"review_id": null,
"deploy_url": "http://deploy-preview-24650--material-ui.netlify.app",
"deploy_ssl_url": "https://deploy-preview-24650--material-ui.netlify.app",
"created_at": "2021-01-27T19:28:02.031Z",
"updated_at": "2021-01-27T19:37:00.184Z",
"commit_ref": "48a763b5e7f10630aa58f7de452ab731d5662055",
"review_id": 24650,
"skipped": null,
"locked": null,
"branch": "next",
"commit_url": "https://github.com/mui-org/material-ui/commit/15108a5aad5342d92e86be5c5388b8321a88b280",
"branch": "patch-1",
"commit_url": "https://github.com/mui-org/material-ui/commit/48a763b5e7f10630aa58f7de452ab731d5662055",
"log_access_attributes": {
"type": "firebase",
"url": "https://netlify-builds1.firebaseio.com/builds/601021480359cf00082adc53/log",
"endpoint": "https://netlify-builds1.firebaseio.com",
"path": "/builds/601021480359cf00082adc53/log",
"token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ2IjowLCJpYXQiOjE2MTE2NzE2OTMsImQiOnsidWlkIjoiIn19.UVCd-BLd3ri7SIWQXevHdaU3kciAoyNLANVEQAhu9fw"
"url": "https://netlify-builds4.firebaseio.com/builds/6011bec2f462ca0008cb0d17/log",
"endpoint": "https://netlify-builds4.firebaseio.com",
"path": "/builds/6011bec2f462ca0008cb0d17/log",
"token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ2IjowLCJpYXQiOjE2MTE3NzY3NDksImQiOnsidWlkIjoiIn19.Vwr31waD-kNS_5NVmQD4e1RMdjdmOxrPE5MyZhwmyhc"
},
"title": "Release v5.0.0-alpha.24 (#24614)\n\nCo-authored-by: Olivier Tassinari <olivier.tassinari@gmail.com>",
"review_url": null,
"title": "[Pickers] useNow hook was always returning the same value",
"review_url": "https://github.com/mui-org/material-ui/pull/24650",
"published_at": null,
"context": "branch-deploy",
"deploy_time": 773,
"context": "deploy-preview",
"deploy_time": 534,
"public": true,
"plugin_state": "success"
}
38 changes: 28 additions & 10 deletions lib/a11y-snapshot/screen-reader.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,23 +141,44 @@ describe("nvda", () => {

await expect(async () => {
page.keyboard.press("ArrowLeft");
}).toMatchSpeechInlineSnapshot(`"31"`);
}).toMatchSpeechInlineSnapshot(`
"31"
"Untitled - Chromium"
"Address and search bar, edit, has auto complete, Ctrl+L, selected about:blank"
`);

await expect(async () => {
page.keyboard.press("ArrowUp");
}).toMatchSpeechInlineSnapshot(`"32"`);
}).toMatchSpeechInlineSnapshot(
`"https://deploy-preview-24650--material-ui.netlify.app/components/slider/?nvda-reset=5x8ch5g34pd selected"`
);

await expect(async () => {
page.keyboard.press("ArrowDown");
}).toMatchSpeechInlineSnapshot(`"31"`);
}).toMatchSpeechInlineSnapshot(`
"React Slider component - Material-UI"
"link, Skip to content"
"banner landmark, clickable, Search, combo box, collapsed, has auto complete, editable, Search…"
"Ctrl+K"
"menu button, subMenu, Change language"
"button, Toggle settings drawer"
"menu button, subMenu, Toggle notifications panel"
"link, GitHub repository"
"Main navigation, navigation landmark, link, Material-UI"
"link, v5.0.0-alpha.24"
"separator"
`);

await expect(async () => {
page.keyboard.press("End");
}).toMatchSpeechInlineSnapshot(`"100"`);
}).toMatchSpeechInlineSnapshot(`
"main landmark"
"Temperature, slider, 30°C"
`);

await expect(async () => {
page.keyboard.press("Home");
}).toMatchSpeechInlineSnapshot(`"0"`);
}).toMatchSpeechInlineSnapshot(`"31°C"`);
}, 30000);

test("keyboard navigation when vertical", async () => {
Expand Down Expand Up @@ -190,14 +211,11 @@ describe("nvda", () => {

await expect(async () => {
await $slider.focus();
}).toMatchSpeechInlineSnapshot(`
"main landmark"
"Temperature, slider, 30°C"
`);
}).toMatchSpeechInlineSnapshot(``);

await expect(async () => {
page.keyboard.press("ArrowRight");
}).toMatchSpeechInlineSnapshot(`"31°C"`);
}).toMatchSpeechInlineSnapshot(``);

await expect(async () => {
page.keyboard.press("ArrowRight");
Expand Down

0 comments on commit 7087eab

Please sign in to comment.