Skip to content
Snippets Groups Projects
Commit fafba7eb authored by Alaa Jwiehan's avatar Alaa Jwiehan Committed by Rajab Natshah
Browse files

Issue #3285082: Add Automated Testing Coverage For Varbase Tour Module

parent d5d5ef8d
No related branches found
No related tags found
1 merge request!17Issue #3285082: Add Automated Testing Coverage For Varbase Tour Module
Feature: The welcome message should be displayed on first visit to the site
The welcome message is made possible by having Varbase Tour module
@javascript @local @development @staging @production
Scenario: Check if welcome message is enabled
Given I am a logged in user with the "webmaster" user
And I go to "admin/config/varbase/settings"
Then I should see "Varbase general settings"
And I should see "Allow site to show welcome message"
And I check the box "Allow site to show welcome message"
And I press "Save configuration"
And I wait
Then I should see "The configuration options have been saved."
@javascript @local @development @staging @production
Scenario: Check if welcome message and tour are displayed
Given I am a logged in user with the "webmaster" user
And I go to "?welcome"
Then I should see "Welcome to "
And I should see " Get started "
When I click "Get started"
And I wait 2s
Then I should see "Tour Switch"
When I click "Next" in the "button" element with the "class" attribute set to "button button--primary shepherd-button "
Then I should see "Editing Your Homepage Layout"
When I click "Next" in the "button" element with the "class" attribute set to "button button--primary shepherd-button "
Then I should see "Start Configuring Your Site Structure"
When I click "Next" in the "button" element with the "class" attribute set to "button button--primary shepherd-button "
Then I should see "Define Your Site Settings"
When I click "Next" in the "button" element with the "class" attribute set to "button button--primary shepherd-button "
Then I should see "Site Content"
And I should see "End tour"
And I press the "End tour" button
Then I should see "Welcome to Varbase"
@javascript @local @development @staging @production
Scenario: Check if welcome message is disabled after closing it
Given I am a logged in user with the "webmaster" user
And I go to "admin/config/varbase/settings"
Then I should see "Varbase general settings"
And I should see "Allow site to show welcome message"
And the "Allow site to show welcome message" checkbox is unchecked
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