Check activity feed
This commit is contained in:
12
test-playwright/check-activity-feed.spec.ts
Normal file
12
test-playwright/check-activity-feed.spec.ts
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
import { test, expect } from '@playwright/test';
|
||||||
|
|
||||||
|
test('test', async ({ page }) => {
|
||||||
|
// Load app homepage
|
||||||
|
await page.goto('https://test.timesafari.app/');
|
||||||
|
|
||||||
|
// Check that initial 10 activities have been loaded
|
||||||
|
await expect(page.locator('li:nth-child(10)')).toBeVisible();
|
||||||
|
|
||||||
|
// Scroll down a bit to trigger loading additional activities
|
||||||
|
await page.locator('li:nth-child(50)').scrollIntoViewIfNeeded();
|
||||||
|
});
|
||||||
Reference in New Issue
Block a user