"/user/LocalAuthenticationTest/redirect_to_login_when_not_enough_privilege.html",
// SONAR-2132
"/user/LocalAuthenticationTest/redirect_to_original_url_after_direct_login.html",
+ "/user/LocalAuthenticationTest/redirect_to_original_url_with_parameters_after_direct_login.html",
// SONAR-2009
"/user/LocalAuthenticationTest/redirect_to_original_url_after_indirect_login.html").build()).runOn(ORCHESTRATOR);
--- /dev/null
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head profile="http://selenium-ide.openqa.org/profiles/test-case">
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
+</head>
+<body>
+<table cellpadding="1" cellspacing="1" border="1">
+ <tbody>
+ <tr>
+ <td>open</td>
+ <td>/sessions/logout</td>
+ <td></td>
+ </tr>
+ <tr>
+ <td>open</td>
+ <td>/projects?gate=OK&reliability=1&security=1</td>
+ <td></td>
+ </tr>
+ <tr>
+ <td>waitForText</td>
+ <td>global-navigation</td>
+ <td>*Log in*</td>
+ </tr>
+ <tr>
+ <td>click</td>
+ <td>link=Log in</td>
+ <td></td>
+ </tr>
+ <tr>
+ <td>waitForText</td>
+ <td>content</td>
+ <td>*Log In to SonarQube*</td>
+ </tr>
+ <tr>
+ <td>type</td>
+ <td>id=login</td>
+ <td>admin</td>
+ </tr>
+ <tr>
+ <td>type</td>
+ <td>id=password</td>
+ <td>admin</td>
+ </tr>
+ <tr>
+ <td>clickAndWait</td>
+ <td>commit</td>
+ <td></td>
+ </tr>
+ <tr>
+ <td>waitForElementPresent</td>
+ <td>css=.js-user-authenticated</td>
+ <td></td>
+ </tr>
+ <tr>
+ <td>waitForText</td>
+ <td>css=.navbar</td>
+ <td>*Administrator*</td>
+ </tr>
+ <tr>
+ <td>assertLocation</td>
+ <td>*/projects?gate=OK&reliability=1&security=1</td>
+ <td></td>
+ </tr>
+ </tbody>
+</table>
+</body>
+</html>
$("#login_form").modalForm({
success: function () {
- window.location = '<%= h(@return_to) -%>' + $('[name="return_to_anchor"]').val();
+ window.location = '<%= escape_javascript @return_to -%>' + $('[name="return_to_anchor"]').val();
},
error: function () {
$('.alert-flash').addClass('hidden');