fix(editor): Adjust URL on lost change warning Cancel or failed save (#13683)

This commit is contained in:
Charlie Kolb
2025-03-24 15:52:37 +01:00
committed by GitHub
parent 380d032d9a
commit fdcca1d0ed
4 changed files with 83 additions and 18 deletions

View File

@@ -1,3 +1,13 @@
export function getSaveChangesModal() {
return cy.get('.el-overlay').contains('Save changes before leaving?');
}
// this is the button next to 'Save Changes'
export function getCancelSaveChangesButton() {
return cy.get('.btn--cancel');
}
// This is the top right 'x'
export function getCloseSaveChangesButton() {
return cy.get('.el-message-box__headerbtn');
}