Skip to content

Commit

Permalink
chore: debug
Browse files Browse the repository at this point in the history
  • Loading branch information
sarahschwartz committed Oct 16, 2024
1 parent cf65b4d commit 722a1d4
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions tests/utils/button.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@ import type { Page } from '@playwright/test';

export async function clickButtonByText(page: Page, selector: string | RegExp) {
const buttons = page.locator('button');
console.log('BUTTONS', await buttons.all());
const buttonByText = buttons.getByText(selector);
console.log('BUTTON BY TEXT', await buttonByText.all());
await buttonByText.click();
await page.waitForTimeout(1000);
}
Expand Down

0 comments on commit 722a1d4

Please sign in to comment.