Skip to content
This repository was archived by the owner on Jun 24, 2025. It is now read-only.

Commit 4205803

Browse files
committed
client: Fix redirecting to wrong URL for downloading new version (closes #313)
1 parent a98f01d commit 4205803

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
import { test, expect } from '@playwright/test';
22

3+
const expectedVersion = "0.90.3";
4+
35
test("Displays update badge when there is a version available", async ({ page }) => {
46
await page.goto("http://localhost:8080");
7+
await page.getByRole('button', { name: '' }).click();
8+
await page.getByText(`Version ${expectedVersion} is available,`).click();
9+
10+
const page1 = await page.waitForEvent('popup');
11+
expect(page1.url()).toBe(`https://github.com/TriliumNext/Notes/releases/tag/v${expectedVersion}`);
512
});

src/public/app/widgets/buttons/global_menu.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ export default class GlobalMenuWidget extends BasicWidget {
337337
}
338338

339339
downloadLatestVersionCommand() {
340-
window.open("https://github.com/zadam/trilium/releases/latest");
340+
window.open("https://github.com/TriliumNext/Notes/releases/latest");
341341
}
342342

343343
activeContextChangedEvent() {

0 commit comments

Comments
 (0)