Skip to content

Commit

Permalink
chore: enable test for ff (#12037)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lightning00Blade committed Mar 4, 2024
1 parent f3afc06 commit 7284576
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
6 changes: 0 additions & 6 deletions test/TestExpectations.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"],
Expand Down
8 changes: 4 additions & 4 deletions test/src/headful.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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>> = [];

Expand All @@ -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,
});
});

Expand Down

0 comments on commit 7284576

Please sign in to comment.