Update expectations
This commit is contained in:
parent
df5e8f3df4
commit
1e92735ca7
|
|
@ -16,7 +16,6 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import path from 'path';
|
import path from 'path';
|
||||||
import os from 'os';
|
|
||||||
import { PNG, jpegjs } from '../../utilsBundle';
|
import { PNG, jpegjs } from '../../utilsBundle';
|
||||||
import { splitErrorMessage } from '../../utils/stackTrace';
|
import { splitErrorMessage } from '../../utils/stackTrace';
|
||||||
import { assert, createGuid, debugAssert, headersArrayToObject } from '../../utils';
|
import { assert, createGuid, debugAssert, headersArrayToObject } from '../../utils';
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,7 @@
|
||||||
import { test as it, expect } from './pageTest';
|
import { test as it, expect } from './pageTest';
|
||||||
import { chromiumVersionLessThan } from '../config/utils';
|
import { chromiumVersionLessThan } from '../config/utils';
|
||||||
|
|
||||||
it('should work @smoke', async ({ page, browserName, macVersion }) => {
|
it('should work @smoke', async ({ page, browserName, isMac }) => {
|
||||||
await page.setContent(`
|
await page.setContent(`
|
||||||
<head>
|
<head>
|
||||||
<title>Accessibility Test</title>
|
<title>Accessibility Test</title>
|
||||||
|
|
@ -74,7 +74,7 @@ it('should work @smoke', async ({ page, browserName, macVersion }) => {
|
||||||
{ role: 'textbox', name: 'Input with whitespace', value: ' ' },
|
{ role: 'textbox', name: 'Input with whitespace', value: ' ' },
|
||||||
{ role: 'textbox', name: '', value: 'value only' },
|
{ role: 'textbox', name: '', value: 'value only' },
|
||||||
{ role: 'textbox', name: 'placeholder', value: 'and a value' },
|
{ role: 'textbox', name: 'placeholder', value: 'and a value' },
|
||||||
{ role: 'textbox', name: 'placeholder', value: 'and a value' },
|
{ role: 'textbox', name: isMac ? 'placeholder' : 'This is a description!', value: 'and a value' },
|
||||||
]
|
]
|
||||||
};
|
};
|
||||||
expect(await page.accessibility.snapshot()).toEqual(golden);
|
expect(await page.accessibility.snapshot()).toEqual(golden);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue