protected function IntegrationTestBase::assertNotVisible in Search API Autocomplete 8
Asserts that the specified element exists but is not visible.
Parameters
string $selector_type: The element selector type (CSS, XPath).
string|array $selector: The element selector. Note: the first found element is used.
Throws
\Behat\Mink\Exception\ElementNotFoundException Thrown if the element doesn't exist.
1 call to IntegrationTestBase::assertNotVisible()
- IntegrationTest::configureSearch in tests/
src/ FunctionalJavascript/ IntegrationTest.php - Configures the test search via the UI.
File
- tests/
src/ FunctionalJavascript/ IntegrationTestBase.php, line 160
Class
- IntegrationTestBase
- Provides a base class for integration tests of this module.
Namespace
Drupal\Tests\search_api_autocomplete\FunctionalJavascriptCode
protected function assertNotVisible($selector_type, $selector) {
$element = $this
->assertSession()
->elementExists($selector_type, $selector);
$this
->assertFalse($element
->isVisible(), "Element shouldn't be visible but is.");
}