Fix xpath in robot case

1. Fix xpath of Upload button
2. Fix xpath of status span

Signed-off-by: Qian Deng <dengq@vmware.com>
This commit is contained in:
Qian Deng 2018-09-10 17:12:52 +08:00
parent 62cdccc5dd
commit dfeb1924c6
3 changed files with 4 additions and 4 deletions

View File

@ -71,7 +71,7 @@ export class ListReplicationRuleComponent implements OnInit, OnChanges {
@Output() hideJobs = new EventEmitter<any>();
@Output() redirect = new EventEmitter<ReplicationRule>();
@Output() openNewRule = new EventEmitter<any>();
@Output() replicateManual = new EventEmitter<ReplicationRule[]>();
@Output() replicateManual = new EventEmitter<ReplicationRule>();
projectScope = false;
@ -148,7 +148,7 @@ export class ListReplicationRuleComponent implements OnInit, OnChanges {
}
replicateRule(rule: ReplicationRule): void {
this.replicateManual.emit([rule]);
this.replicateManual.emit(rule);
}
hasDeletedLabel(rule: any) {

View File

@ -3,7 +3,7 @@ Documentation This resource provides any keywords related to the Harbor private
*** Variables ***
${upload_chart_button} //project-list-charts/hbr-helm-chart//clr-dg-action-bar/button[contains(.,"upload")]
${upload_chart_button} //button[contains(.,"Upload")]
${chart_file_browse} //*[@id="chart"]
${chart_prov_browse} //*[@id="prov"]
${upload_action_button} //clr-modal//form/div/button[contains(.,"Upload")]

View File

@ -62,6 +62,6 @@ Enable Scan On Push
Sleep 10
Vulnerability Not Ready Project Hint
Page Should Contain Element //span[@class="db-status-warning"]
Page Should Contain Element //span[contains(@class, "db-status-warning")]
Vulnerability Not Ready Config Hint
Page Should Contain Element //vulnerability-config//clr-tooltip