|
@ -45,9 +45,6 @@ test('Create 10 new projects', async ({ page }) => { |
|
|
// Import user 00
|
|
|
// Import user 00
|
|
|
await importUser(page, '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
|
|
|
// Create new projects
|
|
|
for (let i = 0; i < projectCount; i++) { |
|
|
for (let i = 0; i < projectCount; i++) { |
|
|
await page.goto('./projects'); |
|
|
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 Date').fill('2025-12-01'); |
|
|
await page.getByPlaceholder('Start Time').fill('12:00'); |
|
|
await page.getByPlaceholder('Start Time').fill('12:00'); |
|
|
await page.getByRole('button', { name: 'Save Project' }).click(); |
|
|
await page.getByRole('button', { name: 'Save Project' }).click(); |
|
|
await page.waitForTimeout(1000); // Compensate for delay in loading Idea Name heading
|
|
|
|
|
|
|
|
|
|
|
|
// Check texts
|
|
|
// Check texts
|
|
|
await expect(page.locator('h2')).toContainText(finalTitles[i]); |
|
|
await expect(page.locator('h2')).toContainText(finalTitles[i]); |
|
|