Skip to content

Commit

Permalink
will this fix anything
Browse files Browse the repository at this point in the history
  • Loading branch information
jessabean committed Jan 10, 2025
1 parent 3150746 commit 2574643
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions tests/e2e/wp/create.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -198,14 +198,14 @@ test.describe("Creating a new Work Plan", () => {
});

test("Admin user can deny a work plan", async () => {
const page = adminWpDashboard.page;
const unlockButton = page.getByRole("button", { name: "Unlock" }).first();
const modal = page.getByRole("dialog");

await adminWpDashboard.goto();
await adminWpDashboard.isReady();
const unlockButton = adminWpDashboard.page
.getByRole("button", { name: "Unlock" })
.first();
await unlockButton.isVisible();
await unlockButton.click();
const modal = adminWpDashboard.page.getByRole("dialog");
await modal
.getByRole("heading", { name: "You unlocked this Work Plan" })
.isVisible();
Expand All @@ -224,8 +224,9 @@ test.describe("Creating a new Work Plan", () => {
await wpReviewAndSubmit.submitButton.click();
await wpReviewAndSubmit.confirmSubmit();
await adminWpDashboard.goto();

await expect(
adminWpDashboard.page.getByTestId("dashboard-submission-count")
adminWpDashboard.firstReport.getByTestId("dashboard-submission-count")
).toContainText("2");
});
});

0 comments on commit 2574643

Please sign in to comment.