From ea8574fd3777ecf8eabf9483b14ee530337faf28 Mon Sep 17 00:00:00 2001 From: Shinya Maeda Date: Fri, 7 Apr 2017 18:29:17 +0900 Subject: Add specs in triggers_spec.rb (Halfway) --- spec/features/triggers_spec.rb | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'spec') 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 -- cgit v1.2.1