From b4203a4255921949c9acfd4c82f5a7156446c70b Mon Sep 17 00:00:00 2001 From: Ege Korkan Date: Wed, 13 Nov 2024 10:45:36 +0100 Subject: [PATCH 1/2] test: correct thingweb urls to redirected ones --- packages/web/tests/test.spec.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/web/tests/test.spec.js b/packages/web/tests/test.spec.js index cab3730e..1d3de9e3 100644 --- a/packages/web/tests/test.spec.js +++ b/packages/web/tests/test.spec.js @@ -100,7 +100,7 @@ test.describe("Check all links", () => { await page.locator(".logo").click() const thingwebPage = await thingwebPromise await expect(thingwebPage).toHaveTitle("Eclipse Thingweb") - await expect(thingwebPage).toHaveURL("https://www.thingweb.io") + await expect(thingwebPage).toHaveURL("https://www.thingweb.io/") }) test("Check CLI link", async ({ page }) => { @@ -124,7 +124,7 @@ test.describe("Check all links", () => { await page.locator("#thingweb-link").click() const thingwebPage = await thingwebPromise await expect(thingwebPage).toHaveTitle("Eclipse Thingweb") - await expect(thingwebPage).toHaveURL("https://www.thingweb.io") + await expect(thingwebPage).toHaveURL("https://www.thingweb.io/") }) test("Check Eclipse footer link", async ({ page }) => { @@ -2024,4 +2024,4 @@ test.describe("Visualization view functionality", () => { const expectedFilename = 'Tree-visualization.png' expect(download.suggestedFilename()).toBe(expectedFilename) }) -}) \ No newline at end of file +}) From 72f55299a9c7e9e6fad7230860782e427a73926c Mon Sep 17 00:00:00 2001 From: Ege Korkan Date: Wed, 13 Nov 2024 12:51:42 +0100 Subject: [PATCH 2/2] fix: remove www prefix --- packages/web/tests/test.spec.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/web/tests/test.spec.js b/packages/web/tests/test.spec.js index 1d3de9e3..f1d2a977 100644 --- a/packages/web/tests/test.spec.js +++ b/packages/web/tests/test.spec.js @@ -100,7 +100,7 @@ test.describe("Check all links", () => { await page.locator(".logo").click() const thingwebPage = await thingwebPromise await expect(thingwebPage).toHaveTitle("Eclipse Thingweb") - await expect(thingwebPage).toHaveURL("https://www.thingweb.io/") + await expect(thingwebPage).toHaveURL("https://thingweb.io/") }) test("Check CLI link", async ({ page }) => { @@ -124,7 +124,7 @@ test.describe("Check all links", () => { await page.locator("#thingweb-link").click() const thingwebPage = await thingwebPromise await expect(thingwebPage).toHaveTitle("Eclipse Thingweb") - await expect(thingwebPage).toHaveURL("https://www.thingweb.io/") + await expect(thingwebPage).toHaveURL("https://thingweb.io/") }) test("Check Eclipse footer link", async ({ page }) => {