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/www/aaelearningb/grade/report/singleview/tests/behat/reportswitching.feature
@core @core_grades @gradereport_singleview @javascript
Feature: Given we land on the index page, select what type of report we wish to view.
  Background:
    Given the following "courses" exist:
      | fullname | shortname | category | groupmode |
      | Course 1 | C1        | 0        | 1         |
    And the following "users" exist:
      | username  | firstname | lastname  | email                 | idnumber  |
      | teacher1  | Teacher   | 1         | teacher1@example.com  | t1        |
      | student1  | Student   | 1         | student1@example.com  | s1        |
    And the following "course enrolments" exist:
      | user      | course | role           |
      | teacher1  | C1     | editingteacher |
      | student1  | C1     | student        |
    And the following "activities" exist:
      | activity | course | idnumber | name                |
      | assign   | C1     | a1       | Test assignment one |

  Scenario: I switch between the two report types within singleview
    Given I am on the "Course 1" "grades > Single view > View" page logged in as "teacher1"
    And I click on "Grade items" "link" in the ".page-toggler" "css_element"
    And "Search users" "field" should not exist
    And I confirm "Test assignment one" exists in the "Search items" search combo box
    When I click on "Users" "link" in the ".page-toggler" "css_element"
    Then "Search users" "field" should exist
    And "Select a grade item" "combobox" should not exist