Skip to content

Commit

Permalink
Fixed system tests
Browse files Browse the repository at this point in the history
  • Loading branch information
maxrossello committed Sep 1, 2022
1 parent dd369a6 commit ae9cb67
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 2 additions & 0 deletions test/system/issues_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -466,6 +466,7 @@ def test_bulk_edit

page.find('#issue_project_id').select('OnlineStore')
# wait for ajax response
loop until page.evaluate_script('jQuery.active').zero? #redmine_testsuites
assert page.has_select?('issue_project_id', selected: 'OnlineStore')

submit_buttons = page.all('input[type=submit]')
Expand Down Expand Up @@ -530,6 +531,7 @@ def test_bulk_copy

page.find('#issue_project_id').select('OnlineStore')
# wait for ajax response
loop until page.evaluate_script('jQuery.active').zero? #redmine_testsuites
assert page.has_select?('issue_project_id', selected: 'OnlineStore')

submit_buttons = page.all('input[type=submit]')
Expand Down
6 changes: 4 additions & 2 deletions test/system/quick_jump_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ def test_project_quick_jump
visit '/'

within '#header' do
page.first('span', :text => 'Jump to a project...').click
#page.first('span', :text => 'Jump to a project...').click
page.first('span', :text => I18n.t(:label_jump_to_a_project)).click
click_link('eCookbook', match: :first)
end
assert_current_path '/projects/ecookbook?jump=welcome'
Expand All @@ -41,7 +42,8 @@ def test_project_quick_jump_should_jump_to_the_same_tab
visit '/issues'

within '#header' do
page.first('span', :text => 'Jump to a project...').click
#page.first('span', :text => 'Jump to a project...').click
page.first('span', :text => I18n.t(:label_jump_to_a_project)).click
click_link('eCookbook', match: :first)
assert_current_path '/projects/ecookbook/issues'

Expand Down

0 comments on commit ae9cb67

Please sign in to comment.