Skip to content

Commit

Permalink
Fix the check on fillform
Browse files Browse the repository at this point in the history
The check on the fillform example test worked but is not quite correct.
Check actually expects a function that returns a boolean, as is is
documented.
  • Loading branch information
ankur22 committed Sep 1, 2023
1 parent eba34cc commit d155b3a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/fillform.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export default async function() {
page.locator('input[type="submit"]').click(),
]);
check(page, {
'header': page.locator('h2').textContent() == 'Welcome, admin!',
'header': page => page.locator('h2').textContent() == 'Welcome, admin!',
});

// Check whether we receive cookies from the logged site.
Expand Down

0 comments on commit d155b3a

Please sign in to comment.