From dfeb1924c6db4b70faffbab3199f17b47ff2d291 Mon Sep 17 00:00:00 2001 From: Qian Deng Date: Mon, 10 Sep 2018 17:12:52 +0800 Subject: [PATCH] Fix xpath in robot case 1. Fix xpath of Upload button 2. Fix xpath of status span Signed-off-by: Qian Deng --- .../list-replication-rule/list-replication-rule.component.ts | 4 ++-- .../resources/Harbor-Pages/Project-Helmcharts_Elements.robot | 2 +- tests/resources/Harbor-Pages/Vulnerability.robot | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/portal/lib/src/list-replication-rule/list-replication-rule.component.ts b/src/portal/lib/src/list-replication-rule/list-replication-rule.component.ts index 47a2b8557..74ec18c0d 100644 --- a/src/portal/lib/src/list-replication-rule/list-replication-rule.component.ts +++ b/src/portal/lib/src/list-replication-rule/list-replication-rule.component.ts @@ -71,7 +71,7 @@ export class ListReplicationRuleComponent implements OnInit, OnChanges { @Output() hideJobs = new EventEmitter(); @Output() redirect = new EventEmitter(); @Output() openNewRule = new EventEmitter(); - @Output() replicateManual = new EventEmitter(); + @Output() replicateManual = new EventEmitter(); 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) { diff --git a/tests/resources/Harbor-Pages/Project-Helmcharts_Elements.robot b/tests/resources/Harbor-Pages/Project-Helmcharts_Elements.robot index 4eaf2ac98..5e72aa4e7 100644 --- a/tests/resources/Harbor-Pages/Project-Helmcharts_Elements.robot +++ b/tests/resources/Harbor-Pages/Project-Helmcharts_Elements.robot @@ -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")] diff --git a/tests/resources/Harbor-Pages/Vulnerability.robot b/tests/resources/Harbor-Pages/Vulnerability.robot index f7970af6a..624ac9a08 100644 --- a/tests/resources/Harbor-Pages/Vulnerability.robot +++ b/tests/resources/Harbor-Pages/Vulnerability.robot @@ -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