From 0c95bd6ffa89d895ee84d350077ea327d327f297 Mon Sep 17 00:00:00 2001 From: sigsbee <23101283+sigsbee@users.noreply.github.com> Date: Mon, 26 Mar 2018 16:27:07 +0800 Subject: [PATCH] Update project detail xpath (#4482) --- tests/resources/Harbor-Pages/Project.robot | 4 ++-- tests/resources/Harbor-Pages/Project_Elements.robot | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/tests/resources/Harbor-Pages/Project.robot b/tests/resources/Harbor-Pages/Project.robot index 3cc3c6bd8..4563fe988 100644 --- a/tests/resources/Harbor-Pages/Project.robot +++ b/tests/resources/Harbor-Pages/Project.robot @@ -44,11 +44,11 @@ Create An New Project With New User #It's the log of project. Go To Project Log - Click Element xpath=//project-detail//ul/li[3] + Click Element xpath=${project_log_xpath} Sleep 2 Switch To Member - Click Element xpath=//project-detail//li[2] + Click Element xpath=${project_member_xpath} Sleep 1 Switch To Log diff --git a/tests/resources/Harbor-Pages/Project_Elements.robot b/tests/resources/Harbor-Pages/Project_Elements.robot index 57175ee05..34201c9af 100644 --- a/tests/resources/Harbor-Pages/Project_Elements.robot +++ b/tests/resources/Harbor-Pages/Project_Elements.robot @@ -22,4 +22,6 @@ ${project_public_xpath} //input[@name='public']/..//label ${project_save_css} html body.no-scrolling harbor-app harbor-shell clr-main-container.main-container div.content-container div.content-area.content-area-override project div.row div.col-lg-12.col-md-12.col-sm-12.col-xs-12 div.row.flex-items-xs-between div.option-left create-project clr-modal div.modal div.modal-dialog div.modal-content div.modal-footer button.btn.btn-primary ${log_xpath} //clr-main-container/div/clr-vertical-nav/div/a[contains(.,'Logs')] ${projects_xpath} //clr-main-container/div/clr-vertical-nav/div/a[contains(.,'Projects')] -${project_replication_xpath} //project-detail//a[contains(.,'Replication')] \ No newline at end of file +${project_replication_xpath} //project-detail//a[contains(.,'Replication')] +${project_log_xpath} //project-detail//li[contains(.,'Logs')] +${project_member_xpath} //project-detail//li[contains(.,'Members')]