mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-27 18:12:29 +08:00
chore(e2e): add missing await to expect
This commit is contained in:
parent
fbfee818b2
commit
b30164ef66
@ -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();
|
||||
|
@ -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 }) => {
|
||||
@ -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();
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user