Improve feature flag off test-case

parent 2d3183ef
...@@ -97,7 +97,7 @@ RSpec.describe 'User sees Security Configuration table', :js do ...@@ -97,7 +97,7 @@ RSpec.describe 'User sees Security Configuration table', :js do
stub_feature_flags(configure_iac_scanning_via_mr: false) stub_feature_flags(configure_iac_scanning_via_mr: false)
end end
it 'shows DAST is enabled' do it 'shows DAST card at the second position and no IaC Scanning card' do
visit(project_security_configuration_path(project)) visit(project_security_configuration_path(project))
within '[data-testid="security-testing-card"]:nth-of-type(2)' do within '[data-testid="security-testing-card"]:nth-of-type(2)' do
...@@ -105,6 +105,8 @@ RSpec.describe 'User sees Security Configuration table', :js do ...@@ -105,6 +105,8 @@ RSpec.describe 'User sees Security Configuration table', :js do
expect(page).to have_text('Enabled') expect(page).to have_text('Enabled')
expect(page).to have_link('Configure DAST') expect(page).to have_link('Configure DAST')
end end
expect(page).not_to have_text('Infrastructure as Code (IaC) Scanning')
end end
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