Skip to content

Commit

Permalink
client: Fix link to Wiki in F1 popup
Browse files Browse the repository at this point in the history
  • Loading branch information
eliandoran committed Aug 9, 2024
1 parent 0deb5df commit 2a5c444
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
11 changes: 10 additions & 1 deletion integration-tests/help.spec.ts
Original file line number Diff line number Diff line change
@@ -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' });
Expand Down
2 changes: 1 addition & 1 deletion src/public/app/widgets/dialogs/help.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const TPL = `
<div class="modal-dialog" role="document" style="min-width: 100%; height: 100%; margin: 0;">
<div class="modal-content" style="height: auto;">
<div class="modal-header">
<h5 class="modal-title mr-auto">Help (full documentation is available <a class="external" href="https://github.com/zadam/trilium/wiki">online</a>)</h5>
<h5 class="modal-title mr-auto">Help (full documentation is available <a class="external" href="https://triliumnext.github.io/Docs/">online</a>)</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">&times;</span>
Expand Down

0 comments on commit 2a5c444

Please sign in to comment.