Skip to content

Commit

Permalink
Make selector more accurate
Browse files Browse the repository at this point in the history
  • Loading branch information
ajuvonen committed Sep 19, 2024
1 parent a066610 commit 9216d8a
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 @@ -41,14 +41,14 @@ test('filters veggies in Finnish', async ({page}) => {
await expect(page.getByTestId('veggie-search-option-cherry tomato')).toBeVisible();
});

test('weekly challenges work', async ({page}) => {
test.only('weekly challenges work', async ({page}) => {
await page.goto('/');
await page.getByTestId('home-start-button').click();
await page.getByTestId('veggie-search-button').click();
await expect(page.getByTestId('veggie-search-challenges')).toBeHidden();
await page.getByTestId('veggie-search-option-apple').click();
await expect(page.getByTestId('veggie-search-challenge')).toBeVisible();
await page.getByTestId('veggie-search-challenge').click();
await page.getByTestId('veggie-search-challenge').locator('.veggie-search__option').click();
await expect(page.getByText(/^You have completed your weekly challenge!/)).toBeVisible();
});

Expand Down

0 comments on commit 9216d8a

Please sign in to comment.