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/elearning_plateforme1/admin/tests/behat/purge_caches.feature
@core @core_admin
Feature: Purge caches
  In order to see changes to cached data
  As a Moodle administrator
  I want manually purge different data and file caches

  Background:
    Given I log in as "admin"
    And I navigate to "Development > Purge caches" in site administration

  Scenario: Purge all caches
    Given I should not see "All caches were purged"
    When I press "Purge all caches"
    Then I should see "All caches were purged"

  Scenario: Purge selected caches
    Given I should not see "Selected caches were purged"
    When I set the field "Themes" to "1"
    And I click on "Purge selected caches" "button" in the "#fitem_id_purgeselectedcaches" "css_element"
    Then I should see "The selected caches were purged"

  Scenario: Purge selected caches without selecting any caches
    Given I should not see "Select one or more caches to purge"
    And I click on "Purge selected caches" "button" in the "#fitem_id_purgeselectedcaches" "css_element"
    Then I should not see "The selected caches were purged"
    And I should see "Select one or more caches to purge"

  Scenario: Redirect back to the original page after following a Purge all caches link
    Given I am on site homepage
    And I should see "Available courses"
    And I should not see "All caches were purged"
    When I follow "Purge all caches"
    Then I should see "All caches were purged"
    And I should see "Available courses"