fix e2e dirname

This commit is contained in:
Frooodle
2026-07-10 11:40:29 +01:00
parent f981986681
commit a8bd5e61f3
2 changed files with 2 additions and 2 deletions
@@ -3,7 +3,7 @@ import { uploadFiles, dismissTourTooltip } from "@app/tests/helpers/ui-helpers";
import type { Page } from "@playwright/test";
import path from "path";
const SAMPLE_PDF = path.join(__dirname, "../test-fixtures/sample.pdf");
const SAMPLE_PDF = path.join(import.meta.dirname, "../test-fixtures/sample.pdf");
const FIRST_PAGE = '[data-page-index="0"]';
const pauseButton = (page: Page) =>
@@ -2,7 +2,7 @@ import { test, expect } from "@app/tests/helpers/stub-test-base";
import { uploadFiles } from "@app/tests/helpers/ui-helpers";
import path from "path";
const SAMPLE_PDF = path.join(__dirname, "../test-fixtures/sample.pdf");
const SAMPLE_PDF = path.join(import.meta.dirname, "../test-fixtures/sample.pdf");
const TOOLS_WITH_PLACEMENT_TOGGLE: Array<{ name: string; url: string }> = [
{ name: "AddImage", url: "/add-image" },