Skip to content

Commit

Permalink
Update screenshots (#6934)
Browse files Browse the repository at this point in the history
* update connectome screenshot

* add rotated kiwi screenshot

* throw error if browserstack credentials aren't available
  • Loading branch information
philippotto authored Mar 21, 2023
1 parent 7d41f92 commit 20f7e0c
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,12 @@ if (!WK_AUTH_TOKEN) {
throw new Error("No WK_AUTH_TOKEN specified.");
}

if (process.env.BROWSERSTACK_USERNAME == null || process.env.BROWSERSTACK_ACCESS_KEY == null) {
throw new Error(
"BROWSERSTACK_USERNAME and BROWSERSTACK_ACCESS_KEY must be defined as env variables.",
);
}

process.on("unhandledRejection", (err, promise) => {
console.error("Unhandled rejection (promise: ", promise, ", reason: ", err, ").");
});
Expand Down Expand Up @@ -95,7 +101,8 @@ test.beforeEach(async (t) => {
// @ts-expect-error ts-migrate(7017) FIXME: Element implicitly has an 'any' type because type ... Remove this comment to see the full error message
global.FetchError = FetchError;
});
// These are the datasets that are available on our dev instance

// These datasets are available on our dev instance (e.g., master.webknossos.xyz)
const datasetNames = [
"ROI2017_wkw",
"2017-05-31_mSEM_aniso-test",
Expand All @@ -105,6 +112,7 @@ const datasetNames = [
"float_test_dataset",
"Multi-Channel-Test",
"connectome_file_test_dataset",
"kiwi", // This dataset is rotated and translated.
];

type DatasetName = string;
Expand All @@ -125,6 +133,7 @@ const viewOverrides: Record<string, string> = {
'{"position":[63,67,118],"mode":"orthogonal","zoomStep":0.826,"stateByLayer":{"segmentation":{"meshInfo":{"meshFileName":"meshfile-with-name","meshes":[{"segmentId":4,"seedPosition":[64,75,118],"isPrecomputed":true,"meshFileName":"meshfile-with-name"},{"segmentId":12,"seedPosition":[107,125,118],"isPrecomputed":false,"mappingName":"agglomerate_view_70","mappingType":"HDF5"},{"segmentId":79,"seedPosition":[110,78,118],"isPrecomputed":false,"mappingName":null,"mappingType":null}]}}}}',
connectome_file_test_dataset:
'{"position":[102,109,60],"mode":"orthogonal","zoomStep":0.734,"stateByLayer":{"segmentation":{"connectomeInfo":{"connectomeName":"connectome","agglomerateIdsToImport":[1]}}}}',
kiwi: "1191,1112,21,0,8.746",
};
const datasetConfigOverrides: Record<string, PartialDatasetConfiguration> = {
ROI2017_wkw_fallback: {
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added frontend/javascripts/test/screenshots/kiwi.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 20f7e0c

Please sign in to comment.