}).then(function(resp) {
if (!resp.ok) {
resp.json().then(function(respj) {
- document.getElementById('login-authenticate-error').innerHTML = `<p>${respj.errors[0]}</p>`;
+ document.getElementById('login-authenticate-error').innerHTML = "<p>"+respj.errors[0]+"</p>";
});
return;
}
oninput="clear_authenticate_error()"></input></p>
<input type="hidden" name="return_to" value="<%= "#{Rails.configuration.Services.Workbench1.ExternalURL}" %>" id="login-return-to">
<span style="color: red"><p id="login-authenticate-error"></p></span>
- <button type="submit" class="btn btn-primary">Login</button>
+ <button type="submit" class="btn btn-primary">Log in</button>
</form>
<% end %>
if !user
assert page.has_text?('Please log in'), 'Not found text - Please log in'
- assert page.has_text?('The "Log in" button below will show you a Google sign-in page'), 'Not found text - google sign in page'
+ assert page.has_text?('If you have never used Arvados Workbench before'), 'Not found text - If you have never'
assert page.has_no_text?('My projects'), 'Found text - My projects'
- assert page.has_link?("Log in to #{Rails.configuration.Workbench.SiteName}"), 'Not found text - log in to'
+ assert page.has_link?(/Log in/), 'Not found text - log in to'
elsif user['is_active']
if profile_config && !has_profile
assert page.has_text?('Save profile'), 'No text - Save profile'