catalyst / moodle-auth_outage

Planned, graduated user and admin friendly moodle outages
https://moodle.org/plugins/auth_outage
17 stars 32 forks source link

Failing behat test - warningbar.feature #298

Open AdilIqbal95 opened 2 years ago

AdilIqbal95 commented 2 years ago

Hi, the test stated above is failing.

Environment details: MySQL 5.7 PHP 7.4 Moodle latest MOODLE_400_STABLE

Error details: Scenario: This is how an outage should happen without maintenance mode and manual finish Then I should see "We are back online!" in the warning bar: Xpath matching locator "/descendant-or-self::[contains(., 'We are back online!')][count(descendant::[contains(., 'We are back online!')]) = 0]" not found. (Behat\Mink\Exception\ElementNotFoundException)

dragos5436 commented 2 years ago

Additionally, these other tests from this plugin are also failing for MOODLE_400_STABLE:

  1. /var/www/html/auth/outage/tests/behat/disable_in_layout.feature:17 Feature: Disable warning bar in embedded layout Scenario: Disable warning bar in embedded h5p in book activity

    And I follow "PageName1": The "(//html/.//a
    [./@href][((./@id = 'PageName1' or contains(normalize-space(string(.)), 'PageName1') or contains(./@title, 'PageName1') or contains(./@rel, 'PageName1')) or .//*[(contains(concat(' ', @class, ' '), ' icon ') or self::img) and (contains(./@alt, 'PageName1') or contains(./@title, 'PageName1'))])] | //html/.//*
    [translate(./@role, 'ABCDEFGHIJKLMNOPQRSTUVWXYZ', 'abcdefghijklmnopqrstuvwxyz') = 'link'][((./@id = 'PageName1' or contains(./@value, 'PageName1')) or contains(./@title, 'PageName1') or contains(normalize-space(string(.)), 'PageName1'))])[1]" xpath node is not visible and it should be visible (Behat\Mink\Exception\ExpectationException)
  2. /var/www/html/auth/outage/tests/behat/ipblock.feature:14 Feature: IP Blocker Scenario: Default IP Whitelist Settings

    Then I should see "Allowed IP list": "Allowed IP list" text was not found in the page (Behat\Mink\Exception\ExpectationException)