mirror of
https://github.com/enso-org/enso.git
synced 2024-12-21 08:01:46 +03:00
736134e491
Fixes #11604 Most issues were caused by a problem with Project List flooding the network with its requests - this was fixed on develop. But one assertion was flaky - it assumed we will see the "real" run result on `write` node, but sometimes it is immediately overwritten by dry run. But the most important part of this PR is adding traces to Electron packages - it's should be much easier now to debug E2E test failures. Also renamed the previously misnamed "E2E tests" to "[GUI] integration tests".
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(),
|
|
)
|