]> source.dussan.org Git - redmine.git/commitdiff
Use click_button in test_bulk_edit
authorMarius Balteanu <marius.balteanu@zitec.com>
Mon, 2 May 2022 20:01:47 +0000 (20:01 +0000)
committerMarius Balteanu <marius.balteanu@zitec.com>
Mon, 2 May 2022 20:01:47 +0000 (20:01 +0000)
git-svn-id: https://svn.redmine.org/redmine/branches/5.0-stable@21552 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/system/issues_test.rb

index 2476dc43eb8483d5c2806e36d49bb93db466c0ba..46a77ae5189f00fc5ffbccfcbe81bcef149ce322 100644 (file)
@@ -397,7 +397,7 @@ class IssuesSystemTest < ApplicationSystemTestCase
 
     page.find('#issue_status_id').select('Assigned')
     assert_no_difference 'Issue.count' do
-      submit_buttons[0].click
+      click_button('commit')
       # wait for ajax response
       assert page.has_css?('#flash_notice')
       assert_current_path '/issues', :ignore_query => true
@@ -429,7 +429,7 @@ class IssuesSystemTest < ApplicationSystemTestCase
 
     page.find('#issue_status_id').select('Feedback')
     assert_no_difference 'Issue.count' do
-      submit_buttons[1].click
+      click_button('follow')
       # wait for ajax response
       assert page.has_css?('#flash_notice')
       assert_current_path '/projects/onlinestore/issues', :ignore_query => true