diff options
Diffstat (limited to 'spec/features/projects/services/user_activates_mattermost_slash_command_spec.rb')
-rw-r--r-- | spec/features/projects/services/user_activates_mattermost_slash_command_spec.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/spec/features/projects/services/user_activates_mattermost_slash_command_spec.rb b/spec/features/projects/services/user_activates_mattermost_slash_command_spec.rb index 6ddffb710a8..32519b14d4e 100644 --- a/spec/features/projects/services/user_activates_mattermost_slash_command_spec.rb +++ b/spec/features/projects/services/user_activates_mattermost_slash_command_spec.rb @@ -28,21 +28,21 @@ RSpec.describe 'Set up Mattermost slash commands', :js do token = ('a'..'z').to_a.join fill_in 'service_token', with: token - click_active_toggle - click_on 'Save changes' + click_active_checkbox + click_save_integration expect(current_path).to eq(edit_project_service_path(project, :mattermost_slash_commands)) - expect(page).to have_content('Mattermost slash commands settings saved, but not activated.') + expect(page).to have_content('Mattermost slash commands settings saved, but not active.') end it 'redirects to the integrations page after activating' do token = ('a'..'z').to_a.join fill_in 'service_token', with: token - click_on 'Save changes' + click_save_integration expect(current_path).to eq(edit_project_service_path(project, :mattermost_slash_commands)) - expect(page).to have_content('Mattermost slash commands activated.') + expect(page).to have_content('Mattermost slash commands settings saved and active.') end it 'shows the add to mattermost button' do |