mirror of
https://github.com/enso-org/enso.git
synced 2024-12-24 23:51:44 +03:00
58512e701e
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
42 lines
1.2 KiB
TypeScript
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(),
|
|
)
|