Skip to content

Commit

Permalink
Try adding an await
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremy-jung1 committed Feb 4, 2025
1 parent 669b089 commit 2eea5f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion e2e/scripts/pageHelpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export const answerConsentTrackingForm = async (page, dnt = false) => {
var text = 'Accept'
if (dnt)
text = 'Decline'
const answerButton = page.locator('button:visible', { hasText: text });
const answerButton = await page.locator('button:visible', { hasText: text });
await expect(answerButton).toBeVisible();
await answerButton.click();
}
Expand Down

0 comments on commit 2eea5f6

Please sign in to comment.