Skip to content

Commit

Permalink
[ci] Tries fixing e2e tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jacomyal committed Nov 27, 2024
1 parent 348f876 commit 62cb20f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 2 additions & 0 deletions config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// export BASE_PATH to reuse it in e2e test
export const BASE_URL = process.env.BASE_URL || "/gephi-lite/";
2 changes: 1 addition & 1 deletion e2e/load-graph.spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { expect, test } from "@playwright/test";

import { BASE_URL } from "../vite.config.mjs";
import { BASE_URL } from "../config";

const FILES = ["Java.gexf", "Les Miserables.gexf", "Power Grid.gexf", "airlines.graphml"];

Expand Down
3 changes: 1 addition & 2 deletions vite.config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ import checker from "vite-plugin-checker";
import svgr from "vite-plugin-svgr";
import { defineConfig } from "vitest/config";

// export BASE_PATH to reuse it in e2e test
export const BASE_URL = process.env.BASE_URL || "/gephi-lite/";
import { BASE_URL } from "./config";

export default defineConfig({
base: BASE_URL,
Expand Down

0 comments on commit 62cb20f

Please sign in to comment.