|
@@ 286-290 (lines=5) @@
|
| 283 |
|
$cssIcon = $treeNode->getParent()->getAttribute("class"); |
| 284 |
|
if ($action == "expand") { |
| 285 |
|
//ensure it is collapsed |
| 286 |
|
if (false === strpos($cssIcon, 'jstree-open')) { |
| 287 |
|
$nodeIcon = $treeNode->getParent()->find('css', '.jstree-icon'); |
| 288 |
|
assertTrue($nodeIcon->isVisible(), "CMS node '$nodeText' not found"); |
| 289 |
|
$nodeIcon->click(); |
| 290 |
|
} |
| 291 |
|
} else { |
| 292 |
|
//ensure it is expanded |
| 293 |
|
if (false === strpos($cssIcon, 'jstree-closed')) { |
|
@@ 291-298 (lines=8) @@
|
| 288 |
|
assertTrue($nodeIcon->isVisible(), "CMS node '$nodeText' not found"); |
| 289 |
|
$nodeIcon->click(); |
| 290 |
|
} |
| 291 |
|
} else { |
| 292 |
|
//ensure it is expanded |
| 293 |
|
if (false === strpos($cssIcon, 'jstree-closed')) { |
| 294 |
|
$nodeIcon = $treeNode->getParent()->find('css', '.jstree-icon'); |
| 295 |
|
assertTrue($nodeIcon->isVisible(), "CMS node '$nodeText' not found"); |
| 296 |
|
$nodeIcon->click(); |
| 297 |
|
} |
| 298 |
|
} |
| 299 |
|
} |
| 300 |
|
|
| 301 |
|
/** |