AutorÃa | Ultima modificación | Ver Log |
@tool @tool_usertours
Feature: Reset a tour
In order to test a tour
As an administrator
I can reset the tour to force it to display again
Background:
Given I log in as "admin"
And I add a new user tour with:
| Name | First tour |
| Description | My first tour |
| Apply to URL match | FRONTPAGE |
| Tour is enabled | 1 |
| Show with backdrop | 1 |
And I add steps to the "First tour" tour:
| targettype | Title | id_content | Content type |
| Display in middle of page | Welcome | Welcome tour. | Manual |
@javascript
Scenario: Reset the tour with mobile view
# Changing the window viewport to mobile so we will have the footer section.
Given I change viewport size to "480x800"
And I am on site homepage
And I should see "Welcome"
And I press "Got it"
And I should not see "Welcome"
When I click on "Reset user tour on this page" "link" in the "#page-footer" "css_element"
Then I should see "Welcome"