From 1948a3ef662b7478fc5d2382fd3ae763f7a17457 Mon Sep 17 00:00:00 2001 From: danfengliu Date: Fri, 12 Jun 2020 16:04:41 +0800 Subject: [PATCH] Fix nightly issue caused by GC and CVE UI changed Signed-off-by: danfengliu --- tests/resources/Harbor-Pages/Configuration_Elements.robot | 4 ++-- tests/resources/Harbor-Pages/Project-Config-Elements.robot | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/resources/Harbor-Pages/Configuration_Elements.robot b/tests/resources/Harbor-Pages/Configuration_Elements.robot index 7a0e67b3c..1a52e5757 100644 --- a/tests/resources/Harbor-Pages/Configuration_Elements.robot +++ b/tests/resources/Harbor-Pages/Configuration_Elements.robot @@ -35,6 +35,6 @@ ${configuration_project_quotas_tabsheet_id} //*[@id='config-quotas'] ${configuration_system_wl_add_btn} //*[@id='show-add-modal-button'] ${configuration_system_wl_textarea} //*[@id='whitelist-textarea'] ${configuration_system_wl_add_confirm_btn} //*[@id='add-to-system'] -${configuration_system_wl_delete_a_cve_id_icon} //system-settings/form/section//ul/li[1]/clr-icon +${configuration_system_wl_delete_a_cve_id_icon} //system-settings/form/section//ul/li[1]/a[2]/clr-icon ${configuration_sys_repo_readonly_chb_id} //*[@id='repo_read_only_lbl'] -${checkbox_delete_untagged_artifacts} //gc-config//clr-checkbox-wrapper//label[contains(@for,'delete_untagged')] \ No newline at end of file +${checkbox_delete_untagged_artifacts} //gc-config//clr-toggle-wrapper/label[contains(@for,'delete_untagged')] \ No newline at end of file diff --git a/tests/resources/Harbor-Pages/Project-Config-Elements.robot b/tests/resources/Harbor-Pages/Project-Config-Elements.robot index d67317b8f..12bb0e3bb 100644 --- a/tests/resources/Harbor-Pages/Project-Config-Elements.robot +++ b/tests/resources/Harbor-Pages/Project-Config-Elements.robot @@ -2,5 +2,5 @@ Documentation This resource provides any keywords related to the Harbor private registry appliance *** Variables *** -${project_configuration_wl_delete_a_cve_id_icon} //hbr-project-policy-config/form/section//ul/li[1]/clr-icon +${project_configuration_wl_delete_a_cve_id_icon} //hbr-project-policy-config/form/section//ul/li[1]/a[2]/clr-icon ${project_configuration_wl_project_add_system_btn} //button[@id='add-system'] \ No newline at end of file