From 538345c07b735b292933697e441fe3c0081be330 Mon Sep 17 00:00:00 2001 From: Jose Olarte III Date: Sat, 20 Jul 2024 15:15:08 +0800 Subject: [PATCH] Check activity feed --- test-playwright/check-activity-feed.spec.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 test-playwright/check-activity-feed.spec.ts diff --git a/test-playwright/check-activity-feed.spec.ts b/test-playwright/check-activity-feed.spec.ts new file mode 100644 index 000000000..8572a25ea --- /dev/null +++ b/test-playwright/check-activity-feed.spec.ts @@ -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(); +}); \ No newline at end of file