Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
MiraGeowerkstatt committed Aug 19, 2024
1 parent ddb6114 commit 3f4cbe1
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
8 changes: 4 additions & 4 deletions src/client/cypress/e2e/editor/bulkedit.cy.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {
createBorehole,
goToRouteAndAccptTerms,
goToRouteAndAcceptTerms,
loginAsAdmin,
startBoreholeEditing,
stopBoreholeEditing,
Expand Down Expand Up @@ -129,14 +129,14 @@ describe("Test the borehole bulk edit feature.", () => {
"borehole_id",
);
cy.get("@borehole_id").then(id => {
goToRouteAndAccptTerms(`/${id}/borehole`);
goToRouteAndAcceptTerms(`/${id}/borehole`);
startBoreholeEditing();
goToRouteAndAccptTerms(`/`);
goToRouteAndAcceptTerms(`/`);
showTableAndWaitForData();
cy.contains(".MuiDataGrid-row", "AAA_JUNIORSOUFFLE")
.find('.MuiCheckbox-root input[type="checkbox"]')
.should("be.disabled");
goToRouteAndAccptTerms(`/${id}/borehole`);
goToRouteAndAcceptTerms(`/${id}/borehole`);
stopBoreholeEditing();
});
});
Expand Down
4 changes: 2 additions & 2 deletions src/client/cypress/e2e/editor/completion.cy.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import {
createBorehole,
createCompletion,
goToRouteAndAccptTerms,
goToRouteAndAcceptTerms,
handlePrompt,
loginAsAdmin,
startBoreholeEditing,
Expand Down Expand Up @@ -613,7 +613,7 @@ describe("completion crud tests", () => {
cy.get("@borehole_id").then(id => {
cy.get("@completion1_id").then(completion1Id => {
// Preserves hash when reloading
goToRouteAndAccptTerms(`/${id}/completion/${completion1Id}`);
goToRouteAndAcceptTerms(`/${id}/completion/${completion1Id}`);
cy.location().should(location => {
expect(location.hash).to.eq("#casing");
});
Expand Down
4 changes: 2 additions & 2 deletions src/client/cypress/e2e/editor/fieldMeasurement.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {
createCasing,
createCompletion,
createFieldMeasurement,
goToRouteAndAccptTerms,
goToRouteAndAcceptTerms,
handlePrompt,
loginAsAdmin,
selectLanguage,
Expand Down Expand Up @@ -91,7 +91,7 @@ describe("Tests for the field measurement editor.", () => {
cy.get("@borehole_id").then(id => {
createFieldMeasurement(id, "2012-11-14T12:06Z", 15203157, 15203209, 15203219, 10, null, 0, 10);
createFieldMeasurement(id, "2012-11-14T12:07Z", 15203157, 15203209, 15203219, 10, null, 0, 12);
goToRouteAndAccptTerms(`/${id}/hydrogeology/fieldmeasurement`);
goToRouteAndAcceptTerms(`/${id}/hydrogeology/fieldmeasurement`);

startBoreholeEditing();
cy.get('[data-cy="fieldMeasurement-card.0"] [data-cy="todepth-formDisplay"]').contains("10");
Expand Down
8 changes: 4 additions & 4 deletions src/client/cypress/e2e/helpers/testHelpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ export const login = user => {
* Login into the application as admin.
*/

export const goToRouteAndAccptTerms = route => {
export const goToRouteAndAcceptTerms = route => {
cy.visit(route);
cy.get('[data-cy="accept-button"]').click();
};
Expand All @@ -147,7 +147,7 @@ export const loginAsAdmin = (route = "/") => {
statusCode: 200,
body: JSON.stringify(adminUser),
}).as("stubAdminUser");
goToRouteAndAccptTerms(route);
goToRouteAndAcceptTerms(route);
};

/**
Expand All @@ -159,7 +159,7 @@ export const loginAsEditor = (route = "/") => {
statusCode: 200,
body: JSON.stringify(editorUser),
}).as("stubEditorUser");
goToRouteAndAccptTerms(route);
goToRouteAndAcceptTerms(route);
};

/**
Expand All @@ -171,7 +171,7 @@ export const loginAsViewer = (route = "/") => {
statusCode: 200,
body: JSON.stringify(viewerUser),
}).as("stubViewerUser");
goToRouteAndAccptTerms(route);
goToRouteAndAcceptTerms(route);
};

export const newEditableBorehole = () => {
Expand Down

0 comments on commit 3f4cbe1

Please sign in to comment.