Skip to content

Commit

Permalink
Improved test structure #1568
Browse files Browse the repository at this point in the history
  • Loading branch information
verheyenkoen committed Sep 9, 2024
1 parent ad5d94e commit e0c65fa
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions cypress/e2e/issues/issue-1568.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -677,13 +677,14 @@ describe("Issue #1568: Missing conflict handling when editing / adding / removin
.map((tr: HTMLTableRowElement) => tr.querySelector("td").textContent)
.should("eql", contributors);
}

function verifyConflictErrorDialog(scope: "Publication" | "Dataset") {
cy.ensureModal(null)
.within(() => {
cy.contains(
`${scope} has been modified by another user. Please reload the page.`,
).should("be.visible");
})
.closeModal("Close");
}
});
function verifyConflictErrorDialog(scope: "Publication" | "Dataset") {
cy.ensureModal(null)
.within(() => {
cy.contains(
`${scope} has been modified by another user. Please reload the page.`,
).should("be.visible");
})
.closeModal("Close");
}

0 comments on commit e0c65fa

Please sign in to comment.