function TestMultiWidthLayoutsTest::assertWidthClassApplied

Same name in other branches
  1. 8.9.x core/modules/layout_builder/tests/src/FunctionalJavascript/TestMultiWidthLayoutsTest.php \Drupal\Tests\layout_builder\FunctionalJavascript\TestMultiWidthLayoutsTest::assertWidthClassApplied()
  2. 10 core/modules/layout_builder/tests/src/FunctionalJavascript/TestMultiWidthLayoutsTest.php \Drupal\Tests\layout_builder\FunctionalJavascript\TestMultiWidthLayoutsTest::assertWidthClassApplied()
  3. 11.x 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.

@internal

Parameters

string $width_class: The width class.

1 call to TestMultiWidthLayoutsTest::assertWidthClassApplied()
TestMultiWidthLayoutsTest::testWidthChange in core/modules/layout_builder/tests/src/FunctionalJavascript/TestMultiWidthLayoutsTest.php
Tests changing the columns widths of a multi-width section.

File

core/modules/layout_builder/tests/src/FunctionalJavascript/TestMultiWidthLayoutsTest.php, line 114

Class

TestMultiWidthLayoutsTest
Test the multi-width layout plugins.

Namespace

Drupal\Tests\layout_builder\FunctionalJavascript

Code

protected function assertWidthClassApplied(string $width_class) : void {
    $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.