From 76e781c446cde482d6a49758766ed950864fbc3c Mon Sep 17 00:00:00 2001 From: Yang Jiao Date: Thu, 24 Mar 2022 06:28:57 +0000 Subject: [PATCH] Update webhook testcase xpath from disable to deactivate Synchronous modification due to UI changes Signed-off-by: Yang Jiao --- tests/resources/Harbor-Pages/Project-Webhooks.robot | 10 +++++----- tests/robot-cases/Group1-Nightly/Common.robot | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/resources/Harbor-Pages/Project-Webhooks.robot b/tests/resources/Harbor-Pages/Project-Webhooks.robot index c226e25b0..1eb017c31 100644 --- a/tests/resources/Harbor-Pages/Project-Webhooks.robot +++ b/tests/resources/Harbor-Pages/Project-Webhooks.robot @@ -35,23 +35,23 @@ Update A Webhook Retry Double Keywords When Error Retry Element Click ${edit_webhooks_save_button_xpath} Retry Wait Until Page Not Contains Element ${edit_webhooks_save_button_xpath} Retry Wait Until Page Contains ${new_webhook_name} -Enable/Disable State of Same Webhook +Enable/Deactivate State of Same Webhook [Arguments] ${webhook_name} Retry Element Click xpath=//clr-dg-row[contains(.,'${webhook_name}')]//div[contains(@class,'clr-checkbox-wrapper')]//label[contains(@class,'clr-control-label')] Retry Element Click ${action_webhook_xpath} Retry Element Click ${action_webhook_disable_or_enable_button} Retry Wait Until Page Contains Element ${dialog_disable_id_xpath} Retry Element Click ${dialog_disable_id_xpath} - # contain disabled webhook - Retry Wait Until Page Contains Element xpath=//clr-dg-row[contains(.,'${webhook_name}')]//span[contains(.,'Disabled')] + # contain deactivated webhook + Retry Wait Until Page Contains Element xpath=//clr-dg-row[contains(.,'${webhook_name}')]//span[contains(.,'Deactivated')] Retry Element Click xpath=//clr-dg-row[contains(.,'${webhook_name}')]//div[contains(@class,'clr-checkbox-wrapper')]//label[contains(@class,'clr-control-label')] Retry Element Click ${action_webhook_xpath} Retry Element Click ${action_webhook_disable_or_enable_button} Retry Wait Until Page Contains Element ${dialog_enable_id_xpath} Retry Element Click ${dialog_enable_id_xpath} - # not contain disabled webhook - Retry Wait Until Page Not Contains Element xpath=//clr-dg-row[contains(.,'${webhook_name}')]//span[contains(.,'Disabled')] + # not contain deactivated webhook + Retry Wait Until Page Not Contains Element xpath=//clr-dg-row[contains(.,'${webhook_name}')]//span[contains(.,'Deactivated')] Delete A Webhook [Arguments] ${webhook_name} diff --git a/tests/robot-cases/Group1-Nightly/Common.robot b/tests/robot-cases/Group1-Nightly/Common.robot index a809cf6e9..0122d2d6d 100644 --- a/tests/robot-cases/Group1-Nightly/Common.robot +++ b/tests/robot-cases/Group1-Nightly/Common.robot @@ -627,7 +627,7 @@ Test Case - Webhook CRUD Create A New Webhook webhook${d} https://test.com Create A New Webhook webhook2${d} https://test2.com Update A Webhook webhook${d} newWebhook${d} https://new-test.com - Enable/Disable State of Same Webhook newWebhook${d} + Enable/Deactivate State of Same Webhook newWebhook${d} Delete A Webhook newWebhook${d} Close Browser