diff --git a/module/VuFind/tests/integration-tests/src/VuFindTest/Mink/CartTest.php b/module/VuFind/tests/integration-tests/src/VuFindTest/Mink/CartTest.php index bd4f17be8376c6a73b954cf9733c4e526c357a57..b764b190676bd39e14eefa1052bc257b10b17459 100644 --- a/module/VuFind/tests/integration-tests/src/VuFindTest/Mink/CartTest.php +++ b/module/VuFind/tests/integration-tests/src/VuFindTest/Mink/CartTest.php @@ -579,6 +579,9 @@ class CartTest extends \VuFindTest\Unit\MinkTestCase $submit = $this->findCss($page, '.modal-body input[name=submit]'); $submit->click(); $this->snooze(); + $windows = $this->getMinkSession()->getWindowNames(); + $this->assertEquals(2, count($windows)); + $this->getMinkSession()->switchToWindow($windows[1]); $this->assertEquals( 'https://www.google.com/', $this->getMinkSession()->getCurrentUrl() );