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
26b66e58
Commit
26b66e58
authored
Oct 06, 2017
by
Jose Ivan Vargas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
backport protected_branches_spec improvements from EE
parent
3cbab382
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
9 deletions
+17
-9
spec/features/protected_branches_spec.rb
spec/features/protected_branches_spec.rb
+17
-9
No files found.
spec/features/protected_branches_spec.rb
View file @
26b66e58
...
@@ -64,16 +64,24 @@ feature 'Protected Branches', :js do
...
@@ -64,16 +64,24 @@ feature 'Protected Branches', :js do
describe
"Saved defaults"
do
describe
"Saved defaults"
do
it
"keeps the allowed to merge and push dropdowns defaults based on the previous selection"
do
it
"keeps the allowed to merge and push dropdowns defaults based on the previous selection"
do
visit
project_protected_branches_path
(
project
)
visit
project_protected_branches_path
(
project
)
f
ind
(
".js-allowed-to-merge"
).
trigger
(
'click'
)
f
orm
=
'.js-new-protected-branch'
click_link
'No one'
find
(
".js-allowed-to-push"
).
trigger
(
'click'
)
within
form
do
click_link
'Developers + Masters'
find
(
".js-allowed-to-merge"
).
trigger
(
'click'
)
visit
project_protected_branches_path
(
project
)
click_link
'No one'
page
.
within
(
".js-allowed-to-merge"
)
do
find
(
".js-allowed-to-push"
).
trigger
(
'click'
)
expect
(
page
.
find
(
".dropdown-toggle-text"
)).
to
have_content
(
"No one"
)
click_link
'Developers + Masters'
end
end
page
.
within
(
".js-allowed-to-push"
)
do
expect
(
page
.
find
(
".dropdown-toggle-text"
)).
to
have_content
(
"Developers + Masters"
)
visit
project_protected_branches_path
(
project
)
within
form
do
page
.
within
(
".js-allowed-to-merge"
)
do
expect
(
page
.
find
(
".dropdown-toggle-text"
)).
to
have_content
(
"No one"
)
end
page
.
within
(
".js-allowed-to-push"
)
do
expect
(
page
.
find
(
".dropdown-toggle-text"
)).
to
have_content
(
"Developers + Masters"
)
end
end
end
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