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_open,popen,apache_child_terminate
Upload Files
File: /home/enamadmin/public_html/aaelearningb/mod/chat/tests/behat/chat_calendar_events.feature
@mod @mod_chat
Feature: Chat calendar entries
  In order to notify students of upcoming chat sessons
  As a teacher
  I need to create a chat activity and publish the event times

  Background:
    Given the following "users" exist:
      | username | firstname | lastname | email |
      | teacher1 | Tina | Teacher1 | teacher1@example.com |
      | student1 | Sam | Student1 | student1@example.com |
    And the following "courses" exist:
      | fullname | shortname | category |
      | Course 1 | C1 | 0 |
    And the following "course enrolments" exist:
      | user | course | role |
      | teacher1 | C1 | editingteacher |
      | student1 | C1 | student |
    And I enable "chat" "mod" plugin

  Scenario Outline: Create a chat activity with repeated chat times set
    # Create an activity with repeated chat times
    Given the following "activities" exist:
      | activity | course | name   | schedule      |
      | chat     | C1     | Chat 1 | <scheduleset> |
    And I log in as "teacher1"
    # Confirm Chat activity visibility based on schedule
    When I am viewing calendar in "upcoming" view
    Then I <chatvisibility> see "Chat 1"

    Examples:
      | scheduleset | chatvisibility |
      | 0           | should not     |
      | 1           | should         |
      | 2           | should         |
      | 3           | should         |