From ae9cb676361b61831243611b691b0bb66af05098 Mon Sep 17 00:00:00 2001 From: Massimo Rossello Date: Thu, 1 Sep 2022 20:40:23 +0200 Subject: [PATCH] Fixed system tests --- test/system/issues_test.rb | 2 ++ test/system/quick_jump_test.rb | 6 ++++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/test/system/issues_test.rb b/test/system/issues_test.rb index 828481a11..c2d9f3c88 100644 --- a/test/system/issues_test.rb +++ b/test/system/issues_test.rb @@ -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]') @@ -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]') diff --git a/test/system/quick_jump_test.rb b/test/system/quick_jump_test.rb index 1ad18fbf4..90cfc537b 100644 --- a/test/system/quick_jump_test.rb +++ b/test/system/quick_jump_test.rb @@ -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' @@ -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'