Skip to content
This repository has been archived by the owner on Jul 2, 2024. It is now read-only.

Commit

Permalink
EVG-20813: Update patch_with_aborted_task (#2036)
Browse files Browse the repository at this point in the history
  • Loading branch information
SupaJoon authored Sep 14, 2023
1 parent a62a6c4 commit 9157744
Showing 1 changed file with 7 additions and 12 deletions.
19 changes: 7 additions & 12 deletions cypress/integration/version/patch_with_aborted_task.ts
Original file line number Diff line number Diff line change
@@ -1,17 +1,12 @@
describe("Patch with aborted task", () => {
it("Shows status `aborted` in task table for tasks that were aborted", () => {
cy.visit(
"task/mongodb_mongo_main_enterprise_rhel_62_64_bit_dbtest_patch_0af9c85d7e2ba60f592f2d7a9a35217e254e59fb_5ee1efb3d1fe073e194e8b5c_20_06_11_08_48_06"
cy.visit("version/5e94c2dfe3c3312519b59480");
const taskId =
"mongodb_mongo_master_merge_patch_977e984bf4ed5a406da11af800c12356d0975502_5e94c2dfe3c3312519b59480_20_04_13_19_52_11";
cy.get(`[data-row-key=${taskId}] > .cy-task-table-col-STATUS`).within(
() => {
cy.dataCy("task-status-badge").should("have.text", "Aborted");
}
);
cy.dataCy("bc-message").click();
cy.get(
"[data-row-key=mongodb_mongo_main_enterprise_rhel_62_64_bit_dbtest_patch_0af9c85d7e2ba60f592f2d7a9a35217e254e59fb_5ee1efb3d1fe073e194e8b5c_20_06_11_08_48_06]"
).within(() => {
cy.get(".cy-task-table-col-STATUS").should("have.text", "Aborted");
cy.get(".cy-task-table-col-BASE_STATUS").should(
"not.have.text",
"Aborted"
);
});
});
});

0 comments on commit 9157744

Please sign in to comment.