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

Proper setup/teardown suites. #16

Closed
wants to merge 176 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
176 commits
Select commit Hold shift + click to select a range
aa295f9
Branch CMFPlone
esteele Jul 12, 2011
47ac9ab
Plone 4.1 branched.
esteele Jul 12, 2011
3dfd196
Branch p.a.portlets.
esteele Jul 12, 2011
2988880
Branch p.a.layout.
esteele Jul 12, 2011
8a472a7
Use new branches.
esteele Jul 12, 2011
2c8888e
Use new branch.
esteele Jul 13, 2011
b73c282
Use new branch.
esteele Jul 13, 2011
9fcb333
Consistency is for suckers.
esteele Jul 13, 2011
12294df
Nevermind. Stick with trunk for now.
esteele Jul 13, 2011
85bafe8
Fixed plone.app.upgrade branch for Plone 4.1
vincentfretin Jul 13, 2011
0e926a7
new plone.app.locales release
vincentfretin Jul 13, 2011
3bf8a44
update p.a.form
davisagli Jul 13, 2011
421c21e
Fix branch location.
esteele Jul 13, 2011
7f22c60
update feedparser, refs #11691
Jul 13, 2011
acb5b5a
plone.app.testing 4.0.1 has been released
Jul 14, 2011
6061ea6
Update plonetheme.classic release.
esteele Jul 15, 2011
8f65ea2
New plone.app.discussion release with minor fix for Google Chrome.
Jul 15, 2011
6c0ea6b
upgrade Products.CMFPlacefulWorkflow to 1.5.5
encolpe Jul 15, 2011
883323e
My crappy liitle script to build unified changelogs for Plone release…
esteele Jul 17, 2011
47fd058
Backport zope2instance recipe change
hannosch Jul 17, 2011
756de63
archetypes.kss has a change
vincentfretin Jul 18, 2011
c7bb91a
Use new archetypes.kss.
esteele Jul 19, 2011
83108d6
New kss.core.
esteele Jul 19, 2011
9a4c37f
develop plone.app.z3cform
tdesvenain Jul 19, 2011
26c1ad7
review of dexterity plip #11773
eleddy Jul 19, 2011
7ef863c
released
vincentfretin Jul 20, 2011
bcbee1f
Update Marshall.
esteele Jul 21, 2011
65ee628
include a test fix
davisagli Jul 21, 2011
7ce99ae
Products.Archetypes has a change
vincentfretin Jul 22, 2011
448b189
Newer zcatalog, to restore sorting by score
hannosch Jul 24, 2011
8b9f2a5
develop Products.ATContentTypes
tdesvenain Jul 27, 2011
46b4cca
develop Products.MimetypesRegistry
tdesvenain Jul 27, 2011
1fdd733
New ZCTextIndex
hannosch Jul 28, 2011
dc19592
More updates
hannosch Jul 29, 2011
86a6073
Checkout Zope2 to clear up the swath of test failures introduced by t…
esteele Aug 2, 2011
7755684
Or not. Appears to be a jenkins-only set of failures...
esteele Aug 2, 2011
30160aa
develop p.a.workflow
Aug 8, 2011
6a815d9
Remove merged plip cfg.
esteele Aug 8, 2011
45e4a15
update bootstrap to newer version that fixes https://bugs.launchpad.n…
frisi Aug 9, 2011
2f34a62
update Products.contentmigration
Aug 10, 2011
807598d
Products.contentmigration
Aug 11, 2011
89664b7
develop plone.app.blob
gotcha Aug 12, 2011
1f0429d
develop Products.TinyMCE
tdesvenain Aug 17, 2011
75f8f80
archetypes.referencebrowserwidget 2.4.4 released
gotcha Aug 19, 2011
eb19fa5
plone.app.blob 1.5.1 released
gotcha Aug 19, 2011
071d1f2
plone.app.layout for the checkout
mishunov Aug 19, 2011
bd47ea0
Backported version updates from 42
hannosch Aug 20, 2011
a9d0943
include fix in p.a.users
davisagli Aug 20, 2011
3303ad0
kss.core 1.6.3
esteele Aug 21, 2011
f9aa0ec
Branch CMFEditions.
esteele Aug 22, 2011
18c6315
CMFEditions has changes...
esteele Aug 22, 2011
bcc587f
New ZCatalog with correct batching in early second half of the batch
hannosch Aug 23, 2011
cf3944e
Two releases.
esteele Aug 23, 2011
2d80f63
Pin selenium.
esteele Aug 24, 2011
51c29de
add loadtesting.cfg
davisagli Aug 26, 2011
7cd8de3
plone.cachepurging has a change
vincentfretin Aug 27, 2011
ab2c534
plone.portlet.collection 2.0.4 released
gotcha Aug 29, 2011
5f15131
Some releases.
esteele Sep 1, 2011
76a1eea
p.a.discussion has non-testfix changes.
esteele Sep 1, 2011
b9c15d5
Some releases.
esteele Sep 1, 2011
d2d960a
plone.app.z3cform doesn't appear to have changes.
esteele Sep 1, 2011
a5a157c
adapt to new plone.app.event buildout structure
thet Sep 7, 2011
c061233
plone.app.controlpanel has changes
vincentfretin Sep 8, 2011
9438e54
Checkout Products.Archetypes
mauritsvanrees Sep 9, 2011
e7071a9
Checkout plone.recipe.zeoserver
mauritsvanrees Sep 12, 2011
e8aa8a1
Update plone.recipe.zeoserver to fresh 1.2.1
mauritsvanrees Sep 12, 2011
adf0dac
checkout plone.cachepurging
lrowe Sep 13, 2011
1d8c976
plone.app.controlpanel 2.1.2
esteele Sep 16, 2011
e4efc6e
Products.Archetypes 1.7.8 released
esteele Sep 16, 2011
af14a8b
plone.cachepurging 1.0.3 released
esteele Sep 16, 2011
56fc48a
check out p.a.layout
davisagli Sep 17, 2011
997377f
develop Archetypes
davisagli Sep 17, 2011
e9f6da0
p.a.registry has changes
davisagli Sep 17, 2011
d17b9af
plone.app.registry 1.0.1 released
esteele Sep 19, 2011
fac6fa3
plone.app.layout 2.1.10 released
esteele Sep 19, 2011
b57ee43
Products.Archetypes 1.7.9 released
esteele Sep 19, 2011
e9d67e8
Update p.a.discussion location.
esteele Sep 19, 2011
8c427c6
plone.app.discussion 2.0.10 released
esteele Sep 19, 2011
2cf1668
Products.TinyMCE 1.2.8 released.
esteele Sep 19, 2011
ff0265a
use CMFEditions 2.1.5
lrowe Sep 19, 2011
3fa9749
updating sources
garbas Sep 19, 2011
349e90a
updating sources
garbas Sep 20, 2011
3b368e0
plone.app.controlpanel has changes.
esteele Sep 21, 2011
59d9b85
plone.app.controlpanel 2.1.3 released
esteele Sep 21, 2011
7e6145a
plone.app.upgrade 1.1.1 released
esteele Sep 21, 2011
499cd44
Products.CMFPlone 4.1.1 released
esteele Sep 21, 2011
e524fa2
Plone 4.1.1 released
esteele Sep 21, 2011
f1a2aa8
updating sources
garbas Sep 21, 2011
0ee3681
missing space in plone.app.folder source line
mauritsvanrees Sep 21, 2011
d5eff07
Released plone.app.locales
vincentfretin Sep 22, 2011
5cdd78d
five.customerize has a change
vincentfretin Sep 22, 2011
10b3e77
plone.app.portlets has changes
vincentfretin Sep 22, 2011
c26b3ae
updating sources
garbas Sep 22, 2011
dc1dcae
use fixed p.a.upgrade
davisagli Sep 23, 2011
b55fe46
Products.CMFPlone has changes
mauritsvanrees Sep 23, 2011
8119861
checkout plone.app.layout
mauritsvanrees Sep 23, 2011
221d35a
check out ATCT
davisagli Sep 23, 2011
5fb2178
Products.TinyMCE has a fix
mauritsvanrees Sep 23, 2011
decc3d9
Pull in plone.app.upgrade changes.
esteele Sep 24, 2011
bf0a722
moved to github
garbas Sep 25, 2011
e94d708
updating sources
garbas Sep 25, 2011
853eb14
Add ignores
Sep 26, 2011
0e0c59c
updating sources
garbas Sep 29, 2011
b1b9596
updating sources
garbas Sep 29, 2011
9f3dbfa
Cleanup references to SVN
rpatterson Sep 29, 2011
fddf6f7
CMFEditions needs a release
rpatterson Sep 29, 2011
cc1a57c
develop plone.app.linkintegrity
gotcha Oct 3, 2011
bc06ee7
update .gitignore
gotcha Oct 3, 2011
636222d
plone.app.iterate needs a release
rpatterson Oct 5, 2011
d4f11c5
use `plone.app.linkintegrity` 1.4.4
witsch Oct 5, 2011
ce4d02b
Releases.
esteele Oct 7, 2011
c332e94
Add plone.app.controlpanel to checkouts.
stefanholek Oct 7, 2011
e63c923
Merge branch '4.1' of github.com:plone/buildout.coredev into 4.1
stefanholek Oct 7, 2011
ce81ccf
Merge branch '4.1' of github.com:/plone/buildout.coredev into 4.1
esteele Oct 7, 2011
37554f1
More releases.
esteele Oct 7, 2011
bc26bfc
More releases.
esteele Oct 8, 2011
c1ab300
plone.app.form 2.0.4 was recently released.
mjpieters Oct 10, 2011
4840089
Pin z3c.ptcompat and z3c.template versions.
stefanholek Oct 13, 2011
35a376e
upgrade plone.z3cform to 0.7.8
tdesvenain Oct 18, 2011
d7e923e
checkout PlonePAS
tdesvenain Oct 20, 2011
a8a7545
develop plone.app.workflow
tdesvenain Oct 23, 2011
357c90d
Fix bad git urls
esteele Oct 27, 2011
c0c10b8
Fix plone.app.discussion location.
esteele Oct 27, 2011
ad3e627
Fix plone.recipe.alltests location.
esteele Oct 27, 2011
f79b6eb
Fix ATRBW location.
esteele Oct 27, 2011
3fa5a2b
plone.app.iterate needs a release
rpatterson Oct 19, 2011
03a2888
sort .gitignore
mauritsvanrees Nov 3, 2011
2c0af60
git ignore .installed.cfg and var
mauritsvanrees Nov 3, 2011
607701b
Copied pybot.cfg from buildout.deco gotcha test branch.
Nov 6, 2011
7214d24
Removes the wrong profiles
Nov 7, 2011
7ef768e
fixed allow-hosts
hvelarde Nov 7, 2011
bcd1702
Merge pull request #3 from hvelarde/4.1-robot
gotcha Nov 7, 2011
63f7a54
Merge pull request #2 from mpeeters/4.1-robot
gotcha Nov 7, 2011
9db47de
add bootstrap tests
gotcha Nov 7, 2011
4f66292
enable specifying browser
gotcha Nov 7, 2011
e5bb8cb
robot tests for plone
tdesvenain Nov 7, 2011
7b23e46
Added possibility to have a custom selenium-server.jar.
jjmurre Nov 7, 2011
2460158
Adds a keyword for open an ajax like menu
Nov 7, 2011
7fcc18c
Added README.txt back to the var dir.
jjmurre Nov 7, 2011
0a7977f
Merge pull request #4 from jjmurre/4.1-robot
lentinj Nov 7, 2011
3c89971
Removed vim specific stuff from gitignore.
jjmurre Nov 7, 2011
283aa58
Merge branch '4.1-robot' of github.com:plone/buildout.coredev into 4.…
tdesvenain Nov 7, 2011
9ec77aa
Add tests for the action menu and livesearch
lentinj Nov 7, 2011
a734d17
Merge remote branch 'lentinj/4.1-robot' into 4.1-robot
jjmurre Nov 7, 2011
a3c0dbc
Add simple overlay tests
smcmahon Nov 7, 2011
af9b679
- Adds more keywords for adding, removing or renaming pages
Nov 7, 2011
f8f0d44
Merge pull request #7 from smcmahon/4.1-robot
smcmahon Nov 7, 2011
e017ad4
Merge remote branch 'plone/4.1-robot' into 4.1-robot
Nov 7, 2011
66aac9c
Merge remote branch 'plone/4.1-robot' into 4.1-robot
Nov 7, 2011
072d966
test login portlet
tdesvenain Nov 8, 2011
c2903fb
Merge pull request #5 from jjmurre/4.1-robot
gotcha Nov 8, 2011
30de382
Merge pull request #6 from lentinj/4.1-robot
gotcha Nov 8, 2011
f860c85
Moved over the Overlay Link to plone.txt
jjmurre Nov 8, 2011
6a33e7b
test calendar portlet add
tdesvenain Nov 8, 2011
554f5b3
test calendar portlet display
tdesvenain Nov 8, 2011
1d5c847
- Renames some keyword to be more explicit
Nov 8, 2011
6947ae9
Merge remote branch 'plone/4.1-robot' into 4.1-robot
Nov 8, 2011
9969996
- Adds a test for the copy of an element in the folder contents
Nov 8, 2011
4645f5e
Merge pull request #8 from mpeeters/4.1-robot
smcmahon Nov 8, 2011
78f68ba
Update selenium testing sources
rpatterson Nov 8, 2011
00fd5f8
Added tests for editing.
jjmurre Nov 8, 2011
b3f1ce6
test delete portlets
tdesvenain Nov 8, 2011
cd31816
remove famous first words
gotcha Nov 8, 2011
0524c6a
tune ignores
gotcha Nov 8, 2011
9e2ee57
- Adds a test for testing the delete button on the folder contents.
Nov 8, 2011
04117d5
Merge remote branch 'plone/4.1-robot' into 4.1-robot
Nov 8, 2011
378f2f7
Fixed the edit tests, made the calendar widget work.
jjmurre Nov 8, 2011
6a0bcfe
Merge pull request #10 from mpeeters/4.1-robot
smcmahon Nov 8, 2011
c38f888
Merge remote branch 'plone/4.1-robot' into 4.1-robot
jjmurre Nov 8, 2011
1dc31a9
Merge pull request #9 from jjmurre/4.1-robot
gotcha Nov 8, 2011
9ec7f18
Merge branch '4.1-robot' of github.com:plone/buildout.coredev into 4.…
tdesvenain Nov 8, 2011
98ee926
Merge pull request #13 from tdesvenain/4.1-robot
gotcha Nov 8, 2011
bb40c63
Added setup and teardown to the livesearch test.
jjmurre Nov 8, 2011
fe18f4b
Merge remote branch 'plone/4.1-robot' into 4.1-robot
jjmurre Nov 8, 2011
d7b77d3
Refactored edit.txt to use proper suite setup/teardown.
jjmurre Nov 8, 2011
e0feb26
Added the right suite setup/teardown to action-menu.
jjmurre Nov 8, 2011
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
15 changes: 15 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
.installed.cfg
.mr.developer.cfg
acceptance-tests/library-settings.txt
bin
develop-eggs
include
lib
parts
src
var
selenium-screenshot*
log.html
report.html
output.xml
selenium_server_log.txt
6 changes: 3 additions & 3 deletions README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ http://pypi.python.org/pypi/mr.developer for more information or run

The most common workflow to get all the latest updates is:

$ svn up
$ git pull
$ bin/develop rb

This will get you the latest coredev configuration, checkout and update all
Expand Down Expand Up @@ -48,8 +48,8 @@ In file plips/plip-1234-widget-frobbing.cfg...::
plone.app.someotherpackage

[sources]
plone.somepackage = svn https://svn.plone.org/.../branches/plip-1234-widget-frobbing
plone.app.someotherpackage = svn https://svn.plone.org/.../branches/plip-1234-widget-frobbing
plone.somepackage = git git://github.com/plone/plone.somepackage.git branch=plip-1234-widget-frobbing
plone.app.someotherpackage = git git://github.com/plone/plone.app.somepackage.git branch=plip-1234-widget-frobbing

[instance]
eggs +=
Expand Down
5 changes: 5 additions & 0 deletions acceptance-tests/__init__.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
*** Settings ***
Resource plone.txt

Suite Setup Start browser and wake Plone up
Suite Teardown Close browser and selenium server
91 changes: 91 additions & 0 deletions acceptance-tests/action-menu.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
*** Settings ***
Resource plone.txt

Suite setup Setup
Suite teardown Remove Document and Folder

Test setup

*** Test cases ***


Content Menu
[Tags] action-menu
Click Link An actionsmenu page
Element Should Not Be Visible css=a#delete
Click Link css=dl#plone-contentmenu-actions dt.actionMenuHeader a don't wait
Element Should Be Visible css=a#delete
Click Link css=dl#plone-contentmenu-actions dt.actionMenuHeader a don't wait
Element Should Not Be Visible css=a#delete

Switching Actions Menu
[Tags] action-menu
Click Link An actionsmenu page
Element Should Not Be Visible css=a#delete
Element Should Not Be Visible css=a#advanced
Click Link css=dl#plone-contentmenu-actions dt.actionMenuHeader a don't wait
Element Should Be Visible css=a#delete
Element Should Not Be Visible css=a#advanced
Mouse Over css=dl#plone-contentmenu-workflow dt.actionMenuHeader a
Element Should Not Be Visible css=a#delete
Element Should Be Visible css=a#advanced
Mouse Over css=dl#plone-contentmenu-actions dt.actionMenuHeader a
Element Should Be Visible css=a#delete
Element Should Not Be Visible css=a#advanced
Click Link css=dl#plone-contentmenu-actions dt.actionMenuHeader a don't wait
Element Should Not Be Visible css=a#delete
Element Should Not Be Visible css=a#advanced

Clicking outside of Actions Menu
[Tags] action-menu
Click Link An actionsmenu page
Element Should Not Be Visible css=a#delete
Element Should Not Be Visible css=a#advanced
Click Link css=dl#plone-contentmenu-actions dt.actionMenuHeader a don't wait
Element Should Be Visible css=a#delete
Element Should Not Be Visible css=a#advanced
Mouse Down css=h1
Wait until keyword succeeds 10s 1s Element Should Not Be Visible css=a#delete
Element Should Not Be Visible css=a#advanced

Publish Document
Click Link An actionsmenu page
Page Should Contain Element css=dl#plone-contentmenu-workflow dt.actionMenuHeader a span.state-private
Click Link Publish
Page Should Contain Element css=dl#plone-contentmenu-workflow dt.actionMenuHeader a span.state-published
Click Link Send back
Page Should Contain Element css=dl#plone-contentmenu-workflow dt.actionMenuHeader a span.state-private

Copy Document
Click Link An actionsmenu page
Click Link Copy don't wait
Wait until keyword succeeds 10s 1s Page Should Contain An actionsmenu page copied.
Click Link An actionsmenu folder
Click Link Paste don't wait
Wait until keyword succeeds 10s 1s Page Should Contain Item(s) pasted.
Click Link Contents
Xpath Should Match X Times //table[@id = 'listing-table']/tbody/tr 1
Click Button Paste
Xpath Should Match X Times //table[@id = 'listing-table']/tbody/tr 2


*** Keywords ***


Setup
Log in admin admin
Go to homepage
Add Page An actionsmenu page
Go to homepage
Create Folder

Create Folder
Click Link css=li#portaltab-index_html a
Click Link Folder
Input Text title An actionsmenu folder
Click Button Save

Remove Document and Folder
Remove Content an-actionsmenu-page
Remove Content an-actionsmenu-folder

65 changes: 65 additions & 0 deletions acceptance-tests/baseOverlays.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
*** Settings ***
Resource plone.txt

Suite setup

Test setup

*** Test cases ***

Base Overlay Tests
Check close on click off form
Check close on click close

Check login by popup admin admin

*** Keywords ***

Check close on click off form
Goto homepage
Click Link Contact don't wait
Overlay should open
Page should contain Contact form
Click Element css=#exposeMask don't wait
Overlay should close on same page
Page should not contain Contact form

Check close on click close
Goto homepage
Click Link Contact and don't wait
Overlay should open
Page should contain Contact form
Click Element css=div.overlay div.close and don't wait
Overlay should close on same page
Page should not contain Contact form

Check login by popup
[Arguments] ${userid} ${password}
Confirm not logged in
Click Element id=personaltools-login and don't wait
Overlay should open
Page should contain Login Name
Page should contain Password
Input text __ac_name ${userid}
Input text __ac_password ${password}
Click Button Log in
Confirm logged in
Page should not contain element css=div.overlay




Overlay should open
Wait until keyword succeeds 1 5 Element Should Be Visible id=exposeMask
Element should be visible css=div.overlay
Element should be visible css=div.overlay div.close

Overlay should close on same page
Wait until keyword succeeds 1 5 Element Should Not Be Visible id=exposeMask
Wait until keyword succeeds 1 5 Page should not contain element css=div.overlay

Confirm not logged in
Page should not contain id=user-name

Confirm logged in
Page should contain element id=user-name
97 changes: 97 additions & 0 deletions acceptance-tests/edit.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
*** Settings ***
Resource plone.txt

Suite setup Setup

Suite teardown Remove Editing Pages

*** Test cases ***

Edit document
[Tags] edit
Click Link css=li#contentview-edit a
Element Should Be Visible css=input#title
Element Should Be Visible css=fieldset#fieldset-default
Element Should Not Be Visible css=textarea#subject_keywords
Element Should Not Be Visible css=fieldset#fieldset-dates
Element Should Not Be Visible css=fieldset#fieldset-categorization

Select categorization tab
[Tags] edit
Click Link css=li#contentview-edit a
Click link css=a#fieldsetlegend-categorization don't wait
Element Should Not Be Visible css=fieldset#fieldset-default
Element Should Be Visible css=textarea#subject_keywords
Element Should Not Be Visible css=fieldset#fieldset-dates
Element Should Be Visible css=fieldset#fieldset-categorization

Select settings tab
[Tags] edit
Click Link css=li#contentview-edit a
Click link css=a#fieldsetlegend-settings don't wait
Element Should Not Be Visible css=fieldset#fieldset-default
Element Should Not Be Visible css=textarea#subject_keywords
Element Should Not Be Visible css=fieldset#fieldset-dates
Element Should Be Visible css=fieldset#fieldset-settings


Test relationship
[Tags] edit
Click Link css=li#portaltab-an-edit-test-page a
Click Link css=li#contentview-edit a
Click link css=a#fieldsetlegend-categorization don't wait
Click Button css=input.addreference don't wait
Wait Until Page Contains Element css=input.insertreference
Click Element css=input.insertreference don't wait
Wait until keyword succeeds 10s 1s Xpath Should Match X Times //ul[@id = 'ref_browser_relatedItems']/descendant::input 1
Click Element css=div.close don't wait
Click Button Save
Xpath Should Match X Times //dl[@id = 'relatedItemBox']/dd 1

Test DateTime widget
[Tags] edit
Click Link css=li#portaltab-an-edit-test-page a
Click Link css=li#contentview-edit a
Click link css=a#fieldsetlegend-dates don't wait
Select From List css=select#edit_form_effectiveDate_0_year 2001
Select From List css=select#edit_form_effectiveDate_0_month January
Select From List css=select#edit_form_effectiveDate_0_day 01
Select From List css=select#edit_form_effectiveDate_0_hour 01
Select From List css=select#edit_form_effectiveDate_0_minute 00
Select From List css=select#edit_form_effectiveDate_0_ampm AM
Click Element css=span#edit_form_effectiveDate_0_popup don't wait
Element Should Be Visible css=div.calendar
Element Text Should Be css=div.calendar thead td.title January, 2001
Mouse Down xpath=//div[@class='calendar']/table/thead/tr[2]/td[4]/div
Mouse Up xpath=//div[@class='calendar']/table/thead/tr[2]/td[4]/div
Wait until keyword succeeds 10s 1s Element Text Should Be css=div.calendar thead td.title February, 2001
Mouse Down xpath=//div[@class='calendar']/table/thead/tr[2]/td[5]/div
Mouse Up xpath=//div[@class='calendar']/table/thead/tr[2]/td[5]/div
Element Text Should Be css=div.calendar thead td.title February, 2002
Click Button Save
Click Link css=span#content-history a.link-overlay don't wait
Wait until keyword succeeds 10s 1s Click Link xpath=//div/a[@class='historyComparePrevious']
Wait Until Page Contains Show differences
Select Radio Button diffstyle code
Page Should Contain 2002/02/01 01:00:00


*** Keywords ***
Setup
Log in admin admin
Create Editing Pages

Create Editing Pages

Go to homepage
Add Page An edit test page
Go to homepage
Add Page A related test page

Remove Editing Pages

Remove Content an-edit-test-page
Remove Content a-related-test-page



82 changes: 82 additions & 0 deletions acceptance-tests/folder_contents.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
*** Settings ***
Resource plone.txt

Suite setup Setup

Suite teardown Remove Pages

*** Test cases ***

Copy Element
Go to homepage
Click Contents In Edit Bar

Select Checkbox css=#cb_test1
Click Button Copy
Page Should Contain 1 item(s) copied.
Click Button Paste
Page Should Contain Element css=#folder-contents-item-copy_of_test1

Delete Element
Go to homepage
Click Contents In Edit Bar

Select Checkbox css=#cb_copy_of_test1
Click Button Delete
Page Should Contain Item(s) deleted.
Page Should Not Contain Element css=#folder-contents-item-copy_of_test1

Reorder Folder Contents
Go to homepage
Click Contents In Edit Bar

# Moves the test2 page above the test1 page
Should be above css=tr#folder-contents-item-test1 css=tr#folder-contents-item-test2
Reorder Element folder-contents-item-test1 folder-contents-item-test2
Should be above css=tr#folder-contents-item-test2 css=tr#folder-contents-item-test1

# Moves the test4 page above the test2 page
Reorder Element folder-contents-item-test4 folder-contents-item-test3
Reorder Element folder-contents-item-test4 folder-contents-item-test1
Reorder Element folder-contents-item-test4 folder-contents-item-test2

# Moves the test3 page above the test2 page
Reorder Element folder-contents-item-test3 folder-contents-item-test1
Reorder Element folder-contents-item-test3 folder-contents-item-test2

# The new order is 4 > 3 > 2 > 1
Should be above css=tr#folder-contents-item-test4 css=tr#folder-contents-item-test3
Should be above css=tr#folder-contents-item-test3 css=tr#folder-contents-item-test2
Should be above css=tr#folder-contents-item-test2 css=tr#folder-contents-item-test1

*** Keywords ***

Setup
Log in admin admin
Create Pages

Create Pages
Go to homepage
Add Page test1
Go to homepage
Add Page test2
Go to homepage
Add Page test3
Go to homepage
Add Page test4
Go to homepage

Remove Pages
Remove Content test1
Remove Content test2
Remove Content test3
Remove Content test4

Reorder Element
[arguments] ${element} ${destination}

Mouse Down css=#${element} td.draggable
Mouse Move css=#${destination} td.draggable
Mouse Up css=#${element} td.draggable
Mouse Out css=#${element} td.draggable

Loading