mirror of
https://github.com/CompassConnections/Compass.git
synced 2026-03-27 19:12:05 -04:00
* Test * Add pretty formatting * Fix Tests * Fix Tests * Fix Tests * Fix * Add pretty formatting fix * Fix * Test * Fix tests * Clean typeckech * Add prettier check * Fix api tsconfig * Fix api tsconfig * Fix tsconfig * Fix * Fix * Prettier
23 lines
586 B
TypeScript
23 lines
586 B
TypeScript
import {expect} from '@playwright/test'
|
|
|
|
import {test} from '../fixtures/deleteUserFixture'
|
|
import {AuthPage} from '../pages/AuthPage'
|
|
import {config} from '../SPEC_CONFIG'
|
|
|
|
test('user can sign up with email + password', async ({page}) => {
|
|
const auth = new AuthPage(page)
|
|
|
|
await page.goto('/')
|
|
|
|
await auth.clickSignUpButton()
|
|
|
|
await auth.fillEmailField(config.USERS.SPEC.EMAIL)
|
|
await auth.fillPasswordField(config.USERS.SPEC.PASSWORD)
|
|
|
|
await auth.clickSignUpWithEmailButton()
|
|
|
|
await page.waitForURL(/^(?!.*\/signup).*$/)
|
|
|
|
expect(page.url()).not.toContain('/signup')
|
|
})
|