From c20afce399c3e73ee946d4cb7a0a4578bbbe7348 Mon Sep 17 00:00:00 2001 From: Simon Brandhof Date: Tue, 22 Aug 2017 10:07:23 +0200 Subject: [PATCH] Add integration test on web authentication with UTF-8 password --- .../tests/user/LocalAuthenticationTest.java | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/tests/src/test/java/org/sonarqube/tests/user/LocalAuthenticationTest.java b/tests/src/test/java/org/sonarqube/tests/user/LocalAuthenticationTest.java index dc3e31c9bb2..043dbc675a8 100644 --- a/tests/src/test/java/org/sonarqube/tests/user/LocalAuthenticationTest.java +++ b/tests/src/test/java/org/sonarqube/tests/user/LocalAuthenticationTest.java @@ -25,7 +25,6 @@ import java.util.UUID; import org.junit.After; import org.junit.Before; import org.junit.ClassRule; -import org.junit.Ignore; import org.junit.Rule; import org.junit.Test; import org.sonarqube.pageobjects.LoginPage; @@ -133,9 +132,18 @@ public class LocalAuthenticationTest { } @Test - @Ignore public void web_login_form_should_support_utf8_passwords() { - // TODO selenium + String login = "user_with_utf8_password"; + // see http://www.cl.cam.ac.uk/~mgk25/ucs/examples/UTF-8-test.txt + String password = "κόσμε"; + + // create user with a UTF-8 password + tester.users().generate(u -> u.setLogin(login).setPassword(password)); + + tester.openBrowser() + .logIn() + .submitCredentials(login, password) + .shouldBeLoggedIn(); } @Test -- 2.39.5