You are here

protected function InlineEntityFormTestBase::waitForRowRemovedByTitle in Inline Entity Form 8

Wait for an IEF table row to disappear.

Parameters

string $title: The title of the row for which to wait.

1 call to InlineEntityFormTestBase::waitForRowRemovedByTitle()
ComplexWidgetTest::testEntityEditingAndRemoving in tests/src/FunctionalJavascript/ComplexWidgetTest.php
Tests if editing and removing entities work.

File

tests/src/FunctionalJavascript/InlineEntityFormTestBase.php, line 217

Class

InlineEntityFormTestBase
Base Class for Inline Entity Form Tests.

Namespace

Drupal\Tests\inline_entity_form\FunctionalJavascript

Code

protected function waitForRowRemovedByTitle(string $title) {
  $this
    ->assertNotEmpty($this
    ->assertSession()
    ->waitForElementRemoved('xpath', '//td[@class="inline-entity-form-node-label" and text()="' . $title . '"]'));
}