Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
varbase
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
varbase
Commits
fafba7eb
Commit
fafba7eb
authored
2 years ago
by
Alaa Jwiehan
Committed by
Rajab Natshah
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#3285082
: Add Automated Testing Coverage For Varbase Tour Module
parent
d5d5ef8d
No related branches found
No related tags found
1 merge request
!17
Issue #3285082: Add Automated Testing Coverage For Varbase Tour Module
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/features/varbase/01-website-base-requirements/01-00-varbase-welcome-tour.feature
+42
-0
42 additions, 0 deletions
...site-base-requirements/01-00-varbase-welcome-tour.feature
with
42 additions
and
0 deletions
tests/features/varbase/01-website-base-requirements/01-00-varbase-welcome-tour.feature
0 → 100644
+
42
−
0
View file @
fafba7eb
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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment