Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Port robot tests #4019

Merged
merged 51 commits into from
Oct 18, 2024
Merged
Show file tree
Hide file tree
Changes from 39 commits
Commits
Show all changes
51 commits
Select commit Hold shift + click to select a range
0c50262
refactoring actionmenu robot tests
1letter Sep 24, 2024
73c5332
Fix missing comment char
1letter Sep 24, 2024
28c279a
refactoring controlpanel actions robot tests
1letter Sep 25, 2024
50c97d3
polish keywords
1letter Sep 25, 2024
101d29a
refactoring controlpanel robot tests
1letter Sep 25, 2024
1d4bdb0
polishing controlpanel editing robot test
1letter Sep 25, 2024
5ab4b5a
add keywords
1letter Sep 26, 2024
fa2c4bc
port controlpanel filter robot test
1letter Sep 26, 2024
f9c0006
port controlpanel language robot tests
1letter Sep 26, 2024
e32db34
refactoring controlpanel markup robot tests
1letter Sep 26, 2024
3167c94
refactoring controlpanel navigation robot tests
1letter Sep 26, 2024
0146064
refactoring controlpanel redirection robot tests
1letter Sep 27, 2024
10e3101
refactoring controlpanel search robot tests
1letter Sep 27, 2024
000358d
refactoring controlpanel security robot tests
1letter Sep 27, 2024
ba2720e
correct spaces in keyword
1letter Sep 27, 2024
0e2cdf1
refactoring controlpanel site robot tests
1letter Sep 27, 2024
bf4f1ad
refactoring controlpanel social robot tests
1letter Sep 27, 2024
542792a
refactoring controlpanel types robot tests
1letter Sep 27, 2024
97e45ba
refactoring controlpanel usergroups robot tests
1letter Sep 27, 2024
a08b8b7
Fix keyword naming
1letter Sep 27, 2024
e2af3c7
remove unused keyword 'Pause'
1letter Sep 27, 2024
8dfb312
refactoring edit user schema robot tests
1letter Sep 27, 2024
c94d908
refactoring edit content robot tests
1letter Sep 27, 2024
35e8c62
refactoring folder contents robot tests
1letter Sep 27, 2024
f418d36
refactoring linkintegrity robot tests
1letter Sep 27, 2024
cbf2add
refactoring livesearch robot tests
1letter Sep 27, 2024
34663e8
add new keyword "a logged-in member"
1letter Oct 4, 2024
f590f3d
refactoring overlays robot tests
1letter Oct 7, 2024
3c5c877
refactoring portlets robot tests
1letter Oct 7, 2024
4d830f1
ported `contentbrowser` tests
petschki Oct 7, 2024
4a29823
ported tinymce robot tests
petschki Oct 7, 2024
1e9e137
refactoring querystring robot tests
1letter Oct 8, 2024
cf2e8d5
make folder_contents robot test more robust
1letter Oct 8, 2024
9278551
delete obsolete robodoc folder
1letter Oct 8, 2024
3eee6f6
delete obsolete common.robot keywords
1letter Oct 8, 2024
2fb10fd
add news
1letter Oct 8, 2024
924837c
Merge branch 'master' into port-robot-tests
petschki Oct 11, 2024
3840f87
fix Test
1letter Oct 13, 2024
e82b018
fix test
1letter Oct 13, 2024
a23c596
Merge branch 'master' into port-robot-tests
petschki Oct 13, 2024
0d6ec2e
Fix Test
1letter Oct 15, 2024
c22725a
Merge branch 'master' into port-robot-tests
petschki Oct 16, 2024
85e2b7c
fix folder_contents tests
petschki Oct 18, 2024
0103d2e
fix for linkintegrity tests
petschki Oct 18, 2024
da64f66
refactor folder_contents test "select all the elements"
petschki Oct 18, 2024
0160d89
Merge branch 'master' into port-robot-tests
petschki Oct 18, 2024
a6bc5eb
add robot test select widget, migrated from plone.app.widgets
1letter Oct 18, 2024
9fc4c2f
set download path in test to current directory, don't use global /tmp
1letter Oct 18, 2024
f086f0d
wait for filled text in tinymce
petschki Oct 18, 2024
ee75f44
fix text - wait for patterns loaded
1letter Oct 18, 2024
0c23372
change tinymce text fill strategy
petschki Oct 18, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
69 changes: 0 additions & 69 deletions Products/CMFPlone/tests/robot/common.robot

This file was deleted.

93 changes: 76 additions & 17 deletions Products/CMFPlone/tests/robot/keywords.robot
Original file line number Diff line number Diff line change
@@ -1,39 +1,98 @@
*** Keywords *****************************************************************
*** Keywords ***

# --- SETUP ------------------------------------------------------------------
# SETUP

Refresh JS/CSS resources
# Not needed anymore, and it is breaking the Plone Zope 4 tests.
# Keep the keyword for backwards compatibility purposes.
Sleep 0.0000001

# --- GIVEN ------------------------------------------------------------------
# GIVEN

a logged-in manager
Enable autologin as
... Manager

a logged-in member
Enable autologin as
... Member

a logged-in site administrator
Enable autologin as Site Administrator Contributor Reviewer
Enable autologin as
... Site Administrator
... Contributor
... Reviewer


a document '${title}'
Create content type=Document id=doc title=${title}
Create content
... type=Document
... id=doc
... title=${title}

a file '${title}'
Create content type=File id=file title=${title}
Create content
... type=File
... id=file
... title=${title}

a news item '${title}'
Create content type=News Item id=doc title=${title}
Create content
... type=News Item
... id=doc
... title=${title}

an image '${title}'
Create content type=Image id=doc title=${title}
Create content
... type=Image
... id=doc
... title=${title}

a folder '${title}'
Create content type=Folder title=${title}

patterns are loaded
Wait For Condition return !!document.querySelector('body.patterns-loaded')
Create content
... type=Folder
... title=${title}

a folder with a document '${title}'
${folder_uid}= Create content type=Folder title=folder
Create content type=Document container=${folder_uid} title=${title}
${folder_uid}= Create content type=Folder title=folder
Create content
... type=Document
... container=${folder_uid}
... title=${title}

Remove line from textarea
[Arguments] ${fieldName} ${value}

Import library String
${lines}= Get Text //textarea[@name="${fieldName}"]
${lines}= Remove String ${lines} ${value}\n
Type Text //textarea[@name="${fieldName}"] ${lines}


Fill text to tinymce editor
[Arguments] ${attr_name} ${input}

Wait For Condition Attribute //body class contains patterns-loaded

Sleep 1

Evaluate JavaScript //textarea[@name="${attr_name}"]
... (elem, text) => {
... elem["pattern-tinymce"].instance.tiny.setContent('${input}');
... }
... all_elements=False

Sleep 0.5

${check}= Evaluate JavaScript //textarea[@name="${attr_name}"]
... (elem) => {
... return elem["pattern-tinymce"].instance.tiny.getContent();
... }
... all_elements=False

Should not be empty ${check}


folder contents pattern loaded
Page should contain element css=.pat-structure
Wait For Condition return !!document.querySelector('.pat-structure div.navbar')
Pause
Import library Dialogs
Pause execution
85 changes: 0 additions & 85 deletions Products/CMFPlone/tests/robot/robodoc/README.rst

This file was deleted.

10 changes: 0 additions & 10 deletions Products/CMFPlone/tests/robot/robodoc/TODO.rst

This file was deleted.

96 changes: 0 additions & 96 deletions Products/CMFPlone/tests/robot/robodoc/anonymous.robot

This file was deleted.

Loading