Skip to content
This repository was archived by the owner on Jun 24, 2025. It is now read-only.

Commit 2efbe97

Browse files
committed
integration-test: Add basic test for KaTeX
1 parent cc9bb31 commit 2efbe97

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

integration-tests/katex.spec.ts

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
import { test, expect } from '@playwright/test';
2+
3+
const ROOT_URL = "http://localhost:8080";
4+
const LOGIN_PASSWORD = "eliandoran";
5+
6+
test("Can insert equations", async ({ page }) => {
7+
await page.setDefaultTimeout(60_000);
8+
await page.setDefaultNavigationTimeout(60_000);
9+
10+
await page.goto(ROOT_URL);
11+
await expect(page).toHaveURL(`${ROOT_URL}/login`);
12+
13+
// Log in
14+
await page.getByRole("textbox", { name: "Password" }).fill(LOGIN_PASSWORD);
15+
await page.getByRole("button", { name: "Login"}).click();
16+
await page.waitForURL(/\/#root\//);
17+
18+
// Create a new note
19+
// await page.locator("button.button-widget.bx-file-blank")
20+
// .click();
21+
22+
const activeNote = page.locator(".component.note-split:visible");
23+
const noteContent = activeNote
24+
.locator(".note-detail-editable-text-editor")
25+
await noteContent.press("Ctrl+M");
26+
});

0 commit comments

Comments
 (0)