function 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\FunctionalJavascript

Code

protected function assertWidthClassApplied($width_class) {
  $this->assertNotEmpty($this->assertSession()
    ->waitForElementVisible('css', ".{$width_class}[data-layout-delta=\"0\"]"));
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.