Skip to content

Commit

Permalink
Different click approach
Browse files Browse the repository at this point in the history
  • Loading branch information
ajuvonen committed Dec 13, 2024
1 parent ca6aa29 commit 2615114
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions e2e/log.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ test.only('logs veggies', async ({page}) => {

const toastLocator = page.getByTestId('toast-message');

while ((await toastLocator.count()) > 0) {
await toastLocator.nth(0).click({force: true});
for (let i = 0; i < (await toastLocator.count()); i++) {
await toastLocator.nth(i).click();
}

await page.getByTestId('navbar-link-settings').click();
Expand Down

0 comments on commit 2615114

Please sign in to comment.