Skip to content

Commit

Permalink
Fix the maintenance workflow specs
Browse files Browse the repository at this point in the history
  • Loading branch information
danidoni committed Mar 20, 2024
1 parent 5bec028 commit ca17536
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Expand Up @@ -25,4 +25,4 @@
= submit_tag('Decline request', name: 'declined', title: 'Decline the request, as the author of the request you can reopen it again.',
class: 'btn btn-danger me-2')
= submit_tag('Accept request', name: 'accepted', title: 'Accept the request, this will apply the changes on the target.',
class: 'btn btn-primary', data: confirmation)
class: 'btn btn-primary', data: confirmation, id: 'accept-request')
@@ -1,4 +1,5 @@
require 'browser_helper'
require 'spec_helper'

RSpec.describe 'MaintenanceWorkflow', :js, :vcr do
let(:admin_user) { create(:admin_user) }
Expand Down Expand Up @@ -53,7 +54,7 @@
visit request_show_path(bs_request)
fill_in('reason', with: 'really? ok')

click_button('Accept request')
page.execute_script "$('#accept-request').click()"
end

it 'succeeds' do
Expand Down

0 comments on commit ca17536

Please sign in to comment.