Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,11 @@ export default [
"playwright/prefer-web-first-assertions": "error", // Use await expect(element).toBeVisible()
"playwright/no-conditional-in-test": "warn", // Avoid if/else based on element state
"playwright/no-standalone-expect": "error", // Ensure expects are awaited
"playwright/expect-expect": "warn", // Ensure tests have assertions
"playwright/expect-expect": [
"warn",
// runTour drives a guided tour and asserts every step internally.
{ assertFunctionNames: ["runTour"] },
], // Ensure tests have assertions
"playwright/no-skipped-test": "warn", // Warn about test.skip()
"@typescript-eslint/no-non-null-assertion": "error", // Prevent non-null assertions (!)
},
Expand Down
11 changes: 11 additions & 0 deletions tests/e2e/tours/first-pipeline.tour.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { test } from "@playwright/test";

import { loadTour, runTour } from "./tourDriver";

const tour = loadTour("firstPipeline.tour.json");

test.describe("Guided tour: Build Your First Pipeline", () => {
test("replicates every step of the first-pipeline tour", async ({ page }) => {
await runTour(page, tour);
});
});
13 changes: 13 additions & 0 deletions tests/e2e/tours/navigating-editor.tour.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import { test } from "@playwright/test";

import { loadTour, runTour } from "./tourDriver";

const tour = loadTour("navigatingEditor.tour.json");

test.describe("Guided tour: Navigating the Editor", () => {
test("replicates every step of the navigating-the-editor tour", async ({
page,
}) => {
await runTour(page, tour);
});
});
11 changes: 11 additions & 0 deletions tests/e2e/tours/subgraphs.tour.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { test } from "@playwright/test";

import { loadTour, runTour } from "./tourDriver";

const tour = loadTour("subgraphs.tour.json");

test.describe("Guided tour: Subgraphs", () => {
test("replicates every step of the subgraphs tour", async ({ page }) => {
await runTour(page, tour);
});
});
Loading
Loading