Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: cve export label filter xpath #19931

Merged
merged 1 commit into from
Feb 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tests/resources/Harbor-Pages/Project.robot
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@ Export CVEs
Retry Button Click ${export_cve_btn}
Retry Text Input ${export_cve_filter_repo_input} ${repositories}
Retry Text Input ${export_cve_filter_tag_input} ${tags}
Select Filter Label @{labels}
Select Filter Label For CVE Export @{labels}
Retry Text Input ${export_cve_filter_cveid_input} ${cve_ids}
Retry Double Keywords When Error Retry Button Click ${export_btn} Retry Wait Until Page Contains Trigger exporting CVEs successfully!

Expand Down
9 changes: 9 additions & 0 deletions tests/resources/Harbor-Pages/SecurityHub.robot
Original file line number Diff line number Diff line change
Expand Up @@ -273,3 +273,12 @@ Check The Quick Search
Should Be Equal As Strings ${cve_input_value} ${cve}
${row_count}= Get Element Count ${vulnerabilities_datagrid_row}
Retry Wait Element Count //div[@class='datagrid']//clr-dg-cell[1]//a[text()='${cve}'] ${row_count}

Select Filter Label For CVE Export
[Arguments] @{labels}
Retry Element Click ${vulnerabilities_filter_label_xpath}
FOR ${label} IN @{labels}
Log ${label}
Retry Element Click //hbr-label-piece//span[contains(text(), '${label}')]
END
Retry Element Click ${vulnerabilities_filter_label_xpath}
1 change: 1 addition & 0 deletions tests/resources/Harbor-Pages/SecurityHub_Elements.robot
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,4 @@ ${vulnerabilities_count_xpath} //clr-dg-footer//div[contains(@class,'datagrid-f
${vulnerabilities_filter_select} (//form//div[@class='clr-select-wrapper']//select)
${vulnerabilities_filter_input} (//form[contains(@class,'clr-form')]//input)
${vulnerabilities_datagrid_row} //clr-datagrid//clr-dg-row
${vulnerabilities_filter_label_xpath} //form//clr-dropdown[contains(@class,'dropdown')]
Loading