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
4d7dedf7
Commit
4d7dedf7
authored
Mar 10, 2017
by
Rémy Coutable
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '28307-update-projects-edit-feature-spec' into 'master'
Update feature visibility spec for projects edit page See merge request !9787
parents
f9a8db5a
cd4073ca
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
19 deletions
+11
-19
edit_spec.rb
spec/features/projects/edit_spec.rb
+11
-19
No files found.
spec/features/projects/edit_spec.rb
View file @
4d7dedf7
...
...
@@ -21,36 +21,28 @@ feature 'Project edit', feature: true, js: true do
expect
(
page
).
to
have_selector
(
'.merge-requests-feature'
,
visible:
false
)
end
it
'hides merge requests section after save'
do
select
(
'Disabled'
,
from:
'project_project_feature_attributes_merge_requests_access_level'
)
expect
(
page
).
to
have_selector
(
'.merge-requests-feature'
,
visible:
false
)
click_button
'Save changes'
context
'given project with merge_requests_disabled access level'
do
let
(
:project
)
{
create
(
:project
,
:merge_requests_disabled
)
}
wait_for_ajax
e
xpect
(
page
).
to
have_selector
(
'.merge-requests-feature'
,
visible:
false
)
it
'hides merge requests section'
do
expect
(
page
).
to
have_selector
(
'.merge-requests-feature'
,
visible:
false
)
e
nd
end
end
context
'builds select'
do
it
'hides
merge requests
section'
do
it
'hides
builds select
section'
do
select
(
'Disabled'
,
from:
'project_project_feature_attributes_builds_access_level'
)
expect
(
page
).
to
have_selector
(
'.builds-feature'
,
visible:
false
)
end
it
'hides merge requests section after save'
do
select
(
'Disabled'
,
from:
'project_project_feature_attributes_builds_access_level'
)
expect
(
page
).
to
have_selector
(
'.builds-feature'
,
visible:
false
)
context
'given project with builds_disabled access level'
do
let
(
:project
)
{
create
(
:project
,
:builds_disabled
)
}
click_button
'Save changes'
wait_for_ajax
expect
(
page
).
to
have_selector
(
'.builds-feature'
,
visible:
false
)
it
'hides builds select section'
do
expect
(
page
).
to
have_selector
(
'.builds-feature'
,
visible:
false
)
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