Skip to content

Commit 390b7fb

Browse files
authored
Console (#5450)
* Setting up interactive shell * Updated docs for interactive shell, minor improvements * added HTML snapshot some tests * Removed pause execution test * renamed Shell trait to pause, updated documentation
1 parent 0bc8328 commit 390b7fb

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tests/unit/Codeception/Module/PhpBrowserTest.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,15 @@ public function testLinksWithNonLatin()
7070
$this->module->click('Ссылочка');
7171
}
7272

73+
public function testHtmlSnapshot()
74+
{
75+
$this->module->amOnPage('/');
76+
$testName="debugPhpBrowser";
77+
$this->module->makeHtmlSnapshot($testName);
78+
$this->assertFileExists(\Codeception\Configuration::outputDir().'debug/'.$testName.'.html');
79+
@unlink(\Codeception\Configuration::outputDir().'debug/'.$testName.'.html');
80+
}
81+
7382
/**
7483
* @see https://github.com/Codeception/Codeception/issues/4509
7584
*/

0 commit comments

Comments
 (0)