diff --git a/tests/Custom/SessionResetTest.php b/tests/Custom/SessionResetTest.php deleted file mode 100644 index a055cb02..00000000 --- a/tests/Custom/SessionResetTest.php +++ /dev/null @@ -1,62 +0,0 @@ -getSession(); - $session->visit($this->pathTo('/window.html')); - - if (null !== $initialWindowName) { - $session->executeScript('window.name = "'.$initialWindowName.'";'); - } - - $page = $session->getPage(); - - $page->clickLink('Popup #1'); - $page->clickLink('Popup #2'); - - $expectedInitialWindowName = $session->evaluateScript('window.name'); - - $windowNames = $session->getWindowNames(); - $this->assertCount(3, $windowNames); - - $session->reset(); - - $windowNames = $session->getWindowNames(); - $this->assertCount(1, $windowNames); - - $actualInitialWindowName = $session->evaluateScript('window.name'); - $this->assertEquals($expectedInitialWindowName, $actualInitialWindowName); - } - - public static function initialWindowNameDataProvider(): array - { - return array( - 'no name' => array(null), - 'non-empty name' => array('initial-window'), - ); - } - - /** - * @after - */ - protected function resetSessions() - { - $session = $this->getSession(); - - // Stop the session instead of resetting, because resetting behavior is being tested. - if ($session->isStarted()) { - $session->stop(); - } - - parent::resetSessions(); - } -}