diff --git a/packages/playwright-core/src/server/webkit/wkPage.ts b/packages/playwright-core/src/server/webkit/wkPage.ts index 1c9a2f344f..13096075f7 100644 --- a/packages/playwright-core/src/server/webkit/wkPage.ts +++ b/packages/playwright-core/src/server/webkit/wkPage.ts @@ -16,7 +16,6 @@ */ import path from 'path'; -import os from 'os'; import { PNG, jpegjs } from '../../utilsBundle'; import { splitErrorMessage } from '../../utils/stackTrace'; import { assert, createGuid, debugAssert, headersArrayToObject } from '../../utils'; diff --git a/tests/page/page-accessibility.spec.ts b/tests/page/page-accessibility.spec.ts index 8c2c85f212..701fecfeaf 100644 --- a/tests/page/page-accessibility.spec.ts +++ b/tests/page/page-accessibility.spec.ts @@ -18,7 +18,7 @@ import { test as it, expect } from './pageTest'; import { chromiumVersionLessThan } from '../config/utils'; -it('should work @smoke', async ({ page, browserName, macVersion }) => { +it('should work @smoke', async ({ page, browserName, isMac }) => { await page.setContent(` Accessibility Test @@ -74,7 +74,7 @@ it('should work @smoke', async ({ page, browserName, macVersion }) => { { role: 'textbox', name: 'Input with whitespace', value: ' ' }, { 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: isMac ? 'placeholder' : 'This is a description!', value: 'and a value' }, ] }; expect(await page.accessibility.snapshot()).toEqual(golden);