Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failing behat test - warningbar.feature #298

Open
AdilIqbal95 opened this issue May 13, 2022 · 1 comment
Open

Failing behat test - warningbar.feature #298

AdilIqbal95 opened this issue May 13, 2022 · 1 comment
Labels

Comments

@AdilIqbal95
Copy link

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
Copy link

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)
  1. /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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants