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

Behat test failing - report_customsql.feature #112

Open
AdilIqbal95 opened this issue May 6, 2022 · 2 comments
Open

Behat test failing - report_customsql.feature #112

AdilIqbal95 opened this issue May 6, 2022 · 2 comments

Comments

@AdilIqbal95
Copy link

Hi, the test stated above is failing.

Environment details:
MySQL 5.7
PHP 7.4
Moodle latest MOODLE_311_STABLE

Error details:
Scenario: Edit an Ad-hoc database query
And I follow "Edit query 'Test query'": The "(//html/.//a
[./@href][((./@id = "Edit query 'Test query'" or contains(normalize-space(string(.)), "Edit query 'Test query'") or contains(./@title, "Edit query 'Test query'") or contains(./@rel, "Edit query 'Test query'")) or .//[(contains(concat(' ', @Class, ' '), ' icon ') or self::img) and (contains(./@alt, "Edit query 'Test query'") or contains(./@title, "Edit query 'Test query'"))])] | //html/.//
[translate(./@ROLE, 'ABCDEFGHIJKLMNOPQRSTUVWXYZ', 'abcdefghijklmnopqrstuvwxyz') = 'link'][((./@id = "Edit query 'Test query'" or contains(./@value, "Edit query 'Test query'")) or contains(./@title, "Edit query 'Test query'") or contains(normalize-space(string(.)), "Edit query 'Test query'"))])[1]" xpath node is not visible and it should be visible (Behat\Mink\Exception\ExpectationException)

Scenario: Delete an Ad-hoc database query
And I follow "Delete query 'Test query'": The "(//html/.//a
[./@href][((./@id = "Delete query 'Test query'" or contains(normalize-space(string(.)), "Delete query 'Test query'") or contains(./@title, "Delete query 'Test query'") or contains(./@rel, "Delete query 'Test query'")) or .//[(contains(concat(' ', @Class, ' '), ' icon ') or self::img) and (contains(./@alt, "Delete query 'Test query'") or contains(./@title, "Delete query 'Test query'"))])] | //html/.//
[translate(./@ROLE, 'ABCDEFGHIJKLMNOPQRSTUVWXYZ', 'abcdefghijklmnopqrstuvwxyz') = 'link'][((./@id = "Delete query 'Test query'" or contains(./@value, "Delete query 'Test query'")) or contains(./@title, "Delete query 'Test query'") or contains(normalize-space(string(.)), "Delete query 'Test query'"))])[1]" xpath node is not visible and it should be visible (Behat\Mink\Exception\ExpectationException)

@timhunt
Copy link
Member

timhunt commented May 9, 2022

The test pass for us: https://github.com/moodleou/moodle-report_customsql/actions/runs/2005172987. I don't know why they would be failing for you.

@dragos5436
Copy link

These tests are also failing in Moodle 4.0. Additionally, this other test from this plugin is also failing for MOODLE_400_STABLE:

/var/www/html/report/customsql/tests/behat/report_customsql.feature:89
Feature: Ad-hoc database queries report
Scenario: Create an Ad-hoc database query in a custom category

And I follow "Ad-hoc database queries": Link matching locator "Ad-hoc database queries" not found. (Behat\Mink\Exception\ElementNotFoundException)

MySQL 5.7
PHP 7.4
Moodle latest MOODLE_400_STABLE
executed with moodlehq/moodle-docker

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

No branches or pull requests

3 participants