class ViewsContext in Lightning Core 8.2
Same name and namespace in other branches
- 8.5 tests/contexts/ViewsContext.behat.inc \Acquia\LightningExtension\Context\ViewsContext
- 8 tests/contexts/ViewsContext.behat.inc \Acquia\LightningExtension\Context\ViewsContext
- 8.3 tests/contexts/ViewsContext.behat.inc \Acquia\LightningExtension\Context\ViewsContext
- 8.4 tests/contexts/ViewsContext.behat.inc \Acquia\LightningExtension\Context\ViewsContext
Contains step definitions for working with views.
@internal This class is part of Lightning's internal testing code. It is not an API and should not be extended. This class will be marked final, and all protected members will be made private, in Lightning Core 3.x.
Hierarchy
- class \Acquia\LightningExtension\Context\ViewsContext extends \Drupal\DrupalExtension\Context\DrupalSubContextBase uses AwaitTrait
Expanded class hierarchy of ViewsContext
File
- tests/
contexts/ ViewsContext.behat.inc, line 15
Namespace
Acquia\LightningExtension\ContextView source
class ViewsContext extends DrupalSubContextBase {
use AwaitTrait;
/**
* Submits exposed Views filters.
*
* @When I apply the exposed filters
*/
public function applyExposedFilters() {
$this
->assertSession()
->elementExists('css', '.views-exposed-form .form-actions input[type = "submit"]')
->press();
$this
->awaitAjax();
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
AwaitTrait:: |
protected | function | Waits for AJAX to finish. | |
AwaitTrait:: |
protected | function | Waits for an element to exist. | |
AwaitTrait:: |
protected | function | Waits for a JavaScript condition to become true. | |
ViewsContext:: |
public | function | Submits exposed Views filters. |