Skip to content

Commit

Permalink
Fixup rename loginAsViewer
Browse files Browse the repository at this point in the history
  • Loading branch information
Philippluca committed Dec 21, 2023
1 parent 0a9a7fa commit e5a406a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/client/cypress/e2e/editor/instrumentation.cy.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import {
loginAsViewer,
loginAsEditorInViewerMode,
createBorehole,
createAndEditBoreholeAsAdmin,
} from "../testHelpers";

describe("Instrumentation tests", () => {
it("Displays correct 'No Instumentation' message when logged in as viewer and no stratigraphies are defined", () => {
createBorehole({ "extended.original_name": "A1_Borehole" });
loginAsViewer();
loginAsEditorInViewerMode();
cy.visit("/editor");

// Select borehole A1_Borehole
Expand Down
4 changes: 2 additions & 2 deletions src/client/cypress/e2e/filter.cy.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { loginAsAdmin, loginAsViewer } from "../e2e/testHelpers";
import { loginAsAdmin, loginAsEditorInViewerMode } from "../e2e/testHelpers";

describe("Search filter tests", () => {
it("has search filters", () => {
Expand Down Expand Up @@ -42,7 +42,7 @@ describe("Search filter tests", () => {
});

it("shows 'fiter by map' in editor on 'Large Map' appearance", () => {
loginAsViewer();
loginAsEditorInViewerMode();
cy.visit("/setting/editor");

// Check if Editor mode settings are apparant
Expand Down

0 comments on commit e5a406a

Please sign in to comment.