mirror of
https://github.com/goharbor/harbor.git
synced 2024-12-23 17:17:46 +01:00
Merge pull request #16579 from YangJiao0817/fix-webhook-case
Update webhook testcase xpath from disable to deactivate
This commit is contained in:
commit
382e77bc97
@ -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}
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user