1 |
efrain |
1 |
@tool @tool_usertours
|
|
|
2 |
Feature: Prevent yours from being marked as complete
|
|
|
3 |
In order to impart key information
|
|
|
4 |
As an administrator
|
|
|
5 |
I can prevent a user tour from being marked as complete
|
|
|
6 |
|
|
|
7 |
Background:
|
|
|
8 |
Given I log in as "admin"
|
|
|
9 |
And I add a new user tour with:
|
|
|
10 |
| Name | First tour |
|
|
|
11 |
| Description | My first tour |
|
|
|
12 |
| Apply to URL match | FRONTPAGE |
|
|
|
13 |
| Tour is enabled | 1 |
|
|
|
14 |
| Show with backdrop | 1 |
|
|
|
15 |
# 2 = tour::SHOW_TOUR_ON_EACH_PAGE_VISIT
|
|
|
16 |
| Show tour | 2 |
|
|
|
17 |
And I add steps to the "First tour" tour:
|
|
|
18 |
| targettype | Title | id_content | Content type |
|
|
|
19 |
| Display in middle of page | Welcome | Welcome tour. | Manual |
|
|
|
20 |
|
|
|
21 |
@javascript
|
|
|
22 |
Scenario: Ending the tour should not mark it as complete
|
|
|
23 |
# Changing the window viewport to mobile so we will have the footer section.
|
|
|
24 |
Given I am on site homepage
|
|
|
25 |
And I should see "Welcome"
|
|
|
26 |
And I press "Got it"
|
|
|
27 |
And I should not see "Welcome"
|
|
|
28 |
When I am on site homepage
|
|
|
29 |
Then I should see "Welcome"
|