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/theme/boost/tests/behat/welcome_to_moodle.feature
@javascript @theme_boost
Feature: Welcome message on boost
  To be welcome in moodle
  As a User
  I need to see a welcome message on the first page

  Scenario: Login and be welcomed on the homepage
    Given the following config values are set as admin:
      | defaulthomepage | 0 |
    When I log in as "admin"
    Then I should not see "Acceptance test site" in the "page-header" "region"
    And I should see "Welcome, Admin!" in the "page-header" "region"
    And I reload the page
    And I should not see "Welcome, Admin!" in the "page-header" "region"
    And I should see "Acceptance test site" in the "page-header" "region"

  Scenario: Login and be welcomed on the dashboard
    Given the following config values are set as admin:
      | defaulthomepage | 1 |
    When I log in as "admin"
    Then I should not see "Dashboard" in the "page-header" "region"
    And I should see "Welcome, Admin!" in the "page-header" "region"
    And I reload the page
    And I should not see "Welcome, Admin!" in the "page-header" "region"
    And I should see "Dashboard" in the "page-header" "region"

  Scenario: Login and be welcomed on the my courses page
    Given the following config values are set as admin:
      | defaulthomepage | 3 |
    When I log in as "admin"
    Then I should not see "My courses" in the "page-header" "region"
    And I should see "Welcome, Admin!" in the "page-header" "region"
    And I reload the page
    And I should not see "Welcome, Admin!" in the "page-header" "region"
    And I should see "My courses" in the "page-header" "region"