Skip to content

Commit

Permalink
Version 5.0.8
Browse files Browse the repository at this point in the history
  • Loading branch information
maxrossello committed Mar 9, 2024
1 parent 4b411d9 commit df35bd5
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 2 deletions.
7 changes: 6 additions & 1 deletion test/application_system_test_case.rb
Expand Up @@ -74,7 +74,12 @@ class ApplicationSystemTestCase < ActionDispatch::SystemTestCase
# using default browser locale which depend on system locale for "real" browsers drivers
def log_user(login, password)
visit '/my/page'
loop until page.evaluate_script('jQuery.active').zero? # redmine_testsuites
# redmine_testsuites start
if current_path != '/login'
reset_session!
visit '/my/page'
end
# redmine_testsuites end
assert_equal '/login', current_path
within('#login-form form') do
fill_in 'username', :with => login
Expand Down
2 changes: 2 additions & 0 deletions test/system/inline_autocomplete_test.rb
Expand Up @@ -59,6 +59,7 @@ def test_inline_autocomplete_for_issues_with_double_hash_keep_syntax
assert page.has_text? 'Bug #11: Closed issue on a closed version'
assert page.has_text? 'Bug #8: Closed issue'

loop until page.evaluate_script('jQuery.active').zero? # redmine_testsuites
first('li').click
end

Expand Down Expand Up @@ -165,6 +166,7 @@ def test_inline_autocompletion_of_wiki_page_links
end

fill_in 'Description', :with => '[[page'
loop until page.evaluate_script('jQuery.active').zero? # redmine_testsuites
within('.tribute-container') do
assert page.has_text? 'Page_with_sections'
assert page.has_text? 'Another_page'
Expand Down
1 change: 0 additions & 1 deletion test/system/issues_test.rb
Expand Up @@ -443,7 +443,6 @@ def test_bulk_edit

page.find('#issue_status_id').select('Assigned')
assert_no_difference 'Issue.count' do
#submit_buttons[0].click redmine_testsuites
click_button('commit')
# wait for ajax response
assert page.has_css?('#flash_notice')
Expand Down
1 change: 1 addition & 0 deletions test/system/timelog_test.rb
Expand Up @@ -67,6 +67,7 @@ def test_bulk_edit_with_failure
page.first(:button, 'Submit').click

assert page.has_css?('#errorExplanation')
fill_in 'Hours', :with => '' # redmine_testsuites
fill_in 'Hours', :with => '7'
page.first(:button, 'Submit').click

Expand Down

0 comments on commit df35bd5

Please sign in to comment.