openreplay/frontend/tests/playwright/sign-in.spec.ts
Andrey Babushkin 373238429e
E2e tests frontend (#3473)
* add playwright

* add e2e test

* add test

* add e2e test

* add e2e tests

* fixed config
2025-06-03 14:32:28 +02:00

13 lines
No EOL
512 B
TypeScript

import { test, expect } from '@playwright/test';
test('Sign in flow', async ({ page }) => {
const LOGIN = process.env.TEST_FOSS_LOGIN || '';
const PASSWORD = process.env.TEST_FOSS_PASSWORD || '';
await page.goto('/');
await page
.locator('[data-test-id="login"]')
.fill(LOGIN);
await page.locator('[data-test-id="password"]').fill(PASSWORD);
await page.locator('[data-test-id="log-button"]').click();
await expect(page.getByRole('heading', { name: 'Sessions' })).toBeVisible();
});