You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
import { test, expect } from '@playwright/test';
|
|
|
|
|
|
|
|
test('Check discover results', async ({ page }) => {
|
|
|
|
// Load Discover view
|
|
|
|
await page.goto('./discover');
|
|
|
|
|
|
|
|
// Check that initial 10 projects have been loaded
|
|
|
|
await page.locator('ul#listDiscoverResults li.border-b:nth-child(10)');
|
|
|
|
|
|
|
|
// Scroll down a bit to trigger loading additional projects
|
|
|
|
await page.locator('ul#listDiscoverResults li.border-b:nth-child(20)').scrollIntoViewIfNeeded();
|
|
|
|
});
|