public function seeVisualChangesAndHideElement(WebGuy $I, $scenario) { $I->amOnPage("/VisualCeption/seeVisualChanges.php"); $I->seeVisualChanges("hideTheIntro", "body", "#intro"); $I->wait(1); // the test has to be called twice for comparison on the travis server $I->amOnPage("/VisualCeption/seeVisualChanges.php"); $I->seeVisualChanges("hideTheIntro", "body", array("#intro")); }
/** * Comparing a div, that change it's size */ public function seeVisualChangesAfterSizeChanges(WebGuy $I, $scenario) { $I->amOnPage("/VisualCeption/notSameSize.php"); $I->seeVisualChanges("getRedDiv", "div"); $I->wait(1); // the test has to be called twice for comparison on the travis server $I->amOnPage("/VisualCeption/notSameSize.php"); $I->seeVisualChanges("getRedDiv", "div"); }
<?php $I = new WebGuy($scenario); $I->amOnPage("/VisualCeption/seeVisualChanges.php"); $I->seeVisualChanges("SimpleBlock", "#theblock"); // the test has to be called twice for comparison on the travis server $I->wait(2); $I->amOnPage("/VisualCeption/seeVisualChanges.php"); $I->seeVisualChanges("SimpleBlock", "#theblock");