88146f22b6
Frontend CI / build-and-check (push) Failing after 19s
🚀 Create and publish a Docker image / Detect changes in backend and frontend (push) Successful in 8s
🚀 Create and publish a Docker image / Build & publish backend image (push) Successful in 8s
🚀 Create and publish a Docker image / Build & publish frontend image (push) Successful in 20s
🚀 Create and publish a Docker image / Update stack on Portainer (push) Successful in 3s
10 lines
363 B
TypeScript
10 lines
363 B
TypeScript
import { test, expect } from '@playwright/test'
|
|
import { mockApi } from './support/mockApi'
|
|
|
|
test('redirects unauthenticated user to login', async ({ page }) => {
|
|
await mockApi(page, { authenticated: false })
|
|
await page.goto('/catalog')
|
|
await expect(page).toHaveURL(/\/login/)
|
|
await expect(page.getByText('Войти через ЮФУ')).toBeVisible()
|
|
})
|