diff --git a/test-playwright/20-create-project.spec.ts b/test-playwright/20-create-project.spec.ts index 4564a7864..19e077cff 100644 --- a/test-playwright/20-create-project.spec.ts +++ b/test-playwright/20-create-project.spec.ts @@ -22,9 +22,6 @@ test('Create new project, then search for it', async ({ page }) => { // Import user 00 await importUser(page, '00'); - // Pause for 5 seconds - await page.waitForTimeout(5000); // I have to wait, otherwise the (+) button to add a new project doesn't appear - // Create new project await page.goto('./projects'); await page.getByRole('link', { name: 'Projects', exact: true }).click(); diff --git a/test-playwright/25-create-project-x10.spec.ts b/test-playwright/25-create-project-x10.spec.ts index 7c9a7556f..fba7179b7 100644 --- a/test-playwright/25-create-project-x10.spec.ts +++ b/test-playwright/25-create-project-x10.spec.ts @@ -45,9 +45,6 @@ test('Create 10 new projects', async ({ page }) => { // Import user 00 await importUser(page, '00'); - // Pause a bit - await page.waitForTimeout(3000); // I have to wait, otherwise the (+) button to add a new project doesn't appear - // Create new projects for (let i = 0; i < projectCount; i++) { await page.goto('./projects'); @@ -59,7 +56,6 @@ test('Create 10 new projects', async ({ page }) => { await page.getByPlaceholder('Start Date').fill('2025-12-01'); await page.getByPlaceholder('Start Time').fill('12:00'); await page.getByRole('button', { name: 'Save Project' }).click(); - await page.waitForTimeout(1000); // Compensate for delay in loading Idea Name heading // Check texts await expect(page.locator('h2')).toContainText(finalTitles[i]); diff --git a/test-playwright/33-record-gift-x10.spec.ts b/test-playwright/33-record-gift-x10.spec.ts index 15e4853f2..cec1bda75 100644 --- a/test-playwright/33-record-gift-x10.spec.ts +++ b/test-playwright/33-record-gift-x10.spec.ts @@ -57,9 +57,6 @@ test('Record 10 new gifts', async ({ page }) => { // Import user 00 await importUser(page, '00'); - // Pause a bit - await page.waitForTimeout(3000); // I have to wait, otherwise the (+) button to add a new project doesn't appear - // Record new gifts for (let i = 0; i < giftCount; i++) { // Record something given