Skip to content

Commit

Permalink
use tmp instead of _output
Browse files Browse the repository at this point in the history
  • Loading branch information
TonisOrmisson committed Nov 6, 2017
1 parent e88b2c9 commit 1ac7553
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/TestBaseClassView.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ protected function findViewTag($name, $view)
$element = null;

$screenshot = $this->webDriver->takeScreenshot();
file_put_contents(__DIR__ . '/_output/'.$name.'.png', $screenshot);
file_put_contents(__DIR__ . '/tmp/'.$name.'.png', $screenshot);
try {
$element = $this->webDriver->findElement(WebDriverBy::id('action::'.$name));
} catch (\Exception $e) {
Expand Down
4 changes: 2 additions & 2 deletions tests/questions/DateTimeValidationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ public function testBasic()
$submit = $this->webDriver->findElement(WebDriverBy::id('ls-button-submit'));
} catch (NoSuchElementException $ex) {
$screenshot = $this->webDriver->takeScreenshot();
file_put_contents(__DIR__ . '/../_output/tmp.png', $screenshot);
file_put_contents(__DIR__ . '/../tmp/tmp.png', $screenshot);
$this->assertFalse(
true,
'Screenshot in ' . __DIR__ . '/tmp.png' . PHP_EOL . $ex->getMessage()
Expand All @@ -105,7 +105,7 @@ public function testBasic()
$this->assertNotEmpty($div);
} catch (NoSuchElementException $ex) {
$screenshot = $this->webDriver->takeScreenshot();
file_put_contents(__DIR__ . '/../_output/tmp.png', $screenshot);
file_put_contents(__DIR__ . '/../tmp/tmp.png', $screenshot);
$this->assertFalse(
true,
'Screenshot in ' . __DIR__ . '/tmp.png' . PHP_EOL . $ex->getMessage()
Expand Down
File renamed without changes.

0 comments on commit 1ac7553

Please sign in to comment.