-
Notifications
You must be signed in to change notification settings - Fork 82
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(e2e): bring back help link tests
- Loading branch information
1 parent
b4ff765
commit b376f09
Showing
2 changed files
with
27 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import { test, expect, Page } from "@playwright/test"; | ||
import App from "./support/app"; | ||
|
||
test("Help popup", async ({ page, context }) => { | ||
page.setDefaultTimeout(15_000); | ||
|
||
const app = new App(page, context); | ||
await app.goto(); | ||
|
||
const popupPromise = page.waitForEvent("popup"); | ||
await app.currentNoteSplit.press("F1"); | ||
await page.getByRole("link", { name: "online↗" }).click(); | ||
const popup = await popupPromise; | ||
expect(popup.url()).toBe("https://triliumnext.github.io/Docs/"); | ||
}); | ||
|
||
test("Complete help in search", async ({ page, context }) => { | ||
const app = new App(page, context); | ||
await app.goto(); | ||
|
||
await app.launcherBar.locator(".bx-search").first().click(); | ||
await app.currentNoteSplit.locator(".search-settings .bx-help-circle").click(); | ||
const popupPromise = page.waitForEvent("popup"); | ||
await page.getByRole("link", { name: "complete help on search syntax" }).click(); | ||
const popup = await popupPromise; | ||
expect(popup.url()).toBe("https://triliumnext.github.io/Docs/Wiki/search.html"); | ||
}); |
This file was deleted.
Oops, something went wrong.