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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
3712f642
Commit
3712f642
authored
May 02, 2017
by
Alfredo Sumaran
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'fix-time-tracking-tests' into 'multiple_assignees_review'
Fix time tracking tests See merge request !1775
parents
f2f7ef9d
35326d62
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
spec/support/time_tracking_shared_examples.rb
spec/support/time_tracking_shared_examples.rb
+5
-5
No files found.
spec/support/time_tracking_shared_examples.rb
View file @
3712f642
...
...
@@ -34,7 +34,7 @@ shared_examples 'issuable time tracker' do
submit_time
(
'/estimate 3w 1d 1h'
)
submit_time
(
'/remove_estimate'
)
page
.
within
'
#issuable-time-tracker
'
do
page
.
within
'
.time-tracking-component-wrap
'
do
expect
(
page
).
to
have_content
'No estimate or time spent'
end
end
...
...
@@ -43,13 +43,13 @@ shared_examples 'issuable time tracker' do
submit_time
(
'/spend 3w 1d 1h'
)
submit_time
(
'/remove_time_spent'
)
page
.
within
'
#issuable-time-tracker
'
do
page
.
within
'
.time-tracking-component-wrap
'
do
expect
(
page
).
to
have_content
'No estimate or time spent'
end
end
it
'shows the help state when icon is clicked'
do
page
.
within
'
#issuable-time-tracker
'
do
page
.
within
'
.time-tracking-component-wrap
'
do
find
(
'.help-button'
).
click
expect
(
page
).
to
have_content
'Track time with slash commands'
expect
(
page
).
to
have_content
'Learn more'
...
...
@@ -57,7 +57,7 @@ shared_examples 'issuable time tracker' do
end
it
'hides the help state when close icon is clicked'
do
page
.
within
'
#issuable-time-tracker
'
do
page
.
within
'
.time-tracking-component-wrap
'
do
find
(
'.help-button'
).
click
find
(
'.close-help-button'
).
click
...
...
@@ -67,7 +67,7 @@ shared_examples 'issuable time tracker' do
end
it
'displays the correct help url'
do
page
.
within
'
#issuable-time-tracker
'
do
page
.
within
'
.time-tracking-component-wrap
'
do
find
(
'.help-button'
).
click
expect
(
find_link
(
'Learn more'
)[
:href
]).
to
have_content
(
'/help/workflow/time_tracking.md'
)
...
...
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