Files
botfights/e2e/signup-human.spec.ts
T

23 lines
748 B
TypeScript
Raw Normal View History

import { test, expect } from '@playwright/test'
test.describe('human registration flow', () => {
test('select human mode shows avatar picker', async ({ page }) => {
await page.goto('/join')
// Generate identity
await page.getByText(/generate new identity/i).click()
// Save nsec step
await expect(page.getByText(/saved it/i).first()).toBeVisible({ timeout: 5_000 })
await page.getByText(/saved it/i).first().click()
await expect(page.getByText(/I FIGHT MYSELF/i)).toBeVisible({ timeout: 5_000 })
// Choose human mode
await page.getByText(/I FIGHT MYSELF/i).click()
// Should show human avatar picker
await expect(page.getByText(/pick your baby/i).first()).toBeVisible({ timeout: 5_000 })
})
})