Skip to content

Commit

Permalink
Refactor page to p in check
Browse files Browse the repository at this point in the history
This will help distinguish between page and the local variable in the
check.

Resolves: #1022 (comment)
Co-authored-by: İnanç Gümüş <inanc.gumus@grafana.com>
  • Loading branch information
ankur22 and inancgumus committed Sep 1, 2023
1 parent 1c776b8 commit d9bf638
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 => page.locator('h2').textContent() == 'Welcome, admin!',
'header': p => p.locator('h2').textContent() == 'Welcome, admin!',
});

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

0 comments on commit d9bf638

Please sign in to comment.