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

Issue #3293696: Fixed the automated functional testing features after the...

Issue #3293696: Fixed the automated functional testing features after the switch of Vartheme BS5 branch from 1.0.x-dev to 2.0.x-dev and replace Bootstrap Barrio theme with Radix theme on Varbase installation
parent 3eba48c1
No related branches found
No related tags found
No related merge requests found
......@@ -73,7 +73,7 @@ default:
- "--headless"
- "--start-maximized"
- "--disable-gpu"
- "--window-size=1600,1200"
- "--window-size=3000,1200"
- "--no-sandbox"
- "--disable-dev-shm-usage"
- "--disable-setuid-sandbox"
......
......@@ -703,7 +703,7 @@ class VarbaseContext extends RawDrupalContext implements SnippetAcceptingContext
* @When I save the section
*/
public function iSaveTheSection() {
$save = $this->getSession()->getPage()->find('xpath', "//button[contains(@value, 'Add section')]");
$save = $this->getSession()->getPage()->find('xpath', "//input[contains(@value, 'Add section')]");
if (is_null($save)) {
throw new \Exception('The "Add section" button was not found or not visible');
}
......
......@@ -25,5 +25,4 @@ So that I will be able to view/add/edit/ or delete content in the site
And I wait 2s
When I press "Log in"
And wait
Then I should see "Email or username field is required."
And I should see "Password field is required"
Then I should see "2 errors have been found"
......@@ -17,7 +17,7 @@ Feature: User Management - Have persistent login options and configurations
Given I am not logged in
When I go to "/user/login"
And I wait
Then I should see "Log in"
Then I should see "Login with"
And I should see "Remember me"
When I fill in "Normal user" for "Email or username"
And I fill in "dD.123123ddd" for "Password"
......
......@@ -84,7 +84,7 @@ So that I can use them after the install or update.
And I wait
Then I should see "Appearance"
And I should see "Vartheme"
And I should see "(Bootstrap 5 - SASS)"
And I should see "Base theme for Varbase standard websites. Based on Bootstrap 5 framework using SASS, and extending Radix theme."
And I should see "Claro"
And I should see "Radix"
And I should see "Vartheme Claro"
......
......@@ -43,7 +43,7 @@ So that they will be disabled and not be able to use the site.
And I wait 2s
And I press "Log in"
And I wait
Then I should see "The username Normal user has not been activated or is blocked."
Then I should see "1 error has been found"
@javascript @local @development @staging @production
Scenario: Check flood control default settings
......
......@@ -35,8 +35,8 @@ So that the "Landing (Layout Builder) page" will show up having the listed secti
And I should not see "Bootstrap 11 Cols"
And I should not see "Bootstrap 12 Cols"
When I scroll to the top of the page
Then I should see "Save layout"
When I press the "Save layout" button
And I wait 2s
And I press the "Save layout" button
And I wait
Then I should see "The layout override has been saved."
And I should see "Test Landing page (Layout Builder)"
......@@ -86,8 +86,7 @@ So that the "Landing (Layout Builder) page" will show up having the listed secti
When I scroll to the top of the page
And I wait 2s
Then I should see "Save layout"
When I press the "Save layout" button
And I press the "Save layout" button
And I wait
Then I should see "The layout override has been saved."
And I should see "Test Landing page (Layout Builder)"
......@@ -156,8 +155,7 @@ So that the "Landing (Layout Builder) page" will show up having the listed secti
When I scroll to the top of the page
And I wait 2s
Then I should see "Save layout"
When I press the "Save layout" button
And I press the "Save layout" button
And I wait
Then I should see "The layout override has been saved."
And I should see "Test Landing page (Layout Builder)"
......@@ -243,8 +241,7 @@ So that the "Landing (Layout Builder) page" will show up having the listed secti
When I scroll to the top of the page
And I wait 2s
Then I should see "Save layout"
When I press the "Save layout" button
And I press the "Save layout" button
And I wait
Then I should see "The layout override has been saved."
And I should see "Test Landing page (Layout Builder)"
......@@ -348,8 +345,7 @@ So that the "Landing (Layout Builder) page" will show up having the listed secti
When I scroll to the top of the page
And I wait 2s
Then I should see "Save layout"
When I press the "Save layout" button
And I press the "Save layout" button
And I wait
Then I should see "The layout override has been saved."
And I should see "Test Landing page (Layout Builder)"
......@@ -488,8 +484,7 @@ So that the "Landing (Layout Builder) page" will show up having the listed secti
When I scroll to the top of the page
And I wait 2s
Then I should see "Save layout"
When I press the "Save layout" button
And I press the "Save layout" button
And I wait
Then I should see "The layout override has been saved."
And I should see "Rich text in 6 cols section, col 1"
......@@ -498,4 +493,3 @@ So that the "Landing (Layout Builder) page" will show up having the listed secti
And I should see "Rich text in 6 cols section, col 4"
And I should see "Rich text in 6 cols section, col 5"
And I should see "Rich text in 6 cols section, col 6"
......@@ -63,8 +63,6 @@ As a site admin, I will create a new landing page, add a section with different
Then I should see "Test Rich text in 2 cols section, col 2"
When I scroll to the top of the page
And I wait 2s
Then I should see "Save layout"
And I press the "Save layout" button
And I wait
And I should see "Test Rich text in 2 cols section, col 1"
......
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