Merge pull request #16664 from YangJiao0817/add-project-tab-routing-testcase

Add project tab routing test case
This commit is contained in:
Yang Jiao 2022-04-12 11:06:37 +08:00 committed by GitHub
commit f178e2520e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -41,6 +41,27 @@ Test Case - Main Menu Routing
... harbor/configs/auth=//config//config-auth//label[contains(.,'Auth Mode')]
... /harbor/configs/email=//config//config-email//label[contains(.,'Email Server Port')]
... harbor/configs/setting=//config//system-settings//label[contains(.,'Project Creation')]
FOR ${key} IN @{routing.keys()}
Retry Double Keywords When Error Go To ${HARBOR_URL}/${key} Retry Wait Element ${routing['${key}']}
END
Test Case - Project Tab Routing
[Tags] project_tab_routing
Init Chrome Driver
Sign In Harbor ${HARBOR_URL} ${HARBOR_ADMIN} ${HARBOR_PASSWORD}
&{routing}= Create Dictionary harbor/projects/1/summary=//project-detail//summary
... harbor/projects/1/repositories=//project-detail//hbr-repository-gridview
... harbor/projects/1/helm-charts=//project-detail//project-list-charts
... harbor/projects/1/members=//project-detail//ng-component//button//span[contains(.,'User')]
... harbor/projects/1/labels=//project-detail//app-project-config//hbr-label
... harbor/projects/1/scanner=//project-detail//scanner
... harbor/projects/1/p2p-provider/policies=//project-detail//ng-component//button//span[contains(.,'NEW POLICY')]
... harbor/projects/1/tag-strategy/tag-retention=//project-detail//app-tag-feature-integration//tag-retention
... harbor/projects/1/tag-strategy/immutable-tag=//project-detail//app-tag-feature-integration//app-immutable-tag
... harbor/projects/1/robot-account=//project-detail//app-robot-account
... harbor/projects/1/webhook=//project-detail//ng-component//button//span[contains(.,'New Webhook')]
... harbor/projects/1/logs=//project-detail//audit-log
... harbor/projects/1/configs=//project-detail//app-project-config//hbr-project-policy-config
FOR ${key} IN @{routing.keys()}
Retry Double Keywords When Error Go To ${HARBOR_URL}/${key} Retry Wait Element ${routing['${key}']}
END