Skip to content

Commit

Permalink
chore(e2e): add missing await to expect
Browse files Browse the repository at this point in the history
  • Loading branch information
eliandoran committed Jan 13, 2025
1 parent fbfee81 commit b30164e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion e2e/note_types/code.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ test("Displays lint warnings for backend script", async ({ page, context }) => {
const codeEditor = app.currentNoteSplit.locator(".CodeMirror");

// Expect two warning signs in the gutter.
expect(codeEditor.locator(".CodeMirror-gutter-wrapper .CodeMirror-lint-marker-warning")).toHaveCount(2);
await expect(codeEditor.locator(".CodeMirror-gutter-wrapper .CodeMirror-lint-marker-warning")).toHaveCount(2);

// Hover over hello
await codeEditor.getByText("hello").first().hover();
Expand Down
8 changes: 4 additions & 4 deletions e2e/note_types/mermaid.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ test("displays simple map", async ({ page, context }) => {
await app.goto();
await app.goToNoteInNewTab("Sample mindmap");

expect(app.currentNoteSplit).toContainText("Hello world");
expect(app.currentNoteSplit).toContainText("1");
expect(app.currentNoteSplit).toContainText("1a");
await expect(app.currentNoteSplit).toContainText("Hello world");
await expect(app.currentNoteSplit).toContainText("1");
await expect(app.currentNoteSplit).toContainText("1a");
});

test("displays note settings", async ({ page, context }) => {
Expand All @@ -18,5 +18,5 @@ test("displays note settings", async ({ page, context }) => {

await app.currentNoteSplit.getByText("Hello world").click({ force: true });
const nodeMenu = app.currentNoteSplit.locator(".node-menu");
expect(nodeMenu).toBeVisible();
await expect(nodeMenu).toBeVisible();
});

0 comments on commit b30164e

Please sign in to comment.