Feature #36320 » 0004-Use-Selenium-WebDriver-Wait.patch
| test/system/issues_test.rb | ||
|---|---|---|
| 422 | 422 |
# wait for ajax response |
| 423 | 423 |
assert page.has_select?('issue_project_id', selected: 'OnlineStore')
|
| 424 | 424 | |
| 425 |
submit_buttons = page.all('input[type=submit]')
|
|
| 426 |
assert_equal 2, submit_buttons.size |
|
| 425 |
wait = Selenium::WebDriver::Wait.new() |
|
| 426 |
submit_buttons = [] |
|
| 427 |
wait.until do |
|
| 428 |
submit_buttons = page.all('input[type=submit]')
|
|
| 429 |
submit_buttons.size == 2 |
|
| 430 |
end |
|
| 427 | 431 |
assert_equal 'Move', submit_buttons[0].value |
| 428 | 432 |
assert_equal 'Move and follow', submit_buttons[1].value |
| 429 | 433 | |
| ... | ... | |
| 486 | 490 |
# wait for ajax response |
| 487 | 491 |
assert page.has_select?('issue_project_id', selected: 'OnlineStore')
|
| 488 | 492 | |
| 489 |
submit_buttons = page.all('input[type=submit]')
|
|
| 493 |
wait = Selenium::WebDriver::Wait.new() |
|
| 494 |
submit_buttons = [] |
|
| 495 |
wait.until do |
|
| 496 |
submit_buttons = page.all('input[type=submit]')
|
|
| 497 |
submit_buttons.size == 2 |
|
| 498 |
end |
|
| 490 | 499 |
assert_equal 2, submit_buttons.size |
| 491 | 500 |
assert_equal 'Copy', submit_buttons[0].value |
| 492 | 501 |
assert_equal 'Copy and follow', submit_buttons[1].value |