openreplay/frontend/tests/playwright/spots.spec.ts
Andrey Babushkin 09c98b5bde
E2e tests frontend (#3471)
* add playwright

* add e2e test

* add test

* add e2e test

* add e2e tests
2025-06-03 12:09:10 +02:00

14 lines
578 B
TypeScript

import { test, expect } from '@playwright/test';
test('Spots should display', async ({ page }) => {
await page.goto('http://localhost:3333/login');
await page.locator('[data-test-id="login"]').fill('andrei@openreplay.com');
await page.locator('[data-test-id="password"]').fill('Andrey123!');
await page.locator('[data-test-id="log-button"]').click();
await page.getByText('Spots').click();
await page.waitForTimeout(1000);
const spotItems = (
await page.locator('[data-test-id="spot-list-item"]').all()
).length;
expect(spotItems).toBeGreaterThan(0);
});