BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
bd595eb8
Unverified
Commit
bd595eb8
authored
Aug 28, 2016
by
Luke Bennett
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed select2 from todos feature spec
parent
922b38a0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
6 deletions
+17
-6
todos.rb
features/steps/dashboard/todos.rb
+17
-6
No files found.
features/steps/dashboard/todos.rb
View file @
bd595eb8
...
...
@@ -3,7 +3,6 @@ class Spinach::Features::DashboardTodos < Spinach::FeatureSteps
include
SharedPaths
include
SharedProject
include
SharedUser
include
Select2Helper
step
'"John Doe" is a developer of project "Shop"'
do
project
.
team
<<
[
john_doe
,
:developer
]
...
...
@@ -55,7 +54,7 @@ class Spinach::Features::DashboardTodos < Spinach::FeatureSteps
expect
(
page
).
to
have_content
'To do 0'
expect
(
page
).
to
have_content
'Done 4'
expect
(
page
).
to
have_content
"You're all done!"
expect
(
page
).
not_to
have_link
project
.
name_with_namespace
expect
(
'.prepend-top-default'
).
not_to
have_link
project
.
name_with_namespace
should_not_see_todo
"John Doe assigned you merge request
#{
merge_request
.
to_reference
}
"
should_not_see_todo
"John Doe mentioned you on issue
#{
issue
.
to_reference
}
"
should_not_see_todo
"John Doe assigned you issue
#{
issue
.
to_reference
}
"
...
...
@@ -80,19 +79,31 @@ class Spinach::Features::DashboardTodos < Spinach::FeatureSteps
end
step
'I filter by "Enterprise"'
do
select2
(
enterprise
.
id
,
from:
"#project_id"
)
click_button
'Project'
page
.
within
'.dropdown-menu-project'
do
click_link
enterprise
.
name_with_namespace
end
end
step
'I filter by "John Doe"'
do
select2
(
john_doe
.
id
,
from:
"#author_id"
)
click_button
'Author'
page
.
within
'.dropdown-menu-author'
do
click_link
john_doe
.
username
end
end
step
'I filter by "Issue"'
do
select2
(
'Issue'
,
from:
"#type"
)
click_button
'Type'
page
.
within
'.dropdown-menu-type'
do
click_link
'Issue'
end
end
step
'I filter by "Mentioned"'
do
select2
(
"
#{
Todo
::
MENTIONED
}
"
,
from:
'#action_id'
)
click_button
'Action'
page
.
within
'.dropdown-menu-action'
do
click_link
'Mentioned'
end
end
step
'I should not see todos'
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