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()
})
