1 |
efrain |
1 |
@tool @tool_usertours
|
|
|
2 |
Feature: Duplicate a user tour
|
|
|
3 |
As an administrator
|
|
|
4 |
I want to duplicate a user tour
|
|
|
5 |
|
|
|
6 |
@javascript
|
|
|
7 |
Scenario: Tour can be duplicated
|
|
|
8 |
Given the following "users" exist:
|
|
|
9 |
| username | firstname | lastname | email |
|
|
|
10 |
| student1 | Student | 1 | student1@example.com |
|
|
|
11 |
And I log in as "admin"
|
|
|
12 |
And I add a new user tour with:
|
|
|
13 |
| Name | First tour |
|
|
|
14 |
| Description | My first tour |
|
|
|
15 |
| Apply to URL match | /my/% |
|
|
|
16 |
| Tour is enabled | 0 |
|
|
|
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 to your personal learning space. We'd like to give you a quick tour to show you some of the areas you may find helpful | Manual |
|
|
|
20 |
And I open the User tour settings page
|
|
|
21 |
And I should see "1" occurrences of "First tour" in the "admintable" "table"
|
|
|
22 |
And I click on "Duplicate" "link" in the "My first tour" "table_row"
|
|
|
23 |
And I open the User tour settings page
|
|
|
24 |
Then I should see "1" occurrences of "First tour (copy)" in the "admintable" "table"
|