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
Fixed changing the order in a list tile by drag and drop. #881
Conversation
This fails on Travis only on 5.1, with this error:
So somewhere buildout seems to get a requirement with an empty package name: |
@idgserpro Are you using collective.cover latest versions in production in projects? In this test only the Plone 5.1 build is failing with an obscure version dependency isse where something ',<5.0.0'. We can look into this, but need cover at the moment for a Plone 4.3 site. |
This might fix Travis on Plone 5.1. See #881 (comment)
32bd385
to
ee3b379
Compare
I have rebased on the branch from PR #882 and force pushed. That should fix Travis. |
Changing the order in a list tile on the Compose tab would seemingly work at first, but nothing was saved. The wrong element was taken as base (the whole html document instead of the tile). And iterating over the children to get their uuids was done wrong, trying to take a uuid attribute from always that same wrong element.
ee3b379
to
427ab19
Compare
Rebased on master and force pushed for the Travis/QA fixes. |
@mauritsvanrees I saw in the robot tests that checking the ordering of the items is done without reloading the page. See: collective.cover/src/collective/cover/tests/test_list_tile.robot Lines 88 to 110 in 980a9bd
Perhaps you can reload the page before checking. This could be done in another PR, to confirm that the tests will fail, without fix. Then you can rebase here, to verify that the test will pass. |
I see that on Plone 5 the robot tests are completely skipped, which is already the case since 2016. When I try them, it quickly fails with And with Plone 4.3 I cannot run robot tests, because the remote webdrivers I have available are not compatible with robot framework and friends. So I cannot really edit robot tests. |
@idgserpro @mauritsvanrees So to summarise: the robot tests on Plone 4 can no longer work because the selenium webdrivers are no longer functionning and on Plone 5 the robot tests were always skipped already.... I have verified the correct working of the list tile fix from Maurits on Plone 4. @idgserpro: This was why I asked previously in this thread if you are supporting collective.cover in production installations at the moment. Are these Plone 4 or also Plone 5.0/5.1? Then we could verify the working of the list/ and related tiles manually and merge this fix. I have the impression that collective.cover is just like Plone 4 end of life. We still have to support it on Plone 4 for 1 - 1.5 years but then our maintenance interestes will also be over. We don't have the resources at the moment to fix the robot test infrastructure just to merge this pull request. Otherwise we'll just fork and keep our own maintenance branch |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
RF tests are running and passing on Travis as you can see here: https://travis-ci.org/github/collective/collective.cover/jobs/727634332 IIRC, there was a problem on supporting both Plone 4 and 5 with RF tests at the same time. I think the testing matrix can be now simplified and at some point the RF tests must be migrated to support Plone 5.2 only. collective.cover has been Plone 5.1 compatible since December last year. |
For the record: the problem I have with robot tests on Plone 4.3 is not specific to |
@mauritsvanrees I managed to get test robots to work on Plone 4.3, with newer versions of Firefox. See: |
Changing the order in a list tile on the Compose tab would seemingly work at first, but nothing was saved.
The wrong element was taken as base (the whole html document instead of the tile).
And iterating over the children to get their uuids was done wrong, trying to take a uuid attribute from always that same wrong element.
Tested in Plone 4.3 and 5.1.