Skip to content

Commit

Permalink
upd: selectors
Browse files Browse the repository at this point in the history
  • Loading branch information
fazilqa committed Mar 19, 2024
1 parent e69e49b commit 84926dc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -298,10 +298,7 @@ class PatientComposePage {
};

verifyAlertModal = () => {
cy.get(`[modaltitle="We can't save this message yet"]`)
.shadow()
.find('[class="usa-modal va-modal-alert"]')
.should('contain', "We can't save this message yet");
cy.get(`h1`).should('contain', "We can't save this message yet");
};

clickOnContinueEditingButton = () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ class PatientReplyPage {

verifyModalMessageDisplayAndBuddontsCantSaveDraft = () => {
cy.get(Locators.REPLY_FORM)
.find('h2')
.find('h1')
.should('have.text', "We can't save this message yet");

cy.contains('Continue editing').should('be.visible');
Expand Down

0 comments on commit 84926dc

Please sign in to comment.