Fixes https://github.com/microsoft/playwright/issues/31328
Fixes https://github.com/microsoft/playwright/issues/30837

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Max Schmitt <max@schmitt.mx>
This commit is contained in:
Playwright Service 2024-06-19 10:03:58 -07:00 коммит произвёл GitHub
Родитель a7958ff95f
Коммит 45ee318673
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: B5690EEEBB952194
3 изменённых файлов: 3 добавлений и 5 удалений

Просмотреть файл

@ -15,7 +15,7 @@
},
{
"name": "firefox",
"revision": "1454",
"revision": "1456",
"installByDefault": true,
"browserVersion": "127.0"
},

Просмотреть файл

@ -206,9 +206,8 @@ it.describe('screencast', () => {
expectRedFrames(videoFile, size);
});
it('should continue recording main page after popup closes', async ({ browser, browserName, trace, headless, isWindows }, testInfo) => {
it('should continue recording main page after popup closes', async ({ browser, browserName }, testInfo) => {
it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/30837' });
it.fixme(browserName === 'firefox', 'https://github.com/microsoft/playwright/issues/30837');
// Firefox does not have a mobile variant and has a large minimum size (500 on windows and 450 elsewhere).
const size = browserName === 'firefox' ? { width: 500, height: 400 } : { width: 320, height: 240 };
const context = await browser.newContext({

Просмотреть файл

@ -124,9 +124,8 @@ it('should emulate reduced motion', async ({ page }) => {
await page.emulateMedia({ reducedMotion: null });
});
it('should keep reduced motion and color emulation after reload', async ({ page, server, browserName }) => {
it('should keep reduced motion and color emulation after reload', async ({ page, server }) => {
it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/31328' });
it.fixme(browserName === 'firefox');
// Pre-conditions
expect(await page.evaluate(() => matchMedia('(prefers-reduced-motion: reduce)').matches)).toEqual(false);