Skip to content

Commit 6947d4d

Browse files
committed
docs: add documentation for e2e tests
1 parent d3d6fab commit 6947d4d

File tree

4 files changed

+38
-0
lines changed

4 files changed

+38
-0
lines changed

e2e-tests/code-editing-and-ast-interaction.spec.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
1+
/**
2+
* Tests for code editing functionality and AST tool interaction.
3+
*/
14
import test, { expect } from "@playwright/test";
25

6+
/**
7+
* This test verifies that:
8+
* - Users can edit code in the editor
9+
* - The AST updates in response to code changes
10+
* - ESQuery selectors correctly highlight matching code and AST nodes
11+
* - AST node expansion functionality works properly
12+
*/
313
test(`should change code, then highlight code and AST nodes matching ESQuery selector`, async ({
414
page,
515
}) => {

e2e-tests/light-dark-theme.spec.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
1+
/**
2+
* Tests for theme switching functionality.
3+
*/
4+
15
import { test, expect } from "@playwright/test";
26

7+
/**
8+
* This test verifies that:
9+
* - The application shows light theme by default
10+
* - Users can toggle between light and dark themes
11+
* - Theme changes are visually reflected in the UI
12+
*/
313
test("should show light theme by default and switch to dark theme", async ({
414
page,
515
}) => {

e2e-tests/options.spec.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
1+
/**
2+
* Tests for language selection and options panel functionality.
3+
*/
14
import { test, expect } from "@playwright/test";
25

6+
/**
7+
* This test verifies that:
8+
* - Users can open the language options popover
9+
* - Users can switch between supported languages (JavaScript, JSON, Markdown, CSS)
10+
* - For each language the entire page is correctly rendered
11+
*/
312
test("should switch language and show options for each", async ({ page }) => {
413
await page.goto("/");
514

e2e-tests/tools.spec.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
1+
/**
2+
* Tests for the Code Analysis Tools Panel.
3+
*/
14
import { test, expect } from "@playwright/test";
25

6+
/**
7+
* This test verifies that:
8+
* - Users can switch between different code analysis tools (AST, Scope, Code Path)
9+
* - Each tool displays correctly
10+
* - Tool-specific interactions work as expected (e.g. scope selection)
11+
*/
312
test("should switch to each tool and show it", async ({ page }) => {
413
await page.goto("/");
514

0 commit comments

Comments
 (0)