Update expectations

This commit is contained in:
Yury Semikhatsky 2024-11-13 15:07:10 -08:00
parent df5e8f3df4
commit 1e92735ca7
2 changed files with 2 additions and 3 deletions

View file

@ -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';

View file

@ -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);