Beispiel #1
0
 public function testScreenshot()
 {
     $this->module->amOnPage('/');
     @unlink(\Codeception\Configuration::outputDir() . 'testshot.png');
     $testName = "debugTest";
     $this->module->makeScreenshot($testName);
     $this->assertFileExists(\Codeception\Configuration::outputDir() . 'debug/' . $testName . '.png');
     @unlink(\Codeception\Configuration::outputDir() . 'debug/' . $testName . '.png');
     $this->module->_saveScreenshot(\Codeception\Configuration::outputDir() . 'testshot.png');
     $this->assertFileExists(\Codeception\Configuration::outputDir() . 'testshot.png');
     @unlink(\Codeception\Configuration::outputDir() . 'testshot.png');
 }