ConceptPortal-public/rsconcept/frontend/tests/app.spec.ts

15 lines
496 B
TypeScript
Raw Normal View History

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