From e7ebf36a40e85cfbe90a32799383b3d47f8a0e17 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20B=C3=BC=C3=9Femeyer?= Date: Tue, 17 Dec 2024 16:07:55 +0100 Subject: [PATCH] fix screenshot tests --- .../test/puppeteer/dataset_rendering.screenshot.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/javascripts/test/puppeteer/dataset_rendering.screenshot.ts b/frontend/javascripts/test/puppeteer/dataset_rendering.screenshot.ts index fd7c50b142..5290109d68 100644 --- a/frontend/javascripts/test/puppeteer/dataset_rendering.screenshot.ts +++ b/frontend/javascripts/test/puppeteer/dataset_rendering.screenshot.ts @@ -27,7 +27,7 @@ process.on("unhandledRejection", (err, promise) => { console.error("Unhandled rejection (promise: ", promise, ", reason: ", err, ")."); }); const BASE_PATH = path.join(__dirname, "../../../../frontend/javascripts/test/screenshots"); -let URL = "https://master.webknossos.xyz"; +let URL = "https://master.webknossos.xyz/"; if (!process.env.URL) { console.warn( @@ -114,7 +114,7 @@ test.before("Retrieve dataset ids", async () => { 3, async () => { const options = getDefaultRequestOptions(URL); - const url = `${URL}/api/datasets/disambiguate/sample_organization/${datasetName}/toId`; + const url = `${URL}api/datasets/disambiguate/sample_organization/${datasetName}/toId`; const response = await fetch(url, options); const { id } = await response.json(); datasetNameToId[datasetName] = id; @@ -124,7 +124,7 @@ test.before("Retrieve dataset ids", async () => { ); } }); -test("Dataset IDs were retrieved successfully", (t) => { +test.serial("Dataset IDs were retrieved successfully", (t) => { for (const datasetName of datasetNames) { t.truthy(datasetNameToId[datasetName], `Dataset ID not found for "${datasetName}"`); }