__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

www-data@216.73.216.10: ~ $
@mod @mod_subsection
Feature: Subsections visibility badges
  In order to use subsections
  As an teacher
  I need to see edit visibility from the section card badges when possible.

  Background:
    Given I enable "subsection" "mod" plugin
    And the following "users" exist:
      | username | firstname | lastname | email                |
      | teacher1 | Teacher   | 1        | teacher1@example.com |
    And the following "courses" exist:
      | fullname | shortname | category | numsections | initsections |
      | Course 1 | C1        | 0        | 2           | 1            |
    And the following "activity" exists:
      | activity | subsection  |
      | name     | Subsection1 |
      | course   | C1          |
      | idnumber | subsection1 |
      | section  | 1           |
    And the following "course enrolments" exist:
      | user     | course | role           |
      | teacher1 | C1     | editingteacher |
    And I log in as "teacher1"

  @javascript
  Scenario: Hide/Show subsection badge on the course page
    Given I am on "Course 1" course homepage with editing mode on
    And I hide section "Subsection1"
    And I should see "Hidden from students" in the "Subsection1" "core_courseformat > Section visibility"
    When I click on "Hidden from students" "button" in the "Subsection1" "core_courseformat > Section visibility"
    And I click on "Show on course page" "link" in the "Subsection1" "core_courseformat > Section visibility"
    Then I should not see "Hidden from students" in the "Subsection1" "activity"

  @javascript
  Scenario: Hide/Show subsection badge on the parent section page
    Given I am on "Course 1" course homepage with editing mode on
    And I hide section "Subsection1"
    When I am on the "Course 1 > Section 1" "course > section" page
    And I should see "Hidden from students" in the "Subsection1" "core_courseformat > Section visibility"
    And I click on "Hidden from students" "button" in the "Subsection1" "core_courseformat > Section visibility"
    And I click on "Show on course page" "link" in the "Subsection1" "core_courseformat > Section visibility"
    Then I should not see "Hidden from students" in the "Subsection1" "activity"

  @javascript
  Scenario: Hide/Show subsection badge on the subsection page
    Given I am on "Course 1" course homepage with editing mode on
    And I hide section "Subsection1"
    When I am on the "Course 1 > Subsection1" "course > section" page
    And I should see "Hidden from students" in the "Subsection1" "core_courseformat > Section visibility"
    And I click on "Hidden from students" "button" in the "Subsection1" "core_courseformat > Section visibility"
    And I click on "Show on course page" "link" in the "Subsection1" "core_courseformat > Section visibility"
    Then I should not see "Hidden from students"

  @javascript
  Scenario: Subsection visibility badge is not editable when parent section is hidden
    Given I am on "Course 1" course homepage with editing mode on
    When I hide section "Section 1"
    And I should see "Hidden from students" in the "Section 1" "core_courseformat > Section visibility"
    And I should see "Hidden from students" in the "Subsection1" "activity"
    Then "Hidden from students" "button" should not exist in the "Subsection1" "activity"
    And I am on the "Course 1 > Section 1" "course > section" page
    And I should see "Hidden from students" in the "Subsection1" "activity"
    And "Hidden from students" "button" should not exist in the "Subsection1" "activity"
    And I am on the "Course 1 > Subsection1" "course > section" page
    And I should see "Hidden from students"
    And "Hidden from students" "button" should not exist

Filemanager

Name Type Size Permission Actions
subsection_access_restrictions.feature File 3.01 KB 0777
subsection_actionmenu.feature File 11 KB 0777
subsection_coursepage.feature File 6.02 KB 0777
subsection_disabled_plugin.feature File 8.23 KB 0777
subsection_limit.feature File 1.37 KB 0777
subsection_navigation.feature File 4.32 KB 0777
subsection_no_completion.feature File 2.71 KB 0777
subsection_rename.feature File 2.7 KB 0777
subsection_sectionpage.feature File 2.13 KB 0777
subsection_visibility.feature File 3.12 KB 0777
subsection_visibility_badge.feature File 3.63 KB 0777
Filemanager