test(e2e): fix approvals action label assertion for CI

This commit is contained in:
Abhimanyu Saharan
2026-02-14 15:01:03 +00:00
committed by Abhimanyu Saharan
parent ba918d4231
commit c26dddbce8

View File

@@ -89,7 +89,8 @@ describe("Global approvals", () => {
// Pending approval should be visible in the list.
cy.contains(/unapproved tasks/i).should("be.visible");
cy.contains(/task closeout/i).should("be.visible");
// Action type is humanized as "Task · Closeout" in the UI.
cy.contains(/task\s*(?:·|\u00b7|\u2022)?\s*closeout/i).should("be.visible");
cy.contains("button", /^approve$/i).click();
cy.wait("@approvalUpdate", { timeout: 20_000 });