openreplay/frontend/tests/playwright/session-list.spec.ts
Андрей Бабушкин 487fc85a04 add e2e test
2025-05-23 15:12:47 +02:00

14 lines
No EOL
599 B
TypeScript

import { test, expect } from '@playwright/test';
import { testUseAuthState } from './helpers';
testUseAuthState();
test('test', async ({ page }) => {
await page.goto('/');
await page.getByRole('button', { name: 'OpenReplay Documentation Site' }).click();
await page.getByRole('menuitem', { name: 'Android' }).locator('div').click();
await page.getByRole('button', { name: 'Android caret-down' }).click();
await page.getByText('OpenReplay Documentation Site').click();
await page.locator('#session-item').first().click();
await expect(page.locator('#session-item')).toBeVisible();
});