enso/app/gui/e2e/dashboard/signUp.spec.ts
Sergei Garin 58512e701e
Show docs on Dashboard (#11391)
Closes: https://github.com/enso-org/cloud-v2/issues/1445

PR is more or less ready for feedback,CR, and QA.

# Read before looking into:

**Known issues:**
- [x] Need to adjust timings for the animations (they're a bit out of sync).
- [x] After the latest rebase, the side panel might expand while clicking on the sidebar toggle.
- [ ] Images no longer display. 🤦
- [x] Need to restore the functionality around spotlighting a component


Demo:

https://github.com/user-attachments/assets/8cec9ec0-4753-482e-8637-f3857b4396a5
2024-11-15 12:12:55 +00:00

42 lines
1.2 KiB
TypeScript

/** @file Test the login flow. */
import * as test from '@playwright/test'
import { INVALID_PASSWORD, mockAll, TEXT, VALID_EMAIL, VALID_PASSWORD } from './actions'
// =============
// === Tests ===
// =============
// Reset storage state for this file to avoid being authenticated
test.test.use({ storageState: { cookies: [], origins: [] } })
test.test('sign up without organization id', ({ page }) =>
mockAll({ page })
.goToPage.register()
.registerThatShouldFail('invalid email', VALID_PASSWORD, VALID_PASSWORD, {
assert: {
emailError: TEXT.invalidEmailValidationError,
passwordError: null,
confirmPasswordError: null,
formError: null,
},
})
.registerThatShouldFail(VALID_EMAIL, INVALID_PASSWORD, INVALID_PASSWORD, {
assert: {
emailError: null,
passwordError: TEXT.passwordValidationError,
confirmPasswordError: null,
formError: null,
},
})
.registerThatShouldFail(VALID_EMAIL, VALID_PASSWORD, INVALID_PASSWORD, {
assert: {
emailError: null,
passwordError: null,
confirmPasswordError: TEXT.passwordMismatchError,
formError: null,
},
})
.register(),
)