Remote test related entries.

This commit is contained in:
HarelM
2026-07-09 13:26:24 +03:00
parent a93fe4d78b
commit 7d80dccb81
10 changed files with 115 additions and 108 deletions
+10 -3
View File
@@ -1,4 +1,4 @@
import { test as base, expect, type Page } from "@playwright/test";
import { test, expect, type Page } from "@playwright/test";
import { readCoverage, writeCoverage } from "./coverage";
let activePage: Page | undefined;
@@ -22,7 +22,7 @@ export function recordCoverageChunk(chunk: unknown): void {
* MaputnikDriver, auto-accepts confirm dialogs, and writes the istanbul
* coverage collected during the test to `.nyc_output`.
*/
export const test = base.extend<{ maputnikPage: void }>({
const extendedTest = test.extend<{ maputnikPage: void }>({
maputnikPage: [
async ({ page }, use, testInfo) => {
activePage = page;
@@ -43,4 +43,11 @@ export const test = base.extend<{ maputnikPage: void }>({
],
});
export { expect };
const describe = extendedTest.describe;
const beforeEach = extendedTest.beforeEach;
export {
expect,
describe,
extendedTest as test,
beforeEach,
};