forked from trent_larson/crowd-funder-for-time-pwa
adjust test lines to await/expect appropriately
This commit is contained in:
@@ -7,7 +7,7 @@ test('Check activity feed - check that server is running', async ({ page }) => {
|
||||
await page.getByTestId('closeOnboardingAndFinish').click();
|
||||
|
||||
// Check that initial 10 activities have been loaded
|
||||
await page.locator('ul#listLatestActivity li:nth-child(10)');
|
||||
await expect(page.locator('ul#listLatestActivity li:nth-child(10)')).toBeVisible();
|
||||
|
||||
// Scroll down a bit to trigger loading additional activities
|
||||
await page.locator('ul#listLatestActivity li:nth-child(50)').scrollIntoViewIfNeeded();
|
||||
@@ -18,7 +18,7 @@ test('Check discover results', async ({ page }) => {
|
||||
await page.goto('./discover');
|
||||
|
||||
// Check that initial 10 projects have been loaded
|
||||
await page.locator('ul#listDiscoverResults li.border-b:nth-child(10)');
|
||||
await expect(page.locator('ul#listDiscoverResults li.border-b:nth-child(10)')).toBeVisible();
|
||||
|
||||
// Scroll down a bit to trigger loading additional projects
|
||||
await page.locator('ul#listDiscoverResults li.border-b:nth-child(20)').scrollIntoViewIfNeeded();
|
||||
@@ -43,7 +43,7 @@ test('Check ability to share contact', async ({ page }) => {
|
||||
await page.goto('./discover');
|
||||
|
||||
// Check that initial 10 projects have been loaded
|
||||
await page.locator('ul#listDiscoverResults li.border-b:nth-child(10)');
|
||||
await expect(page.locator('ul#listDiscoverResults li.border-b:nth-child(10)')).toBeVisible();
|
||||
|
||||
// Scroll down a bit to trigger loading additional projects
|
||||
await page.locator('ul#listDiscoverResults li.border-b:nth-child(20)').scrollIntoViewIfNeeded();
|
||||
|
||||
Reference in New Issue
Block a user