Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'spec/features/triggers_spec.rb')
-rw-r--r--spec/features/triggers_spec.rb7
1 files changed, 5 insertions, 2 deletions
diff --git a/spec/features/triggers_spec.rb b/spec/features/triggers_spec.rb
index 903211ec250..52df4bfece2 100644
--- a/spec/features/triggers_spec.rb
+++ b/spec/features/triggers_spec.rb
@@ -26,16 +26,18 @@ RSpec.describe 'Triggers', :js, feature_category: :continuous_integration do
describe 'triggers page' do
describe 'create trigger workflow' do
it 'prevents adding new trigger with no description' do
+ click_button 'Add new token'
fill_in 'trigger_description', with: ''
- click_button 'Add trigger'
+ click_button 'Create pipeline trigger token'
# See if input has error due to empty value
expect(page.find('form.gl-show-field-errors .gl-field-error')).to be_visible
end
it 'adds new trigger with description' do
+ click_button 'Add new token'
fill_in 'trigger_description', with: 'trigger desc'
- click_button 'Add trigger'
+ click_button 'Create pipeline trigger token'
aggregate_failures 'display creation notice and trigger is created' do
expect(page.find('[data-testid="alert-info"]')).to have_content 'Trigger was created successfully.'
@@ -100,6 +102,7 @@ RSpec.describe 'Triggers', :js, feature_category: :continuous_integration do
describe 'show triggers workflow' do
it 'contains trigger description placeholder' do
+ click_button 'Add new token'
expect(page.find('#trigger_description')['placeholder']).to eq 'Trigger description'
end