add some time to test 30 (but shrink the per-loop timeout)
This commit is contained in:
@@ -88,6 +88,8 @@ import { test, expect } from '@playwright/test';
|
|||||||
import { importUser, createUniqueStringsArray, createRandomNumbersArray } from './testUtils';
|
import { importUser, createUniqueStringsArray, createRandomNumbersArray } from './testUtils';
|
||||||
|
|
||||||
test('Record 9 new gifts', async ({ page }) => {
|
test('Record 9 new gifts', async ({ page }) => {
|
||||||
|
test.slow(); // Set timeout longer
|
||||||
|
|
||||||
const giftCount = 9;
|
const giftCount = 9;
|
||||||
const standardTitle = 'Gift ';
|
const standardTitle = 'Gift ';
|
||||||
const finalTitles = [];
|
const finalTitles = [];
|
||||||
@@ -127,6 +129,6 @@ test('Record 9 new gifts', async ({ page }) => {
|
|||||||
await expect(page.locator('ul#listLatestActivity li')
|
await expect(page.locator('ul#listLatestActivity li')
|
||||||
.filter({ hasText: finalTitles[i] })
|
.filter({ hasText: finalTitles[i] })
|
||||||
.first())
|
.first())
|
||||||
.toBeVisible({ timeout: 10000 });
|
.toBeVisible({ timeout: 3000 });
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
Reference in New Issue
Block a user