[ARVADOS] updated: 7ec30c76580397ca6b06bf1bbdb1ca9dc9f7af2f

git at public.curoverse.com git at public.curoverse.com
Fri Mar 27 16:52:45 EDT 2015


Summary of changes:
 .../test/integration/application_layout_test.rb    | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)

       via  7ec30c76580397ca6b06bf1bbdb1ca9dc9f7af2f (commit)
      from  663d024598ea7b6384b9e24e5ea760ecb710ecda (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


commit 7ec30c76580397ca6b06bf1bbdb1ca9dc9f7af2f
Author: Radhika Chippada <radhika at curoverse.com>
Date:   Fri Mar 27 16:52:03 2015 -0400

    5493: add test for the getting_started help menu item.

diff --git a/apps/workbench/test/integration/application_layout_test.rb b/apps/workbench/test/integration/application_layout_test.rb
index 84acdc6..17b8676 100644
--- a/apps/workbench/test/integration/application_layout_test.rb
+++ b/apps/workbench/test/integration/application_layout_test.rb
@@ -69,6 +69,8 @@ class ApplicationLayoutTest < ActionDispatch::IntegrationTest
     within('.navbar-fixed-top') do
       page.find("#arv-help").click
       within('.dropdown-menu') do
+        assert_selector 'a', text:'Getting Started ...'
+        assert_selector 'a', text:'Public Pipelines and Datasets'
         assert page.has_link?('Tutorials and User guide'), 'No link - Tutorials and User guide'
         assert page.has_link?('API Reference'), 'No link - API Reference'
         assert page.has_link?('SDK Reference'), 'No link - SDK Reference'
@@ -139,4 +141,24 @@ class ApplicationLayoutTest < ActionDispatch::IntegrationTest
       verify_system_menu user
     end
   end
+
+  test "test getting started help menu item" do
+    visit page_with_token('active')
+    within '.navbar-fixed-top' do
+      find('.help-menu > a').click
+      find('.help-menu .dropdown-menu a', text: 'Getting Started ...').click
+    end
+
+    within '.modal-content' do
+      assert_text 'Getting Started'
+      assert_selector 'button:not([disabled])', text: 'Next'
+      assert_no_selector 'button:not([disabled])', text: 'Prev'
+      click_button 'Next'
+      assert_selector 'button:not([disabled])', text: 'Prev'  # Prev button is now enabled
+      click_button 'Prev'
+      assert_no_selector 'button:not([disabled])', text: 'Prev'  # Prev button is again disabled
+      first('button', text: 'x').click
+    end
+    assert_text 'Active pipelines' # seeing dashboard now
+  end
 end

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list