Skip to content

Commit 42ad7c4

Browse files
authored
Merge branch 'main' into chore/update-eslint-dependencies
2 parents 8ffaab4 + a335782 commit 42ad7c4

18 files changed

Lines changed: 191 additions & 519 deletions

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

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,17 @@
11
/**
2-
* Tests for code editing functionality and AST tool interaction.
2+
* @fileoverview Tests for code editing functionality and AST tool interaction.
33
*/
4+
5+
//-----------------------------------------------------------------------------
6+
// Imports
7+
//-----------------------------------------------------------------------------
8+
49
import { expect, test } from "@playwright/test";
510

11+
//-----------------------------------------------------------------------------
12+
// Type Definitions
13+
//-----------------------------------------------------------------------------
14+
615
type HighlightSamplesState = {
716
intervalId: number;
817
samples: string[];
@@ -14,6 +23,10 @@ declare global {
1423
}
1524
}
1625

26+
//-----------------------------------------------------------------------------
27+
// Tests
28+
//-----------------------------------------------------------------------------
29+
1730
/**
1831
* This test verifies that:
1932
* - Users can edit code in the editor

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

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,17 @@
11
/**
2-
* Tests for theme switching functionality.
2+
* @fileoverview Tests for theme switching functionality.
33
*/
44

5+
//-----------------------------------------------------------------------------
6+
// Imports
7+
//-----------------------------------------------------------------------------
8+
59
import { expect, test } from "@playwright/test";
610

11+
//-----------------------------------------------------------------------------
12+
// Tests
13+
//-----------------------------------------------------------------------------
14+
715
/**
816
* This test verifies that:
917
* - The application shows light theme by default

e2e-tests/options.test.ts

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,17 @@
11
/**
2-
* Tests for language selection and options panel functionality.
2+
* @fileoverview Tests for language selection and options panel functionality.
33
*/
4+
5+
//-----------------------------------------------------------------------------
6+
// Imports
7+
//-----------------------------------------------------------------------------
8+
49
import { expect, test } from "@playwright/test";
510

11+
//-----------------------------------------------------------------------------
12+
// Tests
13+
//-----------------------------------------------------------------------------
14+
615
/**
716
* This test verifies that:
817
* - Users can open the language options popover

e2e-tests/persistence.test.ts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
1+
/**
2+
* @fileoverview Tests for state persistence functionality.
3+
*/
4+
5+
//-----------------------------------------------------------------------------
6+
// Imports
7+
//-----------------------------------------------------------------------------
8+
19
import { expect, test, type Page } from "@playwright/test";
210

11+
//-----------------------------------------------------------------------------
12+
// Helpers
13+
//-----------------------------------------------------------------------------
14+
315
const storageKey = "eslint-explorer";
416

517
async function getPersistedJavaScriptCode(page: Page): Promise<string> {
@@ -47,6 +59,10 @@ async function replaceEditorValue(page: Page, value: string) {
4759
await codeEditor.pressSequentially(value);
4860
}
4961

62+
//-----------------------------------------------------------------------------
63+
// Tests
64+
//-----------------------------------------------------------------------------
65+
5066
test("should persist unicode code safely in the URL hash", async ({ page }) => {
5167
await page.addInitScript(key => {
5268
window.localStorage.removeItem(key);

e2e-tests/tools.test.ts

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,17 @@
11
/**
2-
* Tests for the Code Analysis Tools Panel.
2+
* @fileoverview Tests for the Code Analysis Tools Panel.
33
*/
4+
5+
//-----------------------------------------------------------------------------
6+
// Imports
7+
//-----------------------------------------------------------------------------
8+
49
import { expect, test } from "@playwright/test";
510

11+
//-----------------------------------------------------------------------------
12+
// Tests
13+
//-----------------------------------------------------------------------------
14+
615
/**
716
* This test verifies that:
817
* - Users can switch between different code analysis tools (AST, Scope, Code Path)

0 commit comments

Comments
 (0)