Skip to content

Commit

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

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

for (let i = 0; i < (await toastLocator.count()); i++) {
await toastLocator.nth(i).click();
while ((await toastLocator.count()) > 0) {
await toastLocator.first().click(); // Click the first toast message
}

await page.getByTestId('navbar-link-settings').click();
await page.getByTestId('navbar-link-log').click();
await expect(page.getByTestId('category-status-chart-center-label')).toHaveText(
Expand Down

0 comments on commit c123e60

Please sign in to comment.