summaryrefslogtreecommitdiff
path: root/spec/features/projects/services/user_activates_slack_slash_command_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/features/projects/services/user_activates_slack_slash_command_spec.rb')
-rw-r--r--spec/features/projects/services/user_activates_slack_slash_command_spec.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/features/projects/services/user_activates_slack_slash_command_spec.rb b/spec/features/projects/services/user_activates_slack_slash_command_spec.rb
index afe6855d6ad..3994f55caee 100644
--- a/spec/features/projects/services/user_activates_slack_slash_command_spec.rb
+++ b/spec/features/projects/services/user_activates_slack_slash_command_spec.rb
@@ -21,11 +21,11 @@ RSpec.describe 'Slack slash commands', :js do
it 'redirects to the integrations page after saving but not activating' do
fill_in 'Token', with: 'token'
- click_active_toggle
+ click_active_checkbox
click_on 'Save'
expect(current_path).to eq(edit_project_service_path(project, :slack_slash_commands))
- expect(page).to have_content('Slack slash commands settings saved, but not activated.')
+ expect(page).to have_content('Slack slash commands settings saved, but not active.')
end
it 'redirects to the integrations page after activating' do
@@ -33,7 +33,7 @@ RSpec.describe 'Slack slash commands', :js do
click_on 'Save'
expect(current_path).to eq(edit_project_service_path(project, :slack_slash_commands))
- expect(page).to have_content('Slack slash commands activated.')
+ expect(page).to have_content('Slack slash commands settings saved and active.')
end
it 'shows the correct trigger url' do