Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
heptapod
heptapod
Commits
00c7132fe12b
Commit
efc679e4
authored
Dec 30, 2015
by
Robert Speicher
Browse files
Fix "I see current user as the first user" step
Why did this break? `¯\_(ツ)_/¯`
parent
f9bccda54eb4
Changes
1
Hide whitespace changes
Inline
Side-by-side
features/steps/project/issues/issues.rb
View file @
00c7132f
...
...
@@ -59,15 +59,14 @@ class Spinach::Features::ProjectIssues < Spinach::FeatureSteps
end
step
'I click "author" dropdown'
do
first
(
'
.ajax-users-select
'
).
click
first
(
'
#s2id_author_id
'
).
click
end
step
'I see current user as the first user'
do
expect
(
page
).
to
have_selector
(
'.user-result'
,
visible:
true
,
count:
4
)
expect
(
page
).
to
have_selector
(
'.user-result'
,
visible:
true
,
count:
3
)
users
=
page
.
all
(
'.user-name'
)
expect
(
users
[
0
].
text
).
to
eq
'Any Assignee'
expect
(
users
[
1
].
text
).
to
eq
'Unassigned'
expect
(
users
[
2
].
text
).
to
eq
current_user
.
name
expect
(
users
[
0
].
text
).
to
eq
'Any Author'
expect
(
users
[
1
].
text
).
to
eq
current_user
.
name
end
step
'I submit new issue "500 error on profile"'
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