Skip to content

Commit

Permalink
Update Harbor UI test (#1633) (#1636)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewtchin authored Apr 25, 2018
1 parent fa9f681 commit f02b325
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ Documentation This resource contains any keywords dealing with Project Reposito
# css locators
${pr-title} css=.content-area .title
${pr-repositories-table-row} css=div.datagrid-body .datagrid-row
${pr-repositories-card-item} css=div.grid-content .card-item
${pr-repositories-card-title} css=.card-media-title

*** Keywords ***
Verify Project Repositories Page
Expand All @@ -32,4 +34,14 @@ Verify Row Value In Project Repositories Table
\ ${row-text}= Get Text ${element}
\ ${status}= Run Keyword And Return Status Should Contain ${row-text} ${expected}
\ Exit For Loop If ${status} == True
[Return] ${row-text}
[Return] ${row-text}

Verify Row Value In Project Repositories Grid
[Arguments] ${expected}
${visible}= Run Keyword And Return Status Element Should Be Visible ${pr-repositories-card-item}
@{card-title-elements}= Run Keyword If ${visible} == True Get Webelements ${pr-repositories-card-title}
:FOR ${element} IN @{card-title-elements}
\ ${card-title}= Get Text ${element}
\ ${status}= Run Keyword And Return Status Should Contain ${title} ${expected}
\ Exit For Loop If ${status} == True
[Return] ${card-title}
2 changes: 1 addition & 1 deletion tests/test-cases/Group4-Harbor/4-01-Harbor.robot
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ Push an image to harbor and create a container
Push Docker Image To Harbor Registry %{OVA_IP} ${harbor-image-tagged}
Navigate To VIC UI Home Page
Navigate To Project Repositories Page
Wait Until Keyword Succeeds 3x 2s Verify Row Value In Project Repositories Table ${harbor-image-name}
Wait Until Keyword Succeeds 3x 2s Verify Row Value In Project Repositories Grid ${harbor-image-name}
# create container from harbor image
Download VIC Engine If Not Already
Download CA Cert %{OVA_IP}
Expand Down

0 comments on commit f02b325

Please sign in to comment.