Skip to content

Commit

Permalink
Added a bit more time to fix some tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jlucaspains committed Dec 27, 2024
1 parent e1d7432 commit a483a95
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/category-recipes.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ test.beforeEach(async ({ page }) => {
async function goToCategory(page: Page, category: string) {
await page.goto('/');
await page.getByText(category).click();
await page.waitForTimeout(200);
await page.waitForTimeout(500);
}

test('title is Category 1', async ({ page }) => {
Expand All @@ -31,7 +31,6 @@ test('title is Category 1', async ({ page }) => {
test('open recipe', async ({ page }) => {
await createRecipe(page, 2, "recipe", 1, ["1 cup flour"], ["Preheat oven to 350 F"], false, "Category 1");
await goToCategory(page, "Category 1");
await page.waitForTimeout(200);
await page.getByTestId('recipe-title').first().click();
await page.waitForTimeout(200);
await expect(page).toHaveURL(/.*\/recipe\/2/);
Expand Down

0 comments on commit a483a95

Please sign in to comment.