Skip to content
Snippets Groups Projects
Commit 340f637f authored by Demian Katz's avatar Demian Katz
Browse files

Fixed broken test to account for export to new tab.

parent a71c5497
No related merge requests found
...@@ -579,6 +579,9 @@ class CartTest extends \VuFindTest\Unit\MinkTestCase ...@@ -579,6 +579,9 @@ class CartTest extends \VuFindTest\Unit\MinkTestCase
$submit = $this->findCss($page, '.modal-body input[name=submit]'); $submit = $this->findCss($page, '.modal-body input[name=submit]');
$submit->click(); $submit->click();
$this->snooze(); $this->snooze();
$windows = $this->getMinkSession()->getWindowNames();
$this->assertEquals(2, count($windows));
$this->getMinkSession()->switchToWindow($windows[1]);
$this->assertEquals( $this->assertEquals(
'https://www.google.com/', $this->getMinkSession()->getCurrentUrl() 'https://www.google.com/', $this->getMinkSession()->getCurrentUrl()
); );
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment