mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-25 11:46:43 +01:00
Update webhook testcase xpath from disable to deactivate
Synchronous modification due to UI changes Signed-off-by: Yang Jiao <jiaoya@vmware.com>
This commit is contained in:
parent
fbef3336ab
commit
76e781c446
@ -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 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}
|
Retry Wait Until Page Contains ${new_webhook_name}
|
||||||
|
|
||||||
Enable/Disable State of Same Webhook
|
Enable/Deactivate State of Same Webhook
|
||||||
[Arguments] ${webhook_name}
|
[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 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_xpath}
|
||||||
Retry Element Click ${action_webhook_disable_or_enable_button}
|
Retry Element Click ${action_webhook_disable_or_enable_button}
|
||||||
Retry Wait Until Page Contains Element ${dialog_disable_id_xpath}
|
Retry Wait Until Page Contains Element ${dialog_disable_id_xpath}
|
||||||
Retry Element Click ${dialog_disable_id_xpath}
|
Retry Element Click ${dialog_disable_id_xpath}
|
||||||
# contain disabled webhook
|
# contain deactivated webhook
|
||||||
Retry Wait Until Page Contains Element xpath=//clr-dg-row[contains(.,'${webhook_name}')]//span[contains(.,'Disabled')]
|
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 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_xpath}
|
||||||
Retry Element Click ${action_webhook_disable_or_enable_button}
|
Retry Element Click ${action_webhook_disable_or_enable_button}
|
||||||
Retry Wait Until Page Contains Element ${dialog_enable_id_xpath}
|
Retry Wait Until Page Contains Element ${dialog_enable_id_xpath}
|
||||||
Retry Element Click ${dialog_enable_id_xpath}
|
Retry Element Click ${dialog_enable_id_xpath}
|
||||||
# not contain disabled webhook
|
# not contain deactivated webhook
|
||||||
Retry Wait Until Page Not Contains Element xpath=//clr-dg-row[contains(.,'${webhook_name}')]//span[contains(.,'Disabled')]
|
Retry Wait Until Page Not Contains Element xpath=//clr-dg-row[contains(.,'${webhook_name}')]//span[contains(.,'Deactivated')]
|
||||||
|
|
||||||
Delete A Webhook
|
Delete A Webhook
|
||||||
[Arguments] ${webhook_name}
|
[Arguments] ${webhook_name}
|
||||||
|
@ -627,7 +627,7 @@ Test Case - Webhook CRUD
|
|||||||
Create A New Webhook webhook${d} https://test.com
|
Create A New Webhook webhook${d} https://test.com
|
||||||
Create A New Webhook webhook2${d} https://test2.com
|
Create A New Webhook webhook2${d} https://test2.com
|
||||||
Update A Webhook webhook${d} newWebhook${d} https://new-test.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}
|
Delete A Webhook newWebhook${d}
|
||||||
Close Browser
|
Close Browser
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user