Skip to content

Commit

Permalink
[ci] Adapt test
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidKang committed Apr 19, 2017
1 parent f4c9e82 commit 681c7a3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/api/test/functional/webui/group_controller_test.rb
Expand Up @@ -8,13 +8,13 @@ def test_list_all_groups # spec/features/webui/groups_spec.rb

login_king to: groups_path

find(:id, 'group_table_wrapper').must_have_text 'Showing 1 to 5 of 5 entries'
find(:id, 'group-table_wrapper').must_have_text 'Showing 1 to 5 of 5 entries'
find(:id, 'test_group_empty').click
find(:id, 'content').must_have_text 'This group does not contain users'

visit groups_path
find(:id, 'test_group').click
find(:id, 'group_members_table_wrapper').must_have_text 'Showing 1 to 2 of 2 entries'
find(:id, 'group-members-table_wrapper').must_have_text 'Showing 1 to 2 of 2 entries'
find(:link, 'adrian').click
assert page.current_url.end_with? user_show_path(user: 'adrian')
end
Expand Down
2 changes: 1 addition & 1 deletion src/api/test/functional/webui/patchinfo_controller_test.rb
Expand Up @@ -180,7 +180,7 @@ def test_create_patchinfo_with_issues
find(:css, "img[alt=\"Add Bug\"]").click
page.evaluate_script('window.confirm = function() { return true; }')
page.wont_have_content("121212")
find_link("bnc#700501")
find('a', text: "bnc#700501")
click_button("Save Patchinfo") # FIXME: This doesn't have any effect here
end

Expand Down
4 changes: 2 additions & 2 deletions src/api/test/functional/webui/user_controller_test.rb
Expand Up @@ -54,7 +54,7 @@ def test_show_user_tables # spec/models/users_spec.rb
use_js
visit user_show_path(user: 'fred')

within "table#ipackages-wrapper-table" do
within "table#ipackages-wrapper_table" do
assert_equal "TestPack", find(:xpath, './/tr[1]/td[1]').text
assert_equal "home:Iggy", find(:xpath, './/tr[1]/td[2]').text

Expand All @@ -80,7 +80,7 @@ def test_show_user_tables # spec/models/users_spec.rb

click_link("Owned Project/Packages")

within "table#iowned_wrapper_table" do
within "table#iowned-wrapper_table" do
assert_equal "Apache", find(:xpath, './/tr[1]/td[2]').text

assert_equal "apache2", find(:xpath, './/tr[2]/td[1]').text
Expand Down

0 comments on commit 681c7a3

Please sign in to comment.