public function QuickEditContext::assertDisabled in Lightning Workflow 8.2
Same name and namespace in other branches
- 8 tests/contexts/QuickEditContext.behat.inc \Acquia\LightningExtension\Context\QuickEditContext::assertDisabled()
Asserts that Quick Edit is not enabled for any entities on the page.
@Then Quick Edit should be disabled
Throws
\Behat\Mink\Exception\ExpectationException if Quick Edit is enabled on the current page.
File
- tests/
contexts/ QuickEditContext.behat.inc, line 39
Class
- QuickEditContext
- Contains step definitions for interacting with Quick Edit.
Namespace
Acquia\LightningExtension\ContextCode
public function assertDisabled() {
$session = $this
->getSession();
$victory = $session
->wait(10000, 'Drupal.quickedit.collections.entities.length === 0');
if (empty($victory)) {
throw new ExpectationException('Expected Quick Edit to be disabled, but it is not.', $session
->getDriver());
}
}