public function ModerationContext::assertQuickEditDisabled in Lightning Workflow 8.3
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/ ModerationContext.behat.inc, line 211
Class
- ModerationContext
- Contains miscellaneous step definitions for testing moderation UIs.
Namespace
Acquia\LightningExtension\ContextCode
public function assertQuickEditDisabled() {
$session = $this
->getSession();
$is_disabled = $session
->wait(10000, 'Drupal.quickedit.collections.entities.length === 0');
if (empty($is_disabled)) {
throw new ExpectationException('Expected Quick Edit to be disabled, but it is not.', $session
->getDriver());
}
}