@@ -680,9 +680,9 @@ class VarbaseContext extends RawDrupalContext implements SnippetAcceptingContext
* Varbase Context #varbase
*
* Example #1: When I select the "Edge to Edge" container type
* Example #2: And I select the "Boxed" container type
* Example #2: And I select the "Boxed" container type
*
* @Then I select the :arg1 container type
* @When I select the :arg1 container type
*/
publicfunctioniSelectTheContainerType($name){
$element=$this->getSession()->getPage()->find('xpath',"//label[contains(.,'$name') and contains(@for, 'edit-layout-settings-ui-tab-content-layout-container-type')]");
...
...
@@ -695,9 +695,9 @@ class VarbaseContext extends RawDrupalContext implements SnippetAcceptingContext
* Varbase Context #varbase
*
* Example #1: When I select the "Tiny" container width
* Example #2: And I select the "Narrow" container width
* Example #2: And I select the "Narrow" container width
*
* @Then I select the :arg1 container width
* @When I select the :arg1 container width
*/
publicfunctioniSelectTheContainerWidth($width){
$element=$this->getSession()->getPage()->find('xpath',"//label[contains(.,'$width') and contains(@for, 'edit-layout-settings-ui-tab-content-layout-container-width')]");
...
...
@@ -709,11 +709,11 @@ class VarbaseContext extends RawDrupalContext implements SnippetAcceptingContext
*
* Varbase Context #varbase
*
* Example #1: Then I select the "md" "33% 67%" breakpoint
* Example #2: Then I select the "xs" "75% 25%" breakpoint
* Example #1: When I select the "md" "33% 67%" breakpoint
* Example #2: And I select the "xs" "75% 25%" breakpoint
*
*
* @Then I select the :arg1 :arg2 breakpoint
* @When I select the :arg1 :arg2 breakpoint
*/
publicfunctioniSelectTheBreakpoint($size,$point){
$element=$this->getSession()->getPage()->find('xpath',"//*[contains(@class,'$size') and contains(.,'$point')]");
...
...
@@ -725,9 +725,10 @@ class VarbaseContext extends RawDrupalContext implements SnippetAcceptingContext
$bg_color=$this->getSession()->getPage()->find('xpath',"//label[contains(., '$bg_color') and contains(@for, 'edit-layout-settings-ui-tab-content-appearance-background-background-color')]");
...
...
@@ -797,9 +800,10 @@ class VarbaseContext extends RawDrupalContext implements SnippetAcceptingContext
*
* Varbase Contaxt #varbase
*
* Example: And I uncheck the Edge to Edge Background
* Example #1: When I uncheck the Edge to Edge Background
* Example #2: And I uncheck the Edge to Edge Background
@@ -811,10 +815,10 @@ class VarbaseContext extends RawDrupalContext implements SnippetAcceptingContext
*
* Varbase Context #varbase
*
* Example #1: Then I select the "Dark" text color
* Example #2: And I select the "White" text color
* Example #1: When I select the "Dark" text color
* Example #2: And I select the "White" text color
*
* @Then I select the :arg1 text color
* @When I select the :arg1 text color
*/
publicfunctioniSelectTheTextColor($color){
$text_color=$this->getSession()->getPage()->find('xpath',"//label[contains(., '$color') and contains(@for, 'edit-layout-settings-ui-tab-content-appearance-typography-text-color-text')]");
...
...
@@ -826,10 +830,10 @@ class VarbaseContext extends RawDrupalContext implements SnippetAcceptingContext
*
* Varbase Context #varbase
*
* Example #1: Then I set the alignment to "End"
* Example #2: And I set the alignment to "Start"
* Example #1: When I set the alignment to "End"
* Example #2: And I set the alignment to "Start"
*
* @Then I set the alignment to :arg1
* @When I set the alignment to :arg1
*/
publicfunctioniSetTheAlignmentTo($align){
$alignment=$this->getSession()->getPage()->find('xpath',"//label[contains(., '$align') and contains(@for, 'edit-layout-settings-ui-tab-content-appearance-typography-text-alignment')]");
...
...
@@ -841,10 +845,10 @@ class VarbaseContext extends RawDrupalContext implements SnippetAcceptingContext
*
* Varbase Context #varbase
*
* Example #1: Then I set the Horizontal alignment to "Align center"
* Example #2: And I set the horizontal alignment to "Align start"
* Example #1: When I set the horizontal alignment to "Align center"
* Example #2: And I set the horizontal alignment to "Align start"
$horizontal_alignment=$this->getSession()->getPage()->find('xpath',"//label[contains(., '$h_align') and contains(@for, 'edit-layout-settings-ui-tab-content-appearance-alignment-horizontal-alignment-justify-content')]");
...
...
@@ -857,10 +861,10 @@ class VarbaseContext extends RawDrupalContext implements SnippetAcceptingContext
*
* Varbase Context #varbase
*
* Example #1: Then I set the Vertical alignment to "Align bottom"
* Example #2: And I set the Vertical alignment to "Align middle"
* Example #1: When I set the vertical alignment to "Align bottom"
* Example #2: And I set the vertical alignment to "Align middle"
$vertical_alignment=$this->getSession()->getPage()->find('xpath',"//label[contains(., '$v_align') and contains(@for, 'edit-layout-settings-ui-tab-content-appearance-alignment-vertical-alignment-align-items')]");
...
...
@@ -872,10 +876,10 @@ class VarbaseContext extends RawDrupalContext implements SnippetAcceptingContext
*
* Varbase Context #varbase
*
* Example #1: Then I select the "Flip Right" animation
* Example #2: When I select the "Zoom Out" animation
* Example #1: When I select the "Flip Right" animation
* Example #2: And I select the "Zoom Out" animation
*
* @Then I select the :arg1 animation
* @When I select the :arg1 animation
*/
publicfunctioniSelectTheAnimation($anime){
$animation=$this->getSession()->getPage()->find('xpath',"//label[contains(., '$anime') and contains(@for, 'edit-layout-settings-ui-tab-content-appearance-animation-scroll-effects')]");