Skip to content
Snippets Groups Projects
Commit a71bddbf authored by Yorick Reum's avatar Yorick Reum
Browse files

removed unused behat step definition (was only for debugging)

parent babc43c4
Branches
Tags
No related merge requests found
......@@ -328,20 +328,4 @@ class behat_tool_lifecycle extends behat_base {
$this->getSession()->visit($this->locate_path('/admin/tool/lifecycle/view.php'));
}
/**
* This works for Selenium and other real browsers that support screenshots.
*
* @Then /^Save me a screenshot$/
*/
public function save_me_a_screenshot() {
$image_data = $this->getSession()->getDriver()->getScreenshot();
$file_and_path = '/tmp/yr/behat_screenshot.jpg';
file_put_contents($file_and_path, $image_data);
// if (PHP_OS === "Darwin" && PHP_SAPI === "cli") {
// exec('open -a "Preview.app" ' . $file_and_path);
// }
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment