diff --git a/integration-tests/help.spec.ts b/integration-tests/help.spec.ts new file mode 100644 index 000000000..aa0087328 --- /dev/null +++ b/integration-tests/help.spec.ts @@ -0,0 +1,14 @@ +import test, { expect } from "@playwright/test"; + +test('Complete help in search', async ({ page }) => { + await page.goto('http://localhost:8082'); + + // Clear all tabs + await page.locator('.note-tab:first-of-type').locator("div").nth(1).click({ button: 'right' }); + await page.getByText('Close all tabs').click(); + + await page.locator('#launcher-container').getByRole('button', { name: '' }).first().click(); + await page.getByRole('cell', { name: ' ' }).locator('span').first().click(); + await page.getByRole('button', { name: 'complete help on search syntax' }).click(); + expect((await page.waitForEvent('popup')).url()).toBe("https://triliumnext.github.io/Docs/Wiki/search.html"); +}); \ No newline at end of file diff --git a/src/public/app/services/glob.js b/src/public/app/services/glob.js index 925feaf82..7177a6f95 100644 --- a/src/public/app/services/glob.js +++ b/src/public/app/services/glob.js @@ -27,7 +27,7 @@ function setupGlobs() { window.glob.importMarkdownInline = async () => appContext.triggerCommand("importMarkdownInline"); window.glob.SEARCH_HELP_TEXT = ` - Search tips - also see + Search tips - also see