Skip to content

armgit / TREK

Public Imported from GitHub
0

The most complete open-source travel planner: real-time collaboration, bookings, budgets, packing lists, journals, offline PWA, SSO and an AI-ready MCP server, with planet-wide place search and routing built in.

813 B
Raw Blame
import { test, expect } from './shot'

/**
 * Unauthenticated surfaces. `storageState: undefined` drops the admin session
 * this project otherwise inherits, so these render as a logged-out visitor sees
 * them — which is the entire point of the login and registration pages.
 */
test.use({ storageState: undefined })

test('login page', async ({ page, shot }) => {
  await page.goto('/login')
  await expect(page.locator('input[type="email"]')).toBeVisible()
  await shot.page_('Login')
})

test('registration page', async ({ page, shot }) => {
  await page.goto('/register')
  await page.waitForTimeout(500)
  await shot.page_('Registration')
})

test('forgot password', async ({ page, shot }) => {
  await page.goto('/forgot-password')
  await page.waitForTimeout(500)
  await shot.page_('PasswordReset')
})