Skip to content
代码片段 群组 项目
未验证 提交 74ec5d06 编辑于 作者: Harsha Muralidhar's avatar Harsha Muralidhar 提交者: GitLab
浏览文件

Fix explain this vulnerability spec

上级 4e32acea
未找到相关分支
未找到相关标签
无相关合并请求
...@@ -84,11 +84,12 @@ def training_link_present?(training_name:, url:) ...@@ -84,11 +84,12 @@ def training_link_present?(training_name:, url:)
end end
def has_explain_this_vulnerability? def has_explain_this_vulnerability?
has_element?('markdown') has_element?('chat-header') && has_element?('chat-history') &&
has_element?('chat-prompt-form')
end end
def explain_this_vulnerability_text def explain_this_vulnerability_text
find_element('markdown').text find_element('chat-history').text
end end
def has_vulnerability_description?(description:) def has_vulnerability_description?(description:)
......
...@@ -66,7 +66,7 @@ module QA ...@@ -66,7 +66,7 @@ module QA
explain_this_vulnerability(vuln_name) explain_this_vulnerability(vuln_name)
Support::Retrier.retry_on_exception(max_attempts: 4, sleep_interval: 1, Support::Retrier.retry_on_exception(max_attempts: 4, sleep_interval: 1,
message: "Retry failed AI did not return expected response") do message: "Retry failed AI did not return expected response") do
expect(page.has_content?('Response generated by AI')).to be true expect(page.has_content?('Responses generated by AI')).to be true
EE::Page::Project::Secure::VulnerabilityDetails.perform do |vulnerability_details| EE::Page::Project::Secure::VulnerabilityDetails.perform do |vulnerability_details|
aggregate_failures do aggregate_failures do
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
想要评论请 注册