Skip to content

Commit

Permalink
fix: fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
orefalo committed Jun 18, 2024
1 parent 229d266 commit 1bba531
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions tests/scrollVirtualList.spec.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
import { expect, test } from '@playwright/test';

test('add, remove all and add again works', async ({ page }) => {
await page.goto('http://localhost:3000/examples/positioning');
test('index 0, then 5000, then back to 0', async ({ page }) => {
await page.goto('http://localhost:3000/');
await page.waitForTimeout(2000);
await page.goto('/examples/positioning');

const testpage = page.locator(':has-text("Positioning")~div');
expect(testpage).toBeDefined();

const listWrapper = testpage.locator('div.virtual-list-wrapper').first();
expect(listWrapper).toBeDefined();

// count the rendered list rows
expect(await listWrapper.locator('div.row').count()).toBeGreaterThan(7);
Expand Down

0 comments on commit 1bba531

Please sign in to comment.