You are here

protected function TestMultiWidthLayoutsTest::assertWidthClassApplied in Drupal 9

Same name and namespace in other branches
  1. 8 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
Tests changing the columns widths of a multi-width section.

File

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

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\"]"));
}