private function ComponentAttributeTest::assertSettingsTrayOpen in Layout Builder Component Attributes 1.0.x
Same name and namespace in other branches
- 1.2.x tests/src/FunctionalJavascript/ComponentAttributeTest.php \Drupal\Tests\layout_builder_component_attributes\FunctionalJavascript\ComponentAttributeTest::assertSettingsTrayOpen()
- 1.1.x tests/src/FunctionalJavascript/ComponentAttributeTest.php \Drupal\Tests\layout_builder_component_attributes\FunctionalJavascript\ComponentAttributeTest::assertSettingsTrayOpen()
Helper method to assert the settings tray is open.
1 call to ComponentAttributeTest::assertSettingsTrayOpen()
- ComponentAttributeTest::testManageComponentAttributesForm in tests/
src/ FunctionalJavascript/ ComponentAttributeTest.php - Tests Manage Component Attributes Form.
File
- tests/
src/ FunctionalJavascript/ ComponentAttributeTest.php, line 424
Class
- ComponentAttributeTest
- Class ComponentAttributeTest.
Namespace
Drupal\Tests\layout_builder_component_attributes\FunctionalJavascriptCode
private function assertSettingsTrayOpen() {
$page = $this
->getSession()
->getPage();
// Due to https://www.drupal.org/project/drupal/issues/2897377, validation
// in the settings tray fails silently, so check that the form did not
// submit and close instead of checking for the error message. When the
// validation issue is fixed, this method can be removed and actual
// error messages can be checked.
$element = $page
->find('xpath', '//form[contains(@id, "layout-builder-manage-attributes-form")]');
$this
->assertNotNull($element);
}