protected function DataCollectorTableTest::assertDeletionOperation in Charts 8.4
Same name and namespace in other branches
- 5.0.x tests/src/FunctionalJavascript/DataCollectorTableTest.php \Drupal\Tests\charts\FunctionalJavascript\DataCollectorTableTest::assertDeletionOperation()
Assert Deletion operation.
Parameters
int $current_count: Current count.
string $locator: The locator.
1 call to DataCollectorTableTest::assertDeletionOperation()
- DataCollectorTableTest::doTableOperation in tests/
src/ FunctionalJavascript/ DataCollectorTableTest.php - Do table operation.
File
- tests/
src/ FunctionalJavascript/ DataCollectorTableTest.php, line 207
Class
- DataCollectorTableTest
- Tests the data collector table element.
Namespace
Drupal\Tests\charts\FunctionalJavascriptCode
protected function assertDeletionOperation(&$current_count, $locator) {
$web_assert = $this
->assertSession();
$web_assert
->assertWaitOnAjaxRequest();
$current_count--;
$page = $this
->getSession()
->getPage();
$targets = $page
->findAll('css', $locator);
$this
->assertTrue(count($targets) === $current_count);
}