HEX
Server: Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/8.0.30
System: Linux multiplicar 3.10.0-1160.102.1.el7.x86_64 #1 SMP Tue Oct 17 15:42:21 UTC 2023 x86_64
User: root (0)
PHP: 8.0.30
Disabled: NONE
Upload Files
File: /var/www/html/demo.sumarbc.com.py/enrol/tests/behat/enrol_user.feature
@enrol
Feature: User can be enrolled into a course
  In order to let them participate in course activities
  As an admin
  I must be able to enrol users

  Background:
    Given the following "users" exist:
      | username | firstname | lastname | email                |
      | student1 | Studie    | One      | student1@example.com |
    And the following "courses" exist:
      | fullname   | shortname |
      | Course 001 | C001      |
    And I log in as "admin"
    And I am on "Course 001" course homepage

  Scenario: User can be enrolled without javascript
    When I enrol "Studie One" user as "Student"
    And I am on the "Course 001" "Enrolled users" page
    Then I should see "Studie One"

  @javascript
  Scenario: User can be enrolled with javascript enrol element
    When I enrol "Studie One" user as "Student"
    And I am on the "Course 001" "Enrolled users" page
    Then I should see "Studie One"