diff --git a/webapp/e2e/steps/register-form.utils.js b/webapp/e2e/steps/register-form.utils.js index a7234eaf..d6eb5a9f 100644 --- a/webapp/e2e/steps/register-form.utils.js +++ b/webapp/e2e/steps/register-form.utils.js @@ -7,11 +7,10 @@ async function registerUser(page, username, password) { async function waitForWelcomeMessage(page, username) { await expect(page).toMatchElement('.welcome-message', { - text: 'Welcome back,', - timeout: 5000, + text: 'Welcome back, ', }) - await expect(page).toMatchElement('.welcome-message .username', { + await expect(page).toMatchElement('.welcome-message strong', { text: username, }) } diff --git a/webapp/src/components/AddUser/AddUser.js b/webapp/src/components/AddUser/AddUser.js index 02abf1ee..d27f9311 100644 --- a/webapp/src/components/AddUser/AddUser.js +++ b/webapp/src/components/AddUser/AddUser.js @@ -108,20 +108,16 @@ const AddUser = () => { />
{formErrors.username}
-{formErrors.password}
- setRepeatPassword(e.target.value)} - value={repeatPassword} - /> + +{formErrors.repeatPassword}
+ {t("register.go_login")} diff --git a/webapp/src/components/Login/Login.js b/webapp/src/components/Login/Login.js index 6e023d34..fc07e327 100644 --- a/webapp/src/components/Login/Login.js +++ b/webapp/src/components/Login/Login.js @@ -87,7 +87,7 @@ const Login = () => { />{formErrors.username}
-{formErrors.password}