openreplay/frontend/tests/playwright/sessionList.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

16 lines
No EOL
808 B
TypeScript

import { test, expect } from '@playwright/test';
import { testUseAuthState } from './helpers';
testUseAuthState();
test('check session list after change period', 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.getByRole('button', { name: 'Android caret-down' }).click();
await page.getByRole('menuitem', { name: 'OpenReplay Documentation Site' }).click();
await page.getByRole('button', { name: 'Past 24 Hours down' }).click();
await page.getByRole('menuitem', { name: 'Past 30 Days' }).click();
await page.locator('#session-item').first().click();
});