17499: Fixing tests WIP
authorPeter Amstutz <peter.amstutz@curii.com>
Fri, 14 May 2021 21:34:00 +0000 (17:34 -0400)
committerPeter Amstutz <peter.amstutz@curii.com>
Fri, 14 May 2021 21:34:00 +0000 (17:34 -0400)
Arvados-DCO-1.1-Signed-off-by: Peter Amstutz <peter.amstutz@curii.com>

apps/workbench/app/views/users/welcome.html.erb
apps/workbench/test/integration/application_layout_test.rb

index 8d3e42e4e3f1e548af1bd0da7b06214ce1251774..0b98909e67d81f036558153e2fb662ff70af1f30 100644 (file)
@@ -19,7 +19,7 @@ SPDX-License-Identifier: AGPL-3.0 %>
         }).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;
            }
@@ -68,7 +68,7 @@ SPDX-License-Identifier: AGPL-3.0 %>
                             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 %>
 
index e28809e1318ba42c572d9f1a3eca94387d9a39b2..235fb0d487cf12be09198cbd630ca12f22486120 100644 (file)
@@ -20,9 +20,9 @@ class ApplicationLayoutTest < ActionDispatch::IntegrationTest
 
     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'