HEX
Server: LiteSpeed
System: Linux server.zepintelhosting.com 4.18.0 #1 SMP Mon Sep 30 15:36:27 MSK 2024 x86_64
User: enamadmin (1026)
PHP: 8.2.30
Disabled: exec,system,passthru,shell_exec,proc_open,popen,apache_child_terminate
Upload Files
File: /home/enamadmin/www/elearning_plateforme1/admin/tool/usertours/tests/behat/duplicate_tour.feature
@tool @tool_usertours
Feature: Duplicate a user tour
  As an administrator
  I want to duplicate a user tour

  @javascript
  Scenario: Tour can be duplicated
    Given the following "users" exist:
      | username | firstname | lastname | email |
      | student1 | Student | 1 | student1@example.com |
    And I log in as "admin"
    And I add a new user tour with:
      | Name                | First tour |
      | Description         | My first tour |
      | Apply to URL match  | /my/% |
      | Tour is enabled     | 0 |
    And I add steps to the "First tour" tour:
      | targettype                | Title   | id_content                                                                                                                     | Content type   |
      | 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         |
    And I open the User tour settings page
    And I should see "1" occurrences of "First tour" in the "admintable" "table"
    And I click on "Duplicate" "link" in the "My first tour" "table_row"
    And I open the User tour settings page
    Then I should see "1" occurrences of "First tour (copy)" in the "admintable" "table"