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
745db030
Commit
745db030
authored
Aug 03, 2017
by
Nick Thomas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Try to fix some EE protected branches specs
parent
1c93759b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
spec/support/shared_examples/features/protected_branches_access_control_ee.rb
...examples/features/protected_branches_access_control_ee.rb
+2
-1
No files found.
spec/support/shared_examples/features/protected_branches_access_control_ee.rb
View file @
745db030
...
...
@@ -98,6 +98,7 @@ shared_examples "protected branches > access control > EE" do
within
(
".protected-branches-list"
)
do
find
(
".js-allowed-to-
#{
git_operation
}
"
).
trigger
(
:click
)
find
(
".dropdown-input-field"
).
set
(
users
.
last
.
name
)
# Find a user that is not loaded
wait_for_requests
expect
(
page
).
to
have_selector
(
'.dropdown-header'
,
count:
3
)
...
...
@@ -105,7 +106,6 @@ shared_examples "protected branches > access control > EE" do
expect
(
all
(
'.dropdown-header'
)[
index
]).
to
have_content
(
header
)
end
wait_for_requests
click_on
users
.
last
.
name
find
(
".js-allowed-to-
#{
git_operation
}
"
).
trigger
(
:click
)
# close
end
...
...
@@ -113,6 +113,7 @@ shared_examples "protected branches > access control > EE" do
# Verify the user is appended in the dropdown
find
(
".protected-branches-list .js-allowed-to-
#{
git_operation
}
"
).
trigger
(
:click
)
wait_for_requests
expect
(
page
).
to
have_selector
'.dropdown-content .is-active'
,
text:
users
.
last
.
name
expect
(
ProtectedBranch
.
count
).
to
eq
(
1
)
...
...
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