mirror of
https://github.com/Sea-Haven-Industries/shoc-frontend-new.git
synced 2026-09-30 06:53:12 +00:00
test(uplifts): assert the uplift amount on the approver e2e buttons
This commit is contained in:
parent
3d10ba8a0c
commit
56ca5b0c39
1 changed files with 2 additions and 2 deletions
4
e2e/vendors/vendor-uplift-workflow.spec.ts
vendored
4
e2e/vendors/vendor-uplift-workflow.spec.ts
vendored
|
|
@ -349,7 +349,7 @@ test("internal approver can approve, reject, and revoke with audited notes", asy
|
|||
await expect(page.getByRole("heading", { name: "Uplift Approvals" })).toBeVisible();
|
||||
|
||||
const approvalRow = page.getByRole("row").filter({ hasText: "DSP-41" });
|
||||
await approvalRow.getByRole("button", { name: "Approve" }).click();
|
||||
await approvalRow.getByRole("button", { name: "Approve $25.00" }).click();
|
||||
|
||||
const changesRow = page.getByRole("row").filter({ hasText: "DSP-42" });
|
||||
await changesRow.getByRole("button", { name: "Reject" }).click();
|
||||
|
|
@ -360,7 +360,7 @@ test("internal approver can approve, reject, and revoke with audited notes", asy
|
|||
const approvedRow = page.getByRole("row").filter({ hasText: "DSP-41" });
|
||||
await approvedRow.getByRole("button", { name: "Revoke" }).click();
|
||||
await page.getByLabel("Reason for revoking").fill("Approval was made in error.");
|
||||
await page.getByRole("button", { name: "Revoke $125" }).click();
|
||||
await page.getByRole("button", { name: "Revoke $25.00" }).click();
|
||||
|
||||
await expect
|
||||
.poll(() => decisions)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue