sonata-project/sandbox — pull request #31 by Taluu (2012-04-02 16:48:53+00:00)
Title: Fixes the behat tests on the page

Hi,

When Behat tries to go to _admin/sonata/page/page/create?uniqid=4f155592a220e_, it is somehow redirected to _admin/sonata/page/page/create?siteId=1_ (or whatever the siteId is by default). The form is then unrecognizable by Behat, and it can't find any fields to fill in the form, because of a different and random hash.

I added an arbitrary siteId to the URL, keeping the good hash to fill in the forms ;but the thing is, it is kind of arbitrary... But it should do the trick if we're only considering a "test environnement" loaded only once by the `php load_data.php`.... ?