chore: enable test for ff (#12037)

This commit is contained in:
Nikolay Vitkov 2024-03-04 13:02:43 +01:00 committed by GitHub
parent f3afc06894
commit 7284576690
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 10 deletions

View File

@ -47,12 +47,6 @@
"parameters": ["webDriverBiDi"],
"expectations": ["SKIP"]
},
{
"testIdPattern": "[headful.spec] *",
"platforms": ["darwin", "linux", "win32"],
"parameters": ["firefox"],
"expectations": ["SKIP"]
},
{
"testIdPattern": "[idle_override.spec] *",
"platforms": ["darwin", "linux", "win32"],

View File

@ -22,8 +22,8 @@ describe('headful tests', function () {
*/
this.timeout(20_000);
let headfulOptions: PuppeteerLaunchOptions | undefined;
let headlessOptions: PuppeteerLaunchOptions & {headless: boolean};
let headfulOptions: PuppeteerLaunchOptions & {headless: false};
let headlessOptions: PuppeteerLaunchOptions & {headless: true};
const browsers: Array<() => Promise<void>> = [];
@ -32,10 +32,10 @@ describe('headful tests', function () {
skipLaunch: true,
});
headfulOptions = Object.assign({}, defaultBrowserOptions, {
headless: false,
headless: false as const,
});
headlessOptions = Object.assign({}, defaultBrowserOptions, {
headless: true,
headless: true as const,
});
});