Fix build

This commit is contained in:
HarelM
2026-07-09 13:38:54 +03:00
parent fb00dea285
commit 4f046cb83e
2 changed files with 3 additions and 4 deletions
+1 -3
View File
@@ -2,7 +2,6 @@ import fs from "node:fs";
import path from "node:path";
import { fileURLToPath } from "node:url";
import { expect, type Locator, type Page, type Request } from "@playwright/test";
import { readCoverage } from "./coverage";
import { currentPage, recordCoverageChunk } from "./utils/fixtures";
import { ModalDriver } from "./modal-driver";
@@ -297,8 +296,7 @@ export class MaputnikDriver {
modal: this.modalDriver.when,
visit: async (url: string) => {
// Snapshot coverage before navigating, since a full page load resets it.
recordCoverageChunk(await readCoverage(this.page));
await recordCoverageChunk(this.page);
const target = url.startsWith("http") ? url : new URL(url, baseUrl).toString();
await this.page.goto(target);
},