Tests the #group property.
function testGroupElements() {
$this
->drupalGet('form-test/group-details');
$elements = $this
->xpath('//div[@class="details-wrapper"]//div[@class="details-wrapper"]//label');
$this
->assertTrue(count($elements) == 1);
$this
->drupalGet('form-test/group-container');
$elements = $this
->xpath('//div[@id="edit-container"]//div[@class="details-wrapper"]//label');
$this
->assertTrue(count($elements) == 1);
$this
->drupalGet('form-test/group-fieldset');
$elements = $this
->xpath('//fieldset[@id="edit-fieldset"]//div[@id="edit-meta"]//label');
$this
->assertTrue(count($elements) == 1);
$this
->drupalGet('form-test/group-vertical-tabs');
$elements = $this
->xpath('//div[@class="vertical-tabs-panes"]//details[@id="edit-meta"]//label');
$this
->assertTrue(count($elements) == 1);
$elements = $this
->xpath('//div[@class="vertical-tabs-panes"]//details[@id="edit-meta-2"]//label');
$this
->assertTrue(count($elements) == 1);
}