diff options
author | Shinya Maeda <gitlab.shinyamaeda@gmail.com> | 2017-04-07 18:29:17 +0900 |
---|---|---|
committer | Kamil Trzcinski <ayufan@ayufan.eu> | 2017-04-07 16:17:28 +0200 |
commit | ea8574fd3777ecf8eabf9483b14ee530337faf28 (patch) | |
tree | fd5930d9f99930baa000bd1e7f2b9893ad2a7c3d /spec/features/triggers_spec.rb | |
parent | 76c0364ca52ce0b777f2ddb277fe666d95392256 (diff) | |
download | gitlab-ce-ea8574fd3777ecf8eabf9483b14ee530337faf28.tar.gz |
Add specs in triggers_spec.rb (Halfway)
Diffstat (limited to 'spec/features/triggers_spec.rb')
-rw-r--r-- | spec/features/triggers_spec.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/features/triggers_spec.rb b/spec/features/triggers_spec.rb index c1ae6db00c6..d317bb7bec7 100644 --- a/spec/features/triggers_spec.rb +++ b/spec/features/triggers_spec.rb @@ -125,6 +125,14 @@ feature 'Triggers', feature: true, js: true do describe 'show triggers workflow' do scenario 'contains trigger description placeholder' do expect(page.find('#trigger_description')['placeholder']).to eq 'Trigger description' + expect(page.find('#trigger_trigger_schedule_attributes_cron')['placeholder']).to eq '0 1 * * *' + expect(page.find('#trigger_trigger_schedule_attributes_cron_timezone')['placeholder']).to eq 'UTC' + expect(page.find('#trigger_ref')['placeholder']).to eq 'master' + end + + scenario 'show checkbox for registration of scheduled trigger and checked off defaultly' do + expect(page.find('#trigger_trigger_schedule_attributes__destroy')['type']).to eq 'checkbox' + expect(page.find('#trigger_trigger_schedule_attributes__destroy')['value']).to eq '0' end scenario 'show "legacy" badge for legacy trigger' do |