client: Fix link to Wiki in F1 popup

This commit is contained in:
Elian Doran
2024-08-10 00:39:45 +03:00
parent 0deb5df11d
commit 2a5c444eff
2 changed files with 11 additions and 2 deletions
+10 -1
View File
@@ -1,7 +1,16 @@
import test, { expect } from "@playwright/test";
test('Help popup', async ({ page }) => {
await page.goto('http://localhost:8082');
await page.getByText('Trilium Integration Test DB').click();
await page.locator('body').press('F1');
await page.getByRole('link', { name: 'online↗' }).click();
expect((await page.waitForEvent('popup')).url()).toBe("https://triliumnext.github.io/Docs/")
});
test('Complete help in search', async ({ page }) => {
await page.goto('http://localhost:8082');
await page.goto('http://localhost:8082');
// Clear all tabs
await page.locator('.note-tab:first-of-type').locator("div").nth(1).click({ button: 'right' });