Skip to content

Commit

Permalink
Wait for visible elements
Browse files Browse the repository at this point in the history
  • Loading branch information
jessabean committed Jan 10, 2025
1 parent 9b1840d commit 3150746
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/e2e/wp/create.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,7 @@ test.describe("Creating a new Work Plan", () => {

await adminWpDashboard.goto();
await adminWpDashboard.isReady();
await unlockButton.isVisible();
await unlockButton.click();
await modal
.getByRole("heading", { name: "You unlocked this Work Plan" })
Expand All @@ -215,6 +216,7 @@ test.describe("Creating a new Work Plan", () => {
test("State user can resubmit a work plan", async () => {
await wpDashboard.goto();
await wpDashboard.isReady();
await wpDashboard.firstReport.isVisible();
await wpDashboard.firstReport.getByRole("button", { name: "Edit" }).click();
await wpGeneralInformation.isReady();
await wpReviewAndSubmit.goto();
Expand Down

0 comments on commit 3150746

Please sign in to comment.