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_nice,proc_terminate,pfsockopen,dl,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname,leak,apache_child_terminate
Upload Files
File: /home/enamadmin/public_html/aaelearningb/files/tests/behat/license_help_modal.feature
@core @core_files
Feature: View licence links
  In order to get select the applicable licence when uploading a file
  As a user
  I need to be able to navigate to a page containing licence terms from the file manager

  Background:
    Given the following "blocks" exist:
      | blockname     | contextlevel | reference | pagetypepattern | defaultregion |
      | private_files | System       | 1         | my-index        | side-post     |

  @javascript
  Scenario: Uploading a file displays licence list modal
    Given I log in as "admin"
    And I follow "Manage private files..."
    And I follow "Add..."
    And I follow "Upload a file"
    And I click on "Help with Choose licence" "icon" in the "File picker" "dialogue"
    Then I should see "Follow these links for further information on the available licence options:"

  @javascript @_file_upload
  Scenario: Altering a file should display licence list modal
    Given I log in as "admin"
    And I follow "Manage private files..."
    And I upload "lib/tests/fixtures/empty.txt" file to "Files" filemanager
    And I press "Save changes"
    And I follow "Manage private files..."
    And I click on "empty.txt" "link" in the "Manage private files" "dialogue"
    And I click on "Help with Choose licence" "icon"
    Then I should see "Follow these links for further information on the available licence options:"

  @javascript @_file_upload
  Scenario: Recent files should display licence list modal
    Given I log in as "admin"
    And I follow "Manage private files..."
    And I upload "lib/tests/fixtures/empty.txt" file to "Files" filemanager
    And I press "Save changes"
    And I follow "Manage private files..."
    And I follow "Add..."
    And I click on "Recent files" "link" in the "File picker" "dialogue"
    And I click on "empty.txt" "link" in the "File picker" "dialogue"
    And I click on "Help with Choose licence" "icon" in the ".fp-setlicense" "css_element"
    Then I should see "Follow these links for further information on the available licence options:"

  @javascript @_file_upload
  Scenario: Private files should display licence list modal
    Given I log in as "admin"
    And I follow "Manage private files..."
    And I upload "lib/tests/fixtures/empty.txt" file to "Files" filemanager
    And I press "Save changes"
    And I follow "Manage private files..."
    And I follow "Add..."
    And I click on "Private files" "link" in the "File picker" "dialogue"
    And I click on "empty.txt" "link" in the "File picker" "dialogue"
    And I click on "Help with Choose licence" "icon" in the ".fp-setlicense" "css_element"
    Then I should see "Follow these links for further information on the available licence options:"