Skip to content

Commit

Permalink
Dev: Don't use date in tests screenshots
Browse files Browse the repository at this point in the history
  • Loading branch information
olleharstedt committed May 24, 2018
1 parent ba13820 commit fcc3f9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/TestHelper.php
Expand Up @@ -327,7 +327,7 @@ public function takeScreenshot($webDriver, $name)
$tempFolder = \Yii::app()->getBasePath() .'/../tests/tmp';
$folder = $tempFolder.'/screenshots/';
$screenshot = $webDriver->takeScreenshot();
$filename = $folder . $name . '_' . date('Ymd_His') . '.png';
$filename = $folder . $name . '.png';
$result = file_put_contents($filename, $screenshot);
$this->assertTrue($result > 0, 'Could not write screenshot to file ' . $filename);
}
Expand Down

0 comments on commit fcc3f9b

Please sign in to comment.