Fix random failures in IssuesTest#test_bulk_copy due to StaleElementReferenceError (#42244).

Patch by Katsuya HIDAKA (user:hidakatsuya).


git-svn-id: https://svn.redmine.org/redmine/trunk@23503 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Go MAEDA
2025-02-11 02:58:22 +00:00
parent 584e0e489b
commit 9aa00d6f16

View File

@@ -497,8 +497,9 @@ class IssuesSystemTest < ApplicationSystemTestCase
assert_equal 'Copy', submit_buttons[0].value
page.find('#issue_project_id').select('OnlineStore')
# wait for ajax response
assert page.has_select?('issue_project_id', selected: 'OnlineStore')
# Verify that the target version field has been rewritten by the OnlineStore project settings
# and wait for the project change to complete.
assert_select 'issue_fixed_version_id', options: ['(No change)', 'none', 'Alpha', 'Systemwide visible version']
assert_selector 'input[type=submit]', count: 2
submit_buttons = page.all('input[type=submit]')