Magento Extensions Rating 2024
EXTENSIONS BY CATEGORY
B2B (Business-To-Business)
Blog
Customer
ERP (Enterprise Resource Planning)
Mega Menu
One Step Checkout
Order
POS (Point Of Sale)
Search
Shopping Cart
Sitemap
SEO
Social
Stock & Inventory Management
EXTENSIONS BY DEVELOPER
aheadWorks
Amasty
Boost My Shop
BSS Commerce
Magestore
MageWorx
Mirasvit
Templates Master
Wyomind
XTENTO
Magento 2 Documentation
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
vendor
magento
magento2-base
dev
tests
functional
tests
app
Magento
Cms
Test
Block
Adminhtml
Block
Edit
BlockForm.php
Go to the documentation of this file.
1
<?php
7
namespace
Magento\Cms\Test\Block\Adminhtml\Block\Edit
;
8
9
use Magento\Mtf\Block\Form;
10
use Magento\Mtf\Client\Locator;
11
use
Magento\Cms\Test\Block\Adminhtml\Wysiwyg\Config
;
12
16
class
BlockForm
extends
Form
17
{
23
protected
$toggleButton
=
"#toggleblock_content"
;
24
30
protected
$contentForm
=
"#page_content"
;
31
37
protected
$customVariableBlock
=
"./ancestor::body//div[div[@id='variables-chooser']]"
;
38
44
protected
$addVariableButton
=
".add-variable"
;
45
51
public
function
clickInsertVariable
()
52
{
53
$addVariableButton
= $this->_rootElement->find($this->addVariableButton);
54
if
(
$addVariableButton
->isVisible()) {
55
$addVariableButton
->click();
56
}
57
}
58
64
public
function
getWysiwygConfig
()
65
{
66
return
$this->blockFactory->create(
67
\
Magento
\Cms\Test\Block\Adminhtml\Wysiwyg\Config::class,
68
[
'element'
=> $this->_rootElement->find($this->customVariableBlock, Locator::SELECTOR_XPATH)]
69
);
70
}
71
77
public
function
toggleEditor
()
78
{
79
$content
= $this->_rootElement->find($this->contentForm, Locator::SELECTOR_CSS);
80
$toggleButton
= $this->_rootElement->find($this->toggleButton, Locator::SELECTOR_CSS);
81
if
(!
$content
->isVisible() &&
$toggleButton
->isVisible()) {
82
$toggleButton
->click();
83
}
84
}
85
}
Magento\Cms\Test\Block\Adminhtml\Block\Edit\BlockForm\toggleEditor
toggleEditor()
Definition:
BlockForm.php:77
Magento\Cms\Test\Block\Adminhtml\Block\Edit\BlockForm\$contentForm
$contentForm
Definition:
BlockForm.php:30
Magento\Cms\Test\Block\Adminhtml\Block\Edit\BlockForm\$customVariableBlock
$customVariableBlock
Definition:
BlockForm.php:37
Magento\Cms\Test\Block\Adminhtml\Block\Edit\BlockForm\getWysiwygConfig
getWysiwygConfig()
Definition:
BlockForm.php:64
Magento\Cms\Test\Block\Adminhtml\Block\Edit\BlockForm\$toggleButton
$toggleButton
Definition:
BlockForm.php:23
Magento\Cms\Test\Block\Adminhtml\Wysiwyg\Config
Definition:
Config.php:15
Magento\Cms\Test\Block\Adminhtml\Block\Edit\BlockForm\$addVariableButton
$addVariableButton
Definition:
BlockForm.php:44
Magento
Magento\Cms\Test\Block\Adminhtml\Block\Edit\BlockForm
Definition:
BlockForm.php:16
$content
$content
Definition:
downloadable_product_with_files_and_sample_url.php:93
Magento\Cms\Test\Block\Adminhtml\Block\Edit\BlockForm\clickInsertVariable
clickInsertVariable()
Definition:
BlockForm.php:51
Magento\Cms\Test\Block\Adminhtml\Block\Edit
Definition:
BlockForm.php:7