Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Harbor
Commits
eb989368
Commit
eb989368
authored
7 years ago
by
sigsbee
Committed by
Yan
7 years ago
Browse files
Options
Download
Email Patches
Plain Diff
Fix failed auto test case to suit new UI (#4188)
parent
f8576102
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
tests/resources/Harbor-Pages/Project-Members.robot
+2
-2
tests/resources/Harbor-Pages/Project-Members.robot
tests/resources/Harbor-Pages/ToolKit.robot
+10
-0
tests/resources/Harbor-Pages/ToolKit.robot
tests/robot-cases/Group11-Nightly/Nightly.robot
+3
-3
tests/robot-cases/Group11-Nightly/Nightly.robot
with
15 additions
and
5 deletions
+15
-5
tests/resources/Harbor-Pages/Project-Members.robot
+
2
-
2
View file @
eb989368
...
...
@@ -75,13 +75,13 @@ Change Project Member Role
User Can Change Role
[
arguments
]
${username}
Click Element
xpath=//clr-dg-row[contains(.,'
${username}
')]//input/../label
Click Element
xpath=//
button[@class='btn dropdown-toggle
']
Click Element
xpath=//
clr-dropdown[@id='member-action
']
Page Should Not Contain Element
xpath=//button[@disabled='' and contains(.,'Admin')]
User Can Not Change Role
[
arguments
]
${username}
Click Element
xpath=//clr-dg-row[contains(.,'
${username}
')]//input/../label
Click Element
xpath=//
button[@class='btn dropdown-toggle
']
Click Element
xpath=//
clr-dropdown[@id='member-action
']
Page Should Contain Element
xpath=//button[@disabled='' and contains(.,'Admin')]
#this keyworkd seems will not use any more, will delete in the future
...
...
This diff is collapsed.
Click to expand it.
tests/resources/Harbor-Pages/ToolKit.robot
+
10
-
0
View file @
eb989368
...
...
@@ -52,6 +52,16 @@ Multi-delete Object
Click Element
//clr-modal//button[contains(.,'DELETE')]
Sleep
3
Multi-delete Member
[
Arguments
]
@{obj}
:For
${obj}
in
@{obj}
\
Click Element
//clr-dg-row[contains(.,'
${obj}
')]//label
Sleep
1
Click Element
//button[contains(.,'REMOVE')]
Sleep
2
Click Element
//clr-modal//button[contains(.,'DELETE')]
Sleep
3
Multi-delete Object Without Confirmation
[
Arguments
]
@{obj}
:For
${obj}
in
@{obj}
...
...
This diff is collapsed.
Click to expand it.
tests/robot-cases/Group11-Nightly/Nightly.robot
+
3
-
3
View file @
eb989368
...
...
@@ -307,7 +307,7 @@ Test Case - Delete Multi Project
Create An New Project
projectb
${d}
Push Image
${ip}
test
${d}
Test1@34
projecta
${d}
hello-world
Filter Object
project
Multi-delete Object
Without Confirmation
projecta
projectb
Multi-delete Object
projecta
projectb
# Verify delete project with image should not be deleted directly
Page Should Contain
projecta
${d}
Page Should Not Contain
projectb
${d}
...
...
@@ -376,7 +376,7 @@ Test Case - Delete Multi Member
Switch To Member
Add Guest Member to project
testa
${d}
Add Guest Member to project
testb
${d}
Multi-delete
Object Without Confirmation
testa
${d}
testb
${d}
Multi-delete
Member
testa
${d}
testb
${d}
Page Should Not Contain
testa
${d}
Close Browser
...
...
@@ -438,4 +438,4 @@ Test Case - View Scan Error
#Test Case - OVA reset
# Reset VM ${vm_name} ${vc_host} ${vc_user} ${vc_password}
# Wait for Harbor Ready https ${ip}
\ No newline at end of file
# Wait for Harbor Ready https ${ip}
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help