Portal/rsconcept/frontend/tests/app.spec.ts
2025-03-02 20:27:02 +03:00

14 lines
423 B
TypeScript

import { expect, test } from '@playwright/test';
import { authAnonymous } from './mocks/auth';
test('should load the homepage and display login button', async ({ page }) => {
await authAnonymous(page);
await page.goto('/');
await expect(page).toHaveTitle('Концепт Портал');
await page.locator('.h-full > .mr-1').click();
await expect(page.getByText('Логин или email')).toBeVisible();
});