Skip to content

Commit d6f86ee

Browse files
author
Nils Langner
committed
Change element name in interation tests
1 parent a4b971b commit d6f86ee

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

module/VisualCeption.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ private function getDeviation ($identifier, $elementID)
5050

5151
$compareResult = $this->compare($identifier);
5252

53-
unlink($this->getScreenshotPath($identifier));
53+
#unlink($this->getScreenshotPath($identifier));
5454

5555
$deviation = round($compareResult[1] * 100, 2);
5656
$this->debug("The deviation between the images is ". $deviation . " percent");
@@ -220,7 +220,7 @@ private function createScreenshot ($identifier, array $coords)
220220
$screenShotImage->cropImage($coords['width'], $coords['height'], $coords['offset_x'], $coords['offset_y']);
221221
$screenShotImage->writeImage($elementPath);
222222

223-
unlink($screenshotPath);
223+
#unlink($screenshotPath);
224224

225225
return $elementPath;
226226
}
@@ -268,6 +268,8 @@ private function compare ($identifier)
268268
*/
269269
private function compareImages ($image1, $image2)
270270
{
271+
$this->debug("Trying to compare $image1 with $image2");
272+
271273
$imagick1 = new \Imagick($image1);
272274
$imagick2 = new \Imagick($image2);
273275

test/integration/tests/acceptance/TimeComparisonCest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@ public function seeVisualChanges (WebGuy $I, $scenario)
1919
public function dontSeeVisualChanges (WebGuy $I, $scenario)
2020
{
2121
$I->amOnPage("/VisualCeption/dontSeeVisualChanges.php");
22-
$I->dontSeeVisualChanges("block", "#theblock");
22+
$I->dontSeeVisualChanges("block2", "#theblock");
2323

2424
// the test has to be called twice for comparison on the travis server
2525
$I->amOnPage("/VisualCeption/dontSeeVisualChanges.php");
26-
$I->dontSeeVisualChanges("block", "#theblock");
26+
$I->dontSeeVisualChanges("block2", "#theblock");
2727
}
2828

2929
}

0 commit comments

Comments
 (0)