Project

General

Profile

Defect #36360 ยป 36360.patch

Yuichi HARADA, 2021-12-27 06:42

View differences:

test/system/issues_test.rb
225 225
    log_user('jsmith', 'jsmith')
226 226
    visit "/issues/#{issue.id}"
227 227
    page.first(:link, 'Edit').click
228
    assert page.has_select?("issue_status_id", {:selected => "New"})
228
    assert page.has_select?("issue_status_id", selected: "New")
229 229
    page.find("#issue_status_id").select("Closed")
230 230
    assert_no_difference 'Issue.count' do
231 231
      page.first(:button, 'Submit').click
......
398 398

  
399 399
    page.find('#issue_project_id').select('OnlineStore')
400 400
    # wait for ajax response
401
    assert page.has_select?('issue_project_id', {:selected => 'OnlineStore'})
401
    assert page.has_select?('issue_project_id', selected: 'OnlineStore')
402 402

  
403 403
    submit_buttons = page.all('input[type=submit]')
404 404
    assert_equal 2, submit_buttons.size
......
462 462

  
463 463
    page.find('#issue_project_id').select('OnlineStore')
464 464
    # wait for ajax response
465
    assert page.has_select?('issue_project_id', {:selected => 'OnlineStore'})
465
    assert page.has_select?('issue_project_id', selected: 'OnlineStore')
466 466

  
467 467
    submit_buttons = page.all('input[type=submit]')
468 468
    assert_equal 2, submit_buttons.size
    (1-1/1)