protected function TestMultiWidthLayoutsTest::assertWidthClassApplied in Drupal 8
Same name and namespace in other branches
- 9 core/modules/layout_builder/tests/src/FunctionalJavascript/TestMultiWidthLayoutsTest.php \Drupal\Tests\layout_builder\FunctionalJavascript\TestMultiWidthLayoutsTest::assertWidthClassApplied()
Asserts the width class is applied to the first section.
Parameters
string $width_class: The width class.
1 call to TestMultiWidthLayoutsTest::assertWidthClassApplied()
- TestMultiWidthLayoutsTest::testWidthChange in core/
modules/ layout_builder/ tests/ src/ FunctionalJavascript/ TestMultiWidthLayoutsTest.php - Test changing the columns widths of a multi-width section.
File
- core/
modules/ layout_builder/ tests/ src/ FunctionalJavascript/ TestMultiWidthLayoutsTest.php, line 119
Class
- TestMultiWidthLayoutsTest
- Test the multi-width layout plugins.
Namespace
Drupal\Tests\layout_builder\FunctionalJavascriptCode
protected function assertWidthClassApplied($width_class) {
$this
->assertNotEmpty($this
->assertSession()
->waitForElementVisible('css', ".{$width_class}[data-layout-delta=\"0\"]"));
}