Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
assertOffCanvasBlockFormIsValid example
$contextual_link
=
$this
->
assertSession
(
)
->
waitForElement
(
'css', "
$contextual_link_container
.contextual-links a"
)
;
$this
->
assertNotEmpty
(
$contextual_link
)
;
// When page first loads Edit Mode is not triggered until first contextual // link is added.
$this
->
assertElementVisibleAfterWait
(
'css', '.dialog-off-canvas-main-canvas.js-settings-tray-edit-mode'
)
;
// Ensure that all other Ajax activity is completed.
$this
->
assertSession
(
)
->
assertWaitOnAjaxRequest
(
)
;
$block
=
$this
->
getSession
(
)
->
getPage
(
)
->
find
(
'css',
$block_selector
)
;
$block
->
mouseOver
(
)
;
$block
->
click
(
)
;
$this
->
waitForOffCanvasToOpen
(
)
;
$this
->
assertOffCanvasBlockFormIsValid
(
)
;
}
/** * Enables edit mode by pressing edit button in the toolbar. */
protected
function
enableEditMode
(
)
{
$this
->
pressToolbarEditButton
(
)
;
$this
->
assertEditModeEnabled
(
)
;
}
/** * Disables edit mode by pressing edit button in the toolbar. */