mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 02:16:05 +01:00 
			
		
		
		
	client: Fix redirecting to wrong URL for downloading new version (closes #313)
This commit is contained in:
		| @@ -1,5 +1,12 @@ | |||||||
| import { test, expect } from '@playwright/test'; | import { test, expect } from '@playwright/test'; | ||||||
|  |  | ||||||
|  | const expectedVersion = "0.90.3"; | ||||||
|  |  | ||||||
| test("Displays update badge when there is a version available", async ({ page }) => { | test("Displays update badge when there is a version available", async ({ page }) => { | ||||||
|     await page.goto("http://localhost:8080"); |     await page.goto("http://localhost:8080"); | ||||||
|  |     await page.getByRole('button', { name: '' }).click(); | ||||||
|  |     await page.getByText(`Version ${expectedVersion} is available,`).click(); | ||||||
|  |  | ||||||
|  |     const page1 = await page.waitForEvent('popup'); | ||||||
|  |     expect(page1.url()).toBe(`https://github.com/TriliumNext/Notes/releases/tag/v${expectedVersion}`); | ||||||
| }); | }); | ||||||
| @@ -337,7 +337,7 @@ export default class GlobalMenuWidget extends BasicWidget { | |||||||
|     } |     } | ||||||
|  |  | ||||||
|     downloadLatestVersionCommand() { |     downloadLatestVersionCommand() { | ||||||
|         window.open("https://github.com/zadam/trilium/releases/latest"); |         window.open("https://github.com/TriliumNext/Notes/releases/latest"); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     activeContextChangedEvent() { |     activeContextChangedEvent() { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user