|
@@ 82-94 (lines=13) @@
|
| 79 |
|
$this->getMainContext()->assertElementContains('.message', $message); |
| 80 |
|
} |
| 81 |
|
|
| 82 |
|
protected function getCmsTabsElement() |
| 83 |
|
{ |
| 84 |
|
$this->getSession()->wait( |
| 85 |
|
5000, |
| 86 |
|
"window.jQuery && window.jQuery('.cms-content-header-tabs').size() > 0" |
| 87 |
|
); |
| 88 |
|
|
| 89 |
|
$page = $this->getSession()->getPage(); |
| 90 |
|
$cms_content_header_tabs = $page->find('css', '.cms-content-header-tabs'); |
| 91 |
|
assertNotNull($cms_content_header_tabs, 'CMS tabs not found'); |
| 92 |
|
|
| 93 |
|
return $cms_content_header_tabs; |
| 94 |
|
} |
| 95 |
|
|
| 96 |
|
protected function getCmsContentToolbarElement() |
| 97 |
|
{ |
|
@@ 96-109 (lines=14) @@
|
| 93 |
|
return $cms_content_header_tabs; |
| 94 |
|
} |
| 95 |
|
|
| 96 |
|
protected function getCmsContentToolbarElement() |
| 97 |
|
{ |
| 98 |
|
$this->getSession()->wait( |
| 99 |
|
5000, |
| 100 |
|
"window.jQuery && window.jQuery('.cms-content-toolbar').size() > 0 " |
| 101 |
|
. "&& window.jQuery('.cms-content-toolbar').children().size() > 0" |
| 102 |
|
); |
| 103 |
|
|
| 104 |
|
$page = $this->getSession()->getPage(); |
| 105 |
|
$cms_content_toolbar_element = $page->find('css', '.cms-content-toolbar'); |
| 106 |
|
assertNotNull($cms_content_toolbar_element, 'CMS content toolbar not found'); |
| 107 |
|
|
| 108 |
|
return $cms_content_toolbar_element; |
| 109 |
|
} |
| 110 |
|
|
| 111 |
|
protected function getCmsTreeElement() |
| 112 |
|
{ |
|
@@ 111-123 (lines=13) @@
|
| 108 |
|
return $cms_content_toolbar_element; |
| 109 |
|
} |
| 110 |
|
|
| 111 |
|
protected function getCmsTreeElement() |
| 112 |
|
{ |
| 113 |
|
$this->getSession()->wait( |
| 114 |
|
5000, |
| 115 |
|
"window.jQuery && window.jQuery('.cms-tree').size() > 0" |
| 116 |
|
); |
| 117 |
|
|
| 118 |
|
$page = $this->getSession()->getPage(); |
| 119 |
|
$cms_tree_element = $page->find('css', '.cms-tree'); |
| 120 |
|
assertNotNull($cms_tree_element, 'CMS tree not found'); |
| 121 |
|
|
| 122 |
|
return $cms_tree_element; |
| 123 |
|
} |
| 124 |
|
|
| 125 |
|
/** |
| 126 |
|
* @Given /^I should see a "([^"]*)" button in CMS Content Toolbar$/ |