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

14 lines
423 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('Концепт Портал');
2025-01-27 16:12:41 +03:00
2025-03-02 19:42:19 +03:00
await page.locator('.h-full > .mr-1').click();
await expect(page.getByText('Логин или email')).toBeVisible();
});