Skip to content
Snippets Groups Projects
Commit a1f94743 authored by Rajab Natshah's avatar Rajab Natshah
Browse files

Issue #3251531: Start a 9.1.x branch for Varbase and Varbase Project to support Bootstrap 5

parent 7d55ea12
No related branches found
No related tags found
3 merge requests!24Issue #3301451: Composer is fixed to docroot folder Primary tabs View(active tab),!10Issue #3269421: Add exception messages for VLB automated testing step definitions,!9Issue #3266504: Update Automated Functional Testing Readme File
......@@ -1522,6 +1522,63 @@ JS;
$this->getSession()->executeScript("javascript:window.scrollBy(0,-350)");
}
/**
* Scroll down in the current status of the page and pass a value.
*
* Varbase Context #varbase.
*
* Example #1: When I scrolldown 800
* Example #2: And I scrolldown 2000
*
* @When I scrolldown (?P<value>\d+)
*/
public function iScrolldownWithValue($value) {
$this->getSession()->executeScript("javascript:window.scrollBy(200," . $value . ")");
}
/**
* Scroll up in the current status of the page and pass a value.
*
* Varbase Context #varbase.
*
* Example #1: When I scrollup 1000
*
* @When I scrollup (?P<value>\d+)
*/
public function iScrollupWithValue($value) {
$this->getSession()->executeScript("javascript:window.scrollBy(0,-" . $value . ")");
}
/**
* Scroll to top
*
* Varbase Context #varbase.
*
* Example #1: When I scroll to top
* Example #2: When I scroll to the top
* Example #3: When I scroll to the top of the page
*
* @When I scroll to (?:|the )top(?:| of the page)
*/
public function iScrollToTop() {
$this->getSession()->executeScript("javascript:window.scrollBy(0,0)");
}
/**
* Scroll to bottom
*
* Varbase Context #varbase.
*
* Example #1: When I scroll to bottom
* Example #2: When I scroll to the bottom
* Example #3: When I scroll to the bottom of the page
*
* @When I scroll to (?:|the )bottom(?:| of the page)
*/
public function iScrollToBottom() {
$this->getSession()->executeScript("javascript:window.scrollBy(0,document.body.scrollHeight)");
}
/**
* Check if the Image media browser opened.
*
......
......@@ -18,8 +18,10 @@ So that I can reset my password for the account
And I wait
Then I should see "Username or email address"
When I fill in "not.existing.email@vardot.com" for "Username"
And I scroll to bottom
And I press the "edit-submit" button
And I wait
And I scroll to bottom
And I fill in "not.existing.email@vardot.com" for "Username"
And I wait 8 seconds
And I press the "edit-submit" button
......
......@@ -16,7 +16,9 @@ So that the "Landing (Layout Builder) page" will show up having the listed secti
And I wait
Then I should see "Landing page (Layout Builder) Full Width - No Background Color - Text only has been created"
And I should see "This layout builder tool allows you to configure the layout of the main content area."
When I click "Add section"
When I scroll to bottom
Then I should see "Add section at end of layout"
When I click "Add section at end of layout"
And I wait for AJAX to finish
Then I should see "Choose a layout for this section"
And I should see "Bootstrap 1 Col"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment