From: Simon Brandhof Date: Tue, 22 Aug 2017 08:07:23 +0000 (+0200) Subject: Add integration test on web authentication with UTF-8 password X-Git-Tag: 6.6-RC1~552 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=c20afce399c3e73ee946d4cb7a0a4578bbbe7348;p=sonarqube.git Add integration test on web authentication with UTF-8 password --- 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