Commit b6527e94 authored by can eldem's avatar can eldem

Fix view test

parent f2bc8d5d
...@@ -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
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment