Skip to content

Commit

Permalink
[RFR] Add separate tests for discarding Assessment and Review (#800)
Browse files Browse the repository at this point in the history
* Add separate tests for discarding Assessment and Review

* Minor changes

Signed-off-by: Nandini Chandra <[email protected]>

* Minor changes

Signed-off-by: Nandini Chandra <[email protected]>

---------

Signed-off-by: Nandini Chandra <[email protected]>
  • Loading branch information
nachandr authored Nov 14, 2023
1 parent d32db72 commit 0716929
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -394,11 +394,11 @@ export class Assessment extends Application {
}
}

discard_assessment(): void {
selectKebabMenuItem(selection: string): void {
Application.open();
selectItemsPerPage(100);
this.selectApplication();
clickItemInKebabMenu(this.name, "Discard assessment/review");
clickItemInKebabMenu(this.name, selection);
cy.get(continueButton).click();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,17 @@ describe(["@tier3"], "Tests related to application assessment and review", () =>
applicationList[0].verifyStatus("review", "Completed");
});

it("Discard Assess/Review", function () {
applicationList[0].discard_assessment();
/* Add this after bug MTA-1611 is resolved.
checkSuccessAlert(alertTitle, `Success alert:Success! Assessment discarded for applicationList[0].name.`);
applicationList[0].verifyStatus("assessment", "Not started"); */
it("Discard Assessment", function () {
applicationList[0].selectKebabMenuItem("Discard assessment(s)");
checkSuccessAlert(
alertTitle,
`Success alert:Success! Assessment discarded for ${applicationList[0].name}.`
);
applicationList[0].verifyStatus("assessment", "Not started");
});

it("Discard Review", function () {
applicationList[0].selectKebabMenuItem("Discard review");
checkSuccessAlert(
alertTitle,
`Success alert:Success! Review discarded for ${applicationList[0].name}.`
Expand Down

0 comments on commit 0716929

Please sign in to comment.