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
24e9239e
Commit
24e9239e
authored
May 08, 2017
by
Clement Ho
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix form spec
parent
254deeda
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
6 deletions
+5
-6
spec/features/issues/form_spec.rb
spec/features/issues/form_spec.rb
+5
-6
No files found.
spec/features/issues/form_spec.rb
View file @
24e9239e
...
@@ -166,9 +166,6 @@ describe 'New/edit issue', feature: true, js: true do
...
@@ -166,9 +166,6 @@ describe 'New/edit issue', feature: true, js: true do
end
end
expect
(
find
(
'input[name="issue[assignee_ids][]"]'
,
visible:
false
).
value
).
to
match
(
user
.
id
.
to_s
)
expect
(
find
(
'input[name="issue[assignee_ids][]"]'
,
visible:
false
).
value
).
to
match
(
user
.
id
.
to_s
)
click_button
user
.
name
expect
(
find
(
'.dropdown-menu-user a.is-active'
).
first
(
:xpath
,
'..'
)[
'data-user-id'
]).
to
eq
(
user
.
id
.
to_s
)
expect
(
find
(
'.dropdown-menu-user a.is-active'
).
first
(
:xpath
,
'..'
)[
'data-user-id'
]).
to
eq
(
user
.
id
.
to_s
)
# check the ::before pseudo element to ensure checkmark icon is present
# check the ::before pseudo element to ensure checkmark icon is present
...
@@ -179,11 +176,13 @@ describe 'New/edit issue', feature: true, js: true do
...
@@ -179,11 +176,13 @@ describe 'New/edit issue', feature: true, js: true do
click_link
user2
.
name
click_link
user2
.
name
end
end
expect
(
find
(
'input[name="issue[assignee_ids][]"]'
,
visible:
false
).
value
).
to
match
(
user2
.
id
.
to_s
)
expect
(
page
.
all
(
'input[name="issue[assignee_ids][]"]'
,
visible:
false
)[
0
].
value
).
to
match
(
user
.
id
.
to_s
)
expect
(
page
.
all
(
'input[name="issue[assignee_ids][]"]'
,
visible:
false
)[
1
].
value
).
to
match
(
user2
.
id
.
to_s
)
click_button
user2
.
name
expect
(
page
.
all
(
'.dropdown-menu-user a.is-active'
).
length
).
to
eq
(
2
)
expect
(
find
(
'.dropdown-menu-user a.is-active'
).
first
(
:xpath
,
'..'
)[
'data-user-id'
]).
to
eq
(
user2
.
id
.
to_s
)
expect
(
page
.
all
(
'.dropdown-menu-user a.is-active'
)[
0
].
first
(
:xpath
,
'..'
)[
'data-user-id'
]).
to
eq
(
user
.
id
.
to_s
)
expect
(
page
.
all
(
'.dropdown-menu-user a.is-active'
)[
1
].
first
(
:xpath
,
'..'
)[
'data-user-id'
]).
to
eq
(
user2
.
id
.
to_s
)
end
end
end
end
...
...
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