WebformElementVerticalTabsTest.php in Webform 6.x
File
tests/src/Functional/Element/WebformElementVerticalTabsTest.php
View source
<?php
namespace Drupal\Tests\webform\Functional\Element;
class WebformElementVerticalTabsTest extends WebformElementBrowserTestBase {
protected static $testWebforms = [
'test_element_vertical_tabs',
];
public function testVerticalTabs() {
$this
->drupalGet('/webform/test_element_vertical_tabs');
$this
->assertRaw('<div data-drupal-selector="edit-vertical-tabs" data-vertical-tabs-panes>');
$this
->assertRaw('<input class="vertical-tabs__active-tab" data-drupal-selector="edit-vertical-tabs-active-tab" type="hidden" name="vertical_tabs__active_tab" value="" />');
$this
->assertRaw('<div data-drupal-selector="edit-vertical-tabs-advanced" aria-describedby="edit-vertical-tabs-advanced--description" data-vertical-tabs-panes>');
$this
->assertRaw('<input class="vertical-tabs__active-tab" data-drupal-selector="edit-vertical-tabs-advanced-active-tab" type="hidden" name="vertical_tabs_advanced__active_tab" value="edit-vertical-tabs-advanced-details-03" />');
}
}