Skip to content

Commit

Permalink
add move reply draft scenario (#33275)
Browse files Browse the repository at this point in the history
  • Loading branch information
fazilqa authored Dec 2, 2024
1 parent 98f17a9 commit 2092351
Showing 1 changed file with 33 additions and 0 deletions.
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);
});
});

0 comments on commit 2092351

Please sign in to comment.