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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
gitlab-ce
Commits
7c88141b
Commit
7c88141b
authored
Jun 06, 2016
by
Phil Hughes
Committed by
Jacob Schatz
Jun 09, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed tests
parent
be7b67d2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
spec/features/issues_spec.rb
spec/features/issues_spec.rb
+7
-5
No files found.
spec/features/issues_spec.rb
View file @
7c88141b
...
@@ -75,12 +75,13 @@ describe 'Issues', feature: true do
...
@@ -75,12 +75,13 @@ describe 'Issues', feature: true do
fill_in
'issue_title'
,
with:
'bug 345'
fill_in
'issue_title'
,
with:
'bug 345'
fill_in
'issue_description'
,
with:
'bug description'
fill_in
'issue_description'
,
with:
'bug description'
find
(
'#issuable-due-date'
).
click
page
.
within
'.datepicker'
do
page
.
within
'.
ui-
datepicker'
do
click_link
date
.
day
click_link
date
.
day
end
end
expect
(
find
(
'#issuable-due-date'
,
visible:
false
).
value
).
to
eq
date
.
to_s
expect
(
find
(
'#issuable-due-date'
).
value
).
to
eq
date
.
to_s
click_button
'Submit issue'
click_button
'Submit issue'
...
@@ -100,18 +101,19 @@ describe 'Issues', feature: true do
...
@@ -100,18 +101,19 @@ describe 'Issues', feature: true do
it
'should save with due date'
do
it
'should save with due date'
do
date
=
Date
.
today
.
at_beginning_of_month
date
=
Date
.
today
.
at_beginning_of_month
expect
(
find
(
'#issuable-due-date'
,
visible:
false
).
value
).
to
eq
date
.
to_s
expect
(
find
(
'#issuable-due-date'
).
value
).
to
eq
date
.
to_s
date
=
date
.
tomorrow
date
=
date
.
tomorrow
fill_in
'issue_title'
,
with:
'bug 345'
fill_in
'issue_title'
,
with:
'bug 345'
fill_in
'issue_description'
,
with:
'bug description'
fill_in
'issue_description'
,
with:
'bug description'
find
(
'#issuable-due-date'
).
click
page
.
within
'.datepicker'
do
page
.
within
'.
ui-
datepicker'
do
click_link
date
.
day
click_link
date
.
day
end
end
expect
(
find
(
'#issuable-due-date'
,
visible:
false
).
value
).
to
eq
date
.
to_s
expect
(
find
(
'#issuable-due-date'
).
value
).
to
eq
date
.
to_s
click_button
'Save changes'
click_button
'Save changes'
...
...
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