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
fe981ffa
Commit
fe981ffa
authored
Sep 24, 2019
by
Sanad Liaquat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix create_merge_request_with_secure_spec
parent
5106d5af
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
qa/qa/ee/page/merge_request/show.rb
qa/qa/ee/page/merge_request/show.rb
+5
-5
No files found.
qa/qa/ee/page/merge_request/show.rb
View file @
fe981ffa
...
...
@@ -138,23 +138,23 @@ module QA
def
has_total_vulnerability_count_of?
(
expected
)
# Match text cut off in order to find both "1 vulnerability" and "X vulnerabilities"
find_element
(
:vulnerability_report_grouped
).
has_content?
(
"Security scanning detected
#{
expected
}
vulnerabilit"
)
find_element
(
:vulnerability_report_grouped
).
has_content?
(
/Security scanning detected
#{
expected
}
( new)? vulnerabilit/
)
end
def
has_sast_vulnerability_count_of?
(
expected
)
find_element
(
:sast_scan_report
).
has_content?
(
"SAST detected
#{
expected
}
vulnerabilit"
)
find_element
(
:sast_scan_report
).
has_content?
(
/SAST detected
#{
expected
}
( new)? vulnerabilit/
)
end
def
has_dependency_vulnerability_count_of?
(
expected
)
find_element
(
:dependency_scan_report
).
has_content?
(
"Dependency scanning detected
#{
expected
}
vulnerabilit"
)
find_element
(
:dependency_scan_report
).
has_content?
(
/Dependency scanning detected
#{
expected
}
( new)? vulnerabilit/
)
end
def
has_container_vulnerability_count_of?
(
expected
)
find_element
(
:container_scan_report
).
has_content?
(
"Container scanning detected
#{
expected
}
vulnerabilit"
)
find_element
(
:container_scan_report
).
has_content?
(
/Container scanning detected
#{
expected
}
( new)? vulnerabilit/
)
end
def
has_dast_vulnerability_count_of?
(
expected
)
find_element
(
:dast_scan_report
).
has_content?
(
"DAST detected
#{
expected
}
vulnerabilit"
)
find_element
(
:dast_scan_report
).
has_content?
(
/DAST detected
#{
expected
}
( new)? vulnerabilit/
)
end
def
num_approvals_required
...
...
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