Skip to content

Commit

Permalink
fix screenshot tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Büßemeyer authored and Michael Büßemeyer committed Dec 17, 2024
1 parent 8b3102e commit e7ebf36
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -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;
Expand All @@ -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}"`);
}
Expand Down

0 comments on commit e7ebf36

Please sign in to comment.