Skip to content

Commit

Permalink
fix code structure
Browse files Browse the repository at this point in the history
  • Loading branch information
augustlindemer committed Oct 21, 2024
1 parent 7d6b938 commit 468cc17
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions e2e/tests/ui-driven/src/helpers/userActions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -333,10 +333,6 @@ export async function answerListInput(
await expect(
page.locator("h2", { hasText: "Existing residential unit type 1" }),
).toBeVisible(); // assume the default list for now
await page
.getByLabel("Number of units of this type")
.fill(numUnits.toString());

await page
.getByRole("combobox", { name: "What best describes this unit?" })
.click();
Expand All @@ -352,6 +348,9 @@ export async function answerListInput(
await page
.getByLabel("How many bedrooms does this unit have?")
.fill(numBedrooms.toString());
await page
.getByLabel("Number of units of this type")
.fill(numUnits.toString());

const saveButton = page.getByTestId("save-item-button");
await saveButton.click();
Expand Down

0 comments on commit 468cc17

Please sign in to comment.