diff --git a/module/VuFind/tests/integration-tests/src/VuFindTest/Mink/AdvancedSearchTest.php b/module/VuFind/tests/integration-tests/src/VuFindTest/Mink/AdvancedSearchTest.php index f55f42e23bba2da9d7dbe0e28362c5980c97d0fe..b513ab3e54ee5f984713915ebf5ae1d3e57dc2eb 100644 --- a/module/VuFind/tests/integration-tests/src/VuFindTest/Mink/AdvancedSearchTest.php +++ b/module/VuFind/tests/integration-tests/src/VuFindTest/Mink/AdvancedSearchTest.php @@ -38,6 +38,34 @@ namespace VuFindTest\Mink; */ class AdvancedSearchTest extends \VuFindTest\Unit\MinkTestCase { + /** + * Test persistent + * + * @return void + */ + public function testPersistent() + { + // Go to the advanced search page + $session = $this->getMinkSession(); + $path = '/Search/Advanced'; + $session->visit($this->getVuFindUrl() . $path); + $page = $session->getPage(); + // Submit empty search form + $this->findCss($page, '[type=submit]')->press(); + // Test edit search + $links = $page->findAll('css', '.adv_search_links a'); + $isAdv = false; + foreach ($links as $link) { + if ($this->checkVisibility($link) + && $link->getHtml() == 'Edit this Advanced Search' + ) { + $isAdv = true; + break; + } + } + $this->assertTrue($isAdv); + } + /** * Test that the home page is available. *