Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Jérome Perrin
gitlab-ce
Commits
ea8574fd
Commit
ea8574fd
authored
Apr 07, 2017
by
Shinya Maeda
Committed by
Kamil Trzcinski
Apr 07, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add specs in triggers_spec.rb (Halfway)
parent
76c0364c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
spec/features/triggers_spec.rb
spec/features/triggers_spec.rb
+8
-0
No files found.
spec/features/triggers_spec.rb
View file @
ea8574fd
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment