Skip to content

Commit 8592133

Browse files
committed
fix: update wizard test to save custom answer using Enter key instead of button click
1 parent 427a2d0 commit 8592133

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

playwright/tests/wizard-free-text.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ test("wizard accepts custom free text answers and shows them in the summary", as
3535

3636
const saveButton = page.getByRole("button", { name: "Save custom answer" })
3737
await expect(saveButton).toBeEnabled()
38-
await saveButton.click()
38+
await customInput.press("Enter")
3939

4040
await expect(questionHeading).toHaveText("What language do you use?")
4141

0 commit comments

Comments
 (0)