Support from Acquia helps fund testing for Drupal Acquia logo

Comments

lsolesen’s picture

Status: Active » Needs work
FileSize
1.73 KB

Discovered problems when writing the test. It does not seem possible to save the checkboxes with a different value after they have been saved once.

However, I cannot get into Settings using Behat to get the test correct.

dsnopek’s picture

Status: Needs work » Needs review
FileSize
3.11 KB

Thanks! It's really great all the bugs you are finding. :-) I got this one to run using the same technique as in #2149175: Write Behat tests for Panopoly "content list" widget, however, it's still failing because of the bug.

I'm going to hold off on committing this until we have a fix for the bug, which I've made a seperate issue for #2153277: Can't change checkboxes in "Submenu" widget after it's been created.

lsolesen’s picture

FileSize
3.19 KB

Patch in #2 do not apply anymore. Rerolled against latest dev.

lsolesen’s picture

Status: Needs review » Needs work

The test is actually not correct, as it would not be expected to have any submenu shown in the given circumstances. That is a case of #2177417: Widget output when editing with IPE can be different than when viewing the page normally (easily reproducable with "Submenu" widget)

lsolesen’s picture

Please see most recent work in the submenu branch on github.

dsnopek’s picture

Component: Code » Tests / Continuous Integration
dsnopek’s picture

For future reference, here is the 'submenu' branch on @lsolesen's github:

https://github.com/lsolesen/panopoly/tree/submenu

dsnopek’s picture

FileSize
6.11 KB

Here is the most recent version of this patch, extracted from @lsolesen's branch on GitHub. This will need to be updated to the new way that we do our tests, ie:

  • Re-rolled to apply against in panopoly_test
  • Updated to use landing pages rather than Content Page

If anyone wants to take this on, just take a look at the other widget tests and mimick what they're doing.

dsnopek’s picture

Version: 7.x-1.0-rc5 » 7.x-1.x-dev
FileSize
4.92 KB

Here is a new patch that is re-rolled against panopoly_test and only slightly updated for the new way of doing things. It still needs the to be updated to not be dependent on the demo data - it should create any panopoly_test_page nodes that it needs to complete the tests.

dsnopek’s picture

Status: Needs work » Needs review
FileSize
3.74 KB

Here is a patch that actually passes! I had to remove the test that exposes #2177417: Widget output when editing with IPE can be different than when viewing the page normally (easily reproducable with "Submenu" widget) because we don't yet have a solution to that problem. But you can look at earlier patches to see what it did. I'll commit this momentarily!

  • dsnopek committed e452f59 on 7.x-1.x
    Update Panopoly Test for Issue #2149171 by dsnopek, lsolesen: Write...
dsnopek’s picture

Status: Needs review » Fixed

Committed!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.