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