mardi 28 juin 2016

Testing json: html form with \Codeception\PhpBrowser

I want to get json response with two fields

{status: 'mystatus', html: '<form>...</form>'}

How can I load html from the php array ($content['html']) to PhpBrowser and use methods such as $I->submitForm(...) or $I->seeText(...) from PhpBrowserTester(Cept)?

Here I load json from my server (helper method):

$I->amOnPage('/data/add-language-dialog/');
$content = $I->getJsonContent();

Aucun commentaire:

Enregistrer un commentaire