|
@@ 139-145 (lines=7) @@
|
| 136 |
|
/** |
| 137 |
|
* @When /^I should see "([^"]*)" in the tree$/ |
| 138 |
|
*/ |
| 139 |
|
public function stepIShouldSeeInCmsTree($text) |
| 140 |
|
{ |
| 141 |
|
// Wait until visible |
| 142 |
|
$cmsTreeElement = $this->getCmsTreeElement(); |
| 143 |
|
$element = $cmsTreeElement->find('named', array('content', "'$text'")); |
| 144 |
|
assertNotNull($element, sprintf('%s not found', $text)); |
| 145 |
|
} |
| 146 |
|
|
| 147 |
|
/** |
| 148 |
|
* @When /^I should not see "([^"]*)" in the tree$/ |
|
@@ 150-156 (lines=7) @@
|
| 147 |
|
/** |
| 148 |
|
* @When /^I should not see "([^"]*)" in the tree$/ |
| 149 |
|
*/ |
| 150 |
|
public function stepIShouldNotSeeInCmsTree($text) |
| 151 |
|
{ |
| 152 |
|
// Wait until not visible |
| 153 |
|
$cmsTreeElement = $this->getCmsTreeElement(); |
| 154 |
|
$element = $cmsTreeElement->find('named', array('content', "'$text'")); |
| 155 |
|
assertNull($element, sprintf('%s found', $text)); |
| 156 |
|
} |
| 157 |
|
|
| 158 |
|
/** |
| 159 |
|
* Applies a specific action to an element |