Fix xpath in go to project robot case

Global search bug fix introduced test case failure, fix it by edit xpath

Signed-off-by: Qian Deng <dengq@vmware.com>
This commit is contained in:
Qian Deng 2018-11-30 13:26:16 +08:00
parent 399c9c44d8
commit 9dd509e0eb
2 changed files with 4 additions and 4 deletions

View File

@ -6,15 +6,15 @@
<!-- spinner --> <!-- spinner -->
<div class="spinner spinner-lg search-spinner" [hidden]="done">{{'SEARCH.IN_PROGRESS' | translate}}</div> <div class="spinner spinner-lg search-spinner" [hidden]="done">{{'SEARCH.IN_PROGRESS' | translate}}</div>
<div id="results"> <div id="results">
<div class="project-results"> <div id="project-results">
<h2>{{'PROJECT.PROJECTS' | translate}}</h2> <h2>{{'PROJECT.PROJECTS' | translate}}</h2>
<list-project-ro [projects]="searchResults.project"></list-project-ro> <list-project-ro [projects]="searchResults.project"></list-project-ro>
</div> </div>
<div class="repo-results"> <div id="repo-results">
<h2>{{'PROJECT_DETAIL.REPOSITORIES' | translate}}</h2> <h2>{{'PROJECT_DETAIL.REPOSITORIES' | translate}}</h2>
<list-repository-ro [repositories]="searchResults.repository"></list-repository-ro> <list-repository-ro [repositories]="searchResults.repository"></list-repository-ro>
</div> </div>
<div *ngIf="withHelmChart" class="chart-results"> <div *ngIf="withHelmChart" id="chart-results">
<h2>{{'HELM_CHART.HELMCHARTS' | translate}}</h2> <h2>{{'HELM_CHART.HELMCHARTS' | translate}}</h2>
<list-chart-version-ro [charts]="searchResults.Chart"></list-chart-version-ro> <list-chart-version-ro [charts]="searchResults.Chart"></list-chart-version-ro>
</div> </div>

View File

@ -28,7 +28,7 @@ Go Into Project
Input Text xpath=//*[@id="search_input"] ${project} Input Text xpath=//*[@id="search_input"] ${project}
Sleep 8 Sleep 8
Wait Until Page Contains ${project} Wait Until Page Contains ${project}
Click Element xpath=//*[@id="results"]/list-project-ro//clr-dg-cell[contains(.,"${project}")]/a Click Element xpath=//*[@id="project-results"]//clr-dg-cell[contains(.,"${project}")]/a
Sleep 2 Sleep 2
Capture Page Screenshot gointo_${project}.png Capture Page Screenshot gointo_${project}.png