Skip to content
Open
Changes from 1 commit
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
92e6b01
php 8 support
May 27, 2021
494aa07
php 8 support
May 28, 2021
507616d
V10AGILE-6561: Fix dependency for onAfterSuiteTested hook [run ci]
Nov 25, 2021
8f35802
V10AGILE-6561: Reformat code [run ci]
Nov 25, 2021
2d7839d
Put screenshot into raport as base64
daniel-meyer Dec 5, 2022
de8436c
Put screenshot into raport as base64
daniel-meyer Dec 5, 2022
489f3c3
Put screenshot into raport as base64
daniel-meyer Dec 5, 2022
daa34f2
Update index.html.twig
daniel-meyer Dec 7, 2022
990b0dc
Update ScreenshotContext.php
daniel-meyer Dec 7, 2022
92c0b38
Update Scenario.php
daniel-meyer Dec 7, 2022
67a938e
Update Scenario.php
daniel-meyer Dec 7, 2022
42eb900
Update ScreenshotContext.php
daniel-meyer Dec 7, 2022
41a8262
Update BehatHTMLFormatter.php
daniel-meyer Dec 7, 2022
764b36d
Update BehatHTMLFormatter.php
daniel-meyer Dec 8, 2022
1efe7f4
Update ScreenshotContext.php
daniel-meyer Dec 8, 2022
52acb03
Update BehatHTMLFormatter.php
daniel-meyer Dec 8, 2022
c4187c8
Update ScreenshotContext.php
daniel-meyer Dec 8, 2022
283707a
Update BehatHTMLFormatter.php
daniel-meyer Dec 9, 2022
bf96345
Update ScreenshotContext.php
daniel-meyer Dec 9, 2022
cb17b89
Update ScreenshotContext.php
daniel-meyer Dec 9, 2022
32a0af8
Update BehatHTMLFormatter.php
daniel-meyer Dec 9, 2022
da230f6
Update ScreenshotContext.php
daniel-meyer Dec 9, 2022
1058322
Update ScreenshotContext.php
daniel-meyer Dec 10, 2022
c938c18
Update Scenario.php
daniel-meyer Dec 10, 2022
0351e9d
Update BehatHTMLFormatter.php
daniel-meyer Dec 10, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update ScreenshotContext.php
  • Loading branch information
daniel-meyer authored Dec 7, 2022
commit 42eb900b3c5fec6f0e20e01992b317d798897a48
4 changes: 3 additions & 1 deletion src/Context/ScreenshotContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ public function afterStep($scope)
mkdir($this->screenshotDir.'/'.$featureFolder);
}

$this->saveScreenshot($fileName, $this->screenshotDir.'/'.$featureFolder.'/');
$this->saveScreenshot($fileName, $this->screenshotDir.'/'.$featureFolder);
$file = $this->screenshotDir.'/'.$featureFolder.'/'.$fileName;
echo file_exists($file) ? "Saved screen: $file" : "Cannot save screen: $file";
}
}