-
Notifications
You must be signed in to change notification settings - Fork 128
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cypress per thread message count (#24589)
- Loading branch information
1 parent
b470e75
commit 301ca2d
Showing
2 changed files
with
30 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
...lications/mhv/secure-messaging/tests/e2e/secure-messaging-thread-metadata.cypress.spec.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import SecureMessagingSite from './sm_site/SecureMessagingSite'; | ||
import PatientInboxPage from './pages/PatientInboxPage'; | ||
import inboxMessages from './fixtures/messages-response.json'; | ||
|
||
describe('Secure Messaging Message Details AXE Check', () => { | ||
it('Axe Check Message Details Page', () => { | ||
const landingPage = new PatientInboxPage(); | ||
const site = new SecureMessagingSite(); | ||
site.login(); | ||
const date = new Date(); | ||
date.setDate(date.getDate() - 2); | ||
landingPage.loadInboxMessages(inboxMessages); | ||
cy.get('[data-testid="message-count"]').should($msgCount => { | ||
expect($msgCount.first()).to.contain( | ||
inboxMessages.data.at(0).attributes.messageCount, | ||
); | ||
}); | ||
cy.injectAxe(); | ||
cy.axeCheck('main', { | ||
rules: { | ||
'aria-required-children': { | ||
enabled: false, | ||
}, | ||
}, | ||
}); | ||
}); | ||
}); |