Skip to content

Commit 2a5c444

Browse files
committed
client: Fix link to Wiki in F1 popup
1 parent 0deb5df commit 2a5c444

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

integration-tests/help.spec.ts

+10-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,16 @@
11
import test, { expect } from "@playwright/test";
22

3+
test('Help popup', async ({ page }) => {
4+
await page.goto('http://localhost:8082');
5+
await page.getByText('Trilium Integration Test DB').click();
6+
7+
await page.locator('body').press('F1');
8+
await page.getByRole('link', { name: 'online↗' }).click();
9+
expect((await page.waitForEvent('popup')).url()).toBe("https://triliumnext.github.io/Docs/")
10+
});
11+
312
test('Complete help in search', async ({ page }) => {
4-
await page.goto('http://localhost:8082');
13+
await page.goto('http://localhost:8082');
514

615
// Clear all tabs
716
await page.locator('.note-tab:first-of-type').locator("div").nth(1).click({ button: 'right' });

src/public/app/widgets/dialogs/help.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const TPL = `
66
<div class="modal-dialog" role="document" style="min-width: 100%; height: 100%; margin: 0;">
77
<div class="modal-content" style="height: auto;">
88
<div class="modal-header">
9-
<h5 class="modal-title mr-auto">Help (full documentation is available <a class="external" href="https://github.com/zadam/trilium/wiki">online</a>)</h5>
9+
<h5 class="modal-title mr-auto">Help (full documentation is available <a class="external" href="https://triliumnext.github.io/Docs/">online</a>)</h5>
1010
1111
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
1212
<span aria-hidden="true">&times;</span>

0 commit comments

Comments
 (0)