mirror of
https://github.com/goharbor/harbor
synced 2025-04-22 03:26:04 +00:00
Add Filter Label about imgs
This commit is contained in:
parent
c67e1a2e4b
commit
bd28eb4541
@ -30,7 +30,7 @@
|
|||||||
"clarity-icons": "0.10.24",
|
"clarity-icons": "0.10.24",
|
||||||
"clarity-ui": "0.10.24",
|
"clarity-ui": "0.10.24",
|
||||||
"core-js": "^2.4.1",
|
"core-js": "^2.4.1",
|
||||||
"harbor-ui": "0.6.74",
|
"harbor-ui": "0.6.75",
|
||||||
"intl": "^1.2.5",
|
"intl": "^1.2.5",
|
||||||
"mutationobserver-shim": "^0.3.2",
|
"mutationobserver-shim": "^0.3.2",
|
||||||
"ngx-cookie": "^1.0.0",
|
"ngx-cookie": "^1.0.0",
|
||||||
|
@ -19,7 +19,22 @@ Resource ../../resources/Util.robot
|
|||||||
*** Variables ***
|
*** Variables ***
|
||||||
${HARBOR_VERSION} v1.1.1
|
${HARBOR_VERSION} v1.1.1
|
||||||
|
|
||||||
|
*** Keywords ***
|
||||||
|
Sign In Harbor
|
||||||
|
[Arguments] ${url} ${user} ${pw}
|
||||||
|
Go To ${url}
|
||||||
|
Sleep 5
|
||||||
|
${title}= Get Title
|
||||||
|
Log To Console ${title}
|
||||||
|
Should Be Equal ${title} Harbor
|
||||||
|
Sleep 2
|
||||||
|
Input Text login_username ${user}
|
||||||
|
Input Text login_password ${pw}
|
||||||
|
Sleep 2
|
||||||
|
Click button css=.btn
|
||||||
|
sleep 5
|
||||||
|
Log To Console ${user}
|
||||||
|
Wait Until Page Contains ${user}
|
||||||
|
|
||||||
Sign Up Should Not Display
|
Sign Up Should Not Display
|
||||||
Page Should Not Contain Element xpath=${sign_up_button_xpath}
|
Page Should Not Contain Element xpath=${sign_up_button_xpath}
|
||||||
|
@ -249,16 +249,22 @@ Add Labels To Tag
|
|||||||
Page Should Contain Element xpath=//clr-dg-row//label[contains(.,"${labelName}")]
|
Page Should Contain Element xpath=//clr-dg-row//label[contains(.,"${labelName}")]
|
||||||
|
|
||||||
Filter Labels In Tags
|
Filter Labels In Tags
|
||||||
[Argument] ${labelName1} ${labelName2}
|
[Arguments] ${labelName1} ${labelName2}
|
||||||
Sleep 2
|
Sleep 2
|
||||||
Click Element xpath=//clr-dropdown/hbr-filter/span/clr-icon
|
Click Element xpath=//clr-dropdown/hbr-filter/span/clr-icon
|
||||||
Capture Page Screenshot filter_${labelName1}.png
|
|
||||||
Sleep 2
|
Sleep 2
|
||||||
Page Should Contain Element xpath=//tag-repository//clr-dropdown-menu/div//button[contains(.,"${labelName1}")]
|
Page Should Contain Element xpath=//tag-repository//clr-dropdown-menu/div//button[contains(.,"${labelName1}")]
|
||||||
Click Element xpath=//tag-repository//clr-dropdown-menu/div//button[contains(.,"${labelName1}")]
|
Click Element xpath=//tag-repository//clr-dropdown-menu/div//button[contains(.,"${labelName1}")]
|
||||||
Sleep 2
|
Sleep 2
|
||||||
Page Should Contain Element xpath=//clr-datagrid//clr-dg-cell[8]/hbr-label-piece/label[contains(.,"${labelName1}")]
|
Click Element xpath=//clr-dropdown/hbr-filter/span/clr-icon
|
||||||
Capture Page Screenshot filter_${labelName2}.png
|
Page Should Contain Element xpath=//clr-datagrid//label[contains(.,"${labelName1}")]
|
||||||
|
|
||||||
|
Click Element xpath=//clr-dropdown/hbr-filter/span/clr-icon
|
||||||
|
Sleep 2
|
||||||
Click Element xpath=//tag-repository//clr-dropdown-menu/div//button[contains(.,"${labelName2}")]
|
Click Element xpath=//tag-repository//clr-dropdown-menu/div//button[contains(.,"${labelName2}")]
|
||||||
Sleep 2
|
Sleep 2
|
||||||
Page Should Not Contain Element xpath=//clr-datagrid//clr-dg-cell[8]/hbr-label-piece/label[contains(.,"${labelName2}")]
|
Click Element xpath=//clr-dropdown/hbr-filter/span/clr-icon
|
||||||
|
Sleep 2
|
||||||
|
Capture Page Screenshot filter_${labelName2}.png
|
||||||
|
Page Should Contain Element xpath=//clr-dg-row[contains(.,"${labelName2}")]
|
||||||
|
Page Should Not Contain Element xpath=//clr-dg-row[contains(.,"${labelName1}")]
|
||||||
|
@ -324,16 +324,16 @@ TestCase - Project Admin Add Labels To Repo
|
|||||||
Sleep 2
|
Sleep 2
|
||||||
# Add labels
|
# Add labels
|
||||||
Switch To Project Label
|
Switch To Project Label
|
||||||
Create New Labels label_${d}
|
Create New Labels label111
|
||||||
Capture Page Screenshot CreateLabel1.png
|
Capture Page Screenshot CreateLabel1.png
|
||||||
Create New Labels label11111
|
Create New Labels label22
|
||||||
Capture Page Screenshot CreateLabel2.png
|
Capture Page Screenshot CreateLabel2.png
|
||||||
Sleep 2
|
Sleep 2
|
||||||
Switch To Project Repo
|
Switch To Project Repo
|
||||||
Go Into Repo project${d}/redis
|
Go Into Repo project${d}/redis
|
||||||
Add Labels To Tag 3.2.10-alpine label_${d}
|
Add Labels To Tag 3.2.10-alpine label111
|
||||||
Add Labels To Tag 4.0.7-alpine label11111
|
Add Labels To Tag 4.0.7-alpine label22
|
||||||
Filter Labels In Tags label_${d}
|
Filter Labels In Tags label111 label22
|
||||||
Close Browser
|
Close Browser
|
||||||
|
|
||||||
TestCase - Developer Operate Labels
|
TestCase - Developer Operate Labels
|
||||||
|
Loading…
x
Reference in New Issue
Block a user