-
Notifications
You must be signed in to change notification settings - Fork 126
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add move reply draft scenario (#33275)
- Loading branch information
Showing
1 changed file
with
33 additions
and
0 deletions.
There are no files selected for viewing
33 changes: 33 additions & 0 deletions
33
...v-secure-messaging/tests/e2e/secure-messaging-move-message-on-reply-draft.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,33 @@ | ||
import SecureMessagingSite from './sm_site/SecureMessagingSite'; | ||
import PatientInboxPage from './pages/PatientInboxPage'; | ||
import PatientReplyPage from './pages/PatientReplyPage'; | ||
import GeneralFunctionsPage from './pages/GeneralFunctionsPage'; | ||
import PatientMessageDetailsPage from './pages/PatientMessageDetailsPage'; | ||
import { AXE_CONTEXT } from './utils/constants'; | ||
import singleThreadResponse from './fixtures/thread-response-new-api.json'; | ||
import PatientInterstitialPage from './pages/PatientInterstitialPage'; | ||
import FolderManagementPage from './pages/FolderManagementPage'; | ||
|
||
describe('SM DELETE REPLY DRAFT', () => { | ||
const updatedSingleThreadResponse = GeneralFunctionsPage.updatedThreadDates( | ||
singleThreadResponse, | ||
); | ||
it('verify user can delete draft on reply', () => { | ||
SecureMessagingSite.login(); | ||
PatientInboxPage.loadInboxMessages(); | ||
PatientMessageDetailsPage.loadSingleThread(updatedSingleThreadResponse); | ||
|
||
PatientReplyPage.clickReplyButton(updatedSingleThreadResponse); | ||
PatientInterstitialPage.getContinueButton().click(); | ||
|
||
FolderManagementPage.selectFolderFromModal(); | ||
FolderManagementPage.confirmMovingMessageToFolder(); | ||
FolderManagementPage.verifyMoveMessageSuccessConfirmationMessage(); | ||
FolderManagementPage.verifyMoveMessageSuccessConfirmationHasFocus(); | ||
GeneralFunctionsPage.verifyPageHeader('Inbox'); | ||
GeneralFunctionsPage.verifyUrl(`inbox`); | ||
|
||
cy.injectAxe(); | ||
cy.axeCheck(AXE_CONTEXT); | ||
}); | ||
}); |