Skip to content

Commit

Permalink
Fix cy test
Browse files Browse the repository at this point in the history
  • Loading branch information
MiraGeowerkstatt committed Aug 22, 2024
1 parent f17836a commit ff41c87
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/client/cypress/e2e/editor/lithologicalDescription.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ describe("Tests for the lithological description column.", () => {
// delete last layer
cy.get('[data-cy="description-1"] [data-testid="DeleteIcon"] ').click();

deleteItem();
deleteItem("description-button-box");
cy.wait("@lithological_description"); // delete request
cy.wait("@lithological_description"); // updated get request
cy.wait(5000);
Expand Down Expand Up @@ -119,7 +119,7 @@ describe("Tests for the lithological description column.", () => {

// assert error message
cy.get('[data-cy="description-1"]').contains("You are about to delete this layer, how do you want to proceed?");
deleteItem();
deleteItem("description-button-box");
cy.wait("@lithological_description"); // delete request
cy.wait("@lithological_description"); // updated get request
cy.get('[data-cy="description-1"]').contains("There is an undefined interval in the sequence");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,10 @@ const DescriptionDeleteDialog = props => {
<Typography sx={{ color: theme.palette.error.main }} variant="subtitle2">
{t("deletelayerconfirmation")}
</Typography>
<Box alignSelf="flex-end" sx={{ marginTop: "auto", marginRight: "0.5em", marginBottom: "0.5em" }}>
<Box
data-cy="description-button-box"
alignSelf="flex-end"
sx={{ marginTop: "auto", marginRight: "0.5em", marginBottom: "0.5em" }}>
<CancelButton
onClick={e => {
e.stopPropagation();
Expand Down

0 comments on commit ff41c87

Please sign in to comment.