mirror of
https://github.com/zadam/trilium.git
synced 2025-11-08 04:42:28 +08:00
chore(e2e): fix flaky tests
This commit is contained in:
parent
9db9d412d9
commit
e442906265
2 changed files with 3 additions and 2 deletions
|
|
@ -30,10 +30,11 @@ test("Displays lint errors for backend script", async ({ page }) => {
|
|||
const codeEditor = app.currentNoteSplit.locator(".CodeMirror");
|
||||
|
||||
// Expect two warning signs in the gutter.
|
||||
expect(codeEditor.locator(".CodeMirror-gutter-wrapper .CodeMirror-lint-marker-error")).toHaveCount(1);
|
||||
const errorMarker = codeEditor.locator(".CodeMirror-gutter-wrapper .CodeMirror-lint-marker-error");
|
||||
await expect(errorMarker).toHaveCount(1);
|
||||
|
||||
// Hover over hello
|
||||
await codeEditor.getByText("world").first().hover();
|
||||
await errorMarker.hover();
|
||||
await expectTooltip(page, "Parsing error: Unexpected token world");
|
||||
});
|
||||
|
||||
|
|
|
|||
Binary file not shown.
Loading…
Add table
Reference in a new issue