diff --git a/cypress/integration/version/patch_with_aborted_task.ts b/cypress/integration/version/patch_with_aborted_task.ts index b0c14e99e9..c84c1a5709 100644 --- a/cypress/integration/version/patch_with_aborted_task.ts +++ b/cypress/integration/version/patch_with_aborted_task.ts @@ -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" - ); - }); }); });