The live preview is activated as default. That means that tests for this are important.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

lsolesen’s picture

Status: Active » Needs work
FileSize
2.82 KB

I cannot quite figure out how to test the live preview good enough. But here is a starting point.

dsnopek’s picture

dsnopek’s picture

Another idea is that some widgets will give validation errors if submitted before all the data is in, for example, the "Links" widget will complain if you put in a title with out an href. You could test that filling in the title will show the validation error without even having to press anything else?

dsnopek’s picture

Here is an updated Behat test which resembles the manual tests I was doing for some of the Panopoly Magic issues.

There still a lot of stuff I'd like to add to it, though.

lsolesen’s picture

Might en worth committing and adding to it lager?

dsnopek’s picture

Yeah, but I'm hoping to extend it later today or tomorrow. After doing all the Panopoly Magic testing, I'm really, really looking forward to automating it. :-)

If for some reason I don't come back to this soon, I'll just commit it and finish it later.

dsnopek’s picture

I got a little bit further today and found a whole bunch more bugs. :-/ So, these tests don't pass.

dsnopek’s picture

Status: Needs work » Needs review
FileSize
10.93 KB

Ok, here is a version of this test that is as complete as I'm going to make it for now.

These bugs will need to be fixed before it will pass:

dsnopek’s picture

dsnopek’s picture

Status: Needs review » Fixed

Finally passing! Committed in c316a43.

Status: Fixed » Closed (fixed)

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

dsnopek’s picture

Component: Code » Tests / Continuous Integration