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
b6527e94
Commit
b6527e94
authored
Mar 03, 2021
by
can eldem
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix view test
parent
f2bc8d5d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
ee/spec/views/projects/security/policies/show.html.haml_spec.rb
...c/views/projects/security/policies/show.html.haml_spec.rb
+4
-3
No files found.
ee/spec/views/projects/security/policies/show.html.haml_spec.rb
View file @
b6527e94
...
@@ -7,7 +7,9 @@ RSpec.describe "projects/security/policies/show", type: :view do
...
@@ -7,7 +7,9 @@ RSpec.describe "projects/security/policies/show", type: :view do
let
(
:project
)
{
create
(
:project
)
}
let
(
:project
)
{
create
(
:project
)
}
before
do
before
do
assign
(
:project
,
project
)
stub_feature_flags
(
security_orchestration_policies_configuration:
true
)
stub_feature_flags
(
security_orchestration_policies_configuration:
true
)
stub_licensed_features
(
security_orchestration_policies:
true
)
sign_in
(
user
)
sign_in
(
user
)
render
render
end
end
...
@@ -15,8 +17,7 @@ RSpec.describe "projects/security/policies/show", type: :view do
...
@@ -15,8 +17,7 @@ RSpec.describe "projects/security/policies/show", type: :view do
it
'renders the default state'
do
it
'renders the default state'
do
expect
(
rendered
).
to
have_selector
(
'h2'
)
expect
(
rendered
).
to
have_selector
(
'h2'
)
expect
(
rendered
).
to
have_selector
(
'h4'
)
expect
(
rendered
).
to
have_selector
(
'h4'
)
expect
(
rendered
).
to
have_selector
(
'.js-project-search'
)
expect
(
response
).
to
have_css
(
'input[id=orchestration_management_project_id]'
,
visible:
false
)
expect
(
rendered
).
to
have_selector
(
'.text-muted'
)
expect
(
rendered
).
to
have_button
(
'Save changes'
)
expect
(
rendered
).
to
have_selector
(
'.gl-button'
)
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