Commit dba0602f authored by Kevin Paxman's avatar Kevin Paxman
Browse files

ISTWCMS-4866: make tests for expand/collapse match changes

parent 731acab7
......@@ -2239,13 +2239,13 @@ class UwWcmsBasicTest extends BrowserTestBase {
$this->assertSession()->pageTextContains('Administrative label');
$this->assertSession()->pageTextContains('Section ID');
$this->assertSession()
->pageTextContains('Make Section Expand/Collapsible');
$this->assertSession()
->pageTextContains('Title of Expand/Collapse Group');
$this->assertSession()->pageTextContains('Heading Selector');
->pageTextContains('Make section expand/collapsible');
$this->assertSession()->pageTextContains('Grouping');
$this->assertSession()
->pageTextContains('Group name');
$this->assertSession()->pageTextContains('other');
$this->assertSession()->pageTextContains('Create new grouping');
$this->assertSession()->pageTextContains('Header text');
$this->assertSession()->pageTextContains('Heading level');
$this->assertSession()->pageTextContains('Extra-wide contained width');
// No column widths on one column.
if ($section['name'] != 'One column') {
......@@ -2279,15 +2279,15 @@ class UwWcmsBasicTest extends BrowserTestBase {
// Test step 3E: Check if page contains the correct link wordage.
$this->assertSession()->statusCodeEquals(200);
$msg = $this->t('Expand/Collapse Grouping of');
$msg = $this->t('Expand/collapse group');
// Text is based on the label and group.
$labelCheck = [
'label' => "Configure " . $section['admin-label'],
'group' => "Configure [$msg: " . $section['group'] . "]",
'group' => "Configure Section [$msg: " . $section['group'] . "]",
'label-group' => "Configure " . $section['admin-label'] . " [$msg: " . $section['group'] . "]",
];
if (!empty($section['admin-label']) && !empty($section['group'])) {
// Configure {ADMIN LABEL} [Expand/Collapse Grouping of: {GROUP}].
// Configure {ADMIN LABEL} [Expand/collapse group: {GROUP}].
$this->assertSession()->linkExists($labelCheck['label-group']);
}
elseif (!empty($section['admin-label']) && empty($section['group'])) {
......@@ -2295,7 +2295,7 @@ class UwWcmsBasicTest extends BrowserTestBase {
$this->assertSession()->linkExists($labelCheck['label']);
}
elseif (empty($section['admin-label']) && !empty($section['group'])) {
// Configure [Expand/Collapse Grouping of: {GROUP}].
// Configure Section [Expand/collapse group: {GROUP}].
$this->assertSession()->linkExists($labelCheck['group']);
}
// Step 3F: Assert the class and custom data property.
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment