ecampbell / moodle-qtype_multichoiceset

All or Nothing Moodle question type originally created by Adriane Boyd
6 stars 20 forks source link

Failed Behat tests - import.feature #31

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: import All-or-Nothing Multiple Choice question When I navigate to "Question bank > Import" in current page administration: Link "Import" 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/question/type/multichoiceset/tests/behat/export.feature:26 Feature: Test exporting All-or-Nothing Multiple Choice questions Scenario: Export a All-or-Nothing Multiple Choice question

    And I set the field "id_format_xml" to "1": Field matching locator "id_format_xml" not found. (Behat\Mink\Exception\ElementNotFoundException)
  2. /var/www/html/question/type/multichoiceset/tests/behat/preview.feature:28 Feature: Preview a All-or-Nothing Multiple Choice question Scenario: Preview a Multiple choice question and submit a wrong response.

    When I click on "Preview" "link" in the "All-or-nothing-001" "table_row": The "((//html/.//tr[contains(normalize-space(.), 'All-or-nothing-001') and not(.//tr[contains(normalize-space(.), 'All-or-nothing-001')])])[1]/.//a
    [./@href][((./@id = 'Preview' or contains(normalize-space(string(.)), 'Preview') or contains(./@title, 'Preview') or contains(./@rel, 'Preview')) or .//*[(contains(concat(' ', @class, ' '), ' icon ') or self::img) and (contains(./@alt, 'Preview') or contains(./@title, 'Preview'))])] | (//html/.//tr[contains(normalize-space(.), 'All-or-nothing-001') and not(.//tr[contains(normalize-space(.), 'All-or-nothing-001')])])[1]/.//*
    [translate(./@role, 'ABCDEFGHIJKLMNOPQRSTUVWXYZ', 'abcdefghijklmnopqrstuvwxyz') = 'link'][((./@id = 'Preview' or contains(./@value, 'Preview')) or contains(./@title, 'Preview') or contains(normalize-space(string(.)), 'Preview'))])[1]" xpath node is not visible and it should be visible (Behat\Mink\Exception\ExpectationException)
  3. /var/www/html/question/type/multichoiceset/tests/behat/preview.feature:42 Feature: Preview a All-or-Nothing Multiple Choice question Scenario: Preview a Multiple choice question and submit a correct response.

    When I click on "Preview" "link" in the "All-or-nothing-001" "table_row": The "((//html/.//tr[contains(normalize-space(.), 'All-or-nothing-001') and not(.//tr[contains(normalize-space(.), 'All-or-nothing-001')])])[1]/.//a
    [./@href][((./@id = 'Preview' or contains(normalize-space(string(.)), 'Preview') or contains(./@title, 'Preview') or contains(./@rel, 'Preview')) or .//*[(contains(concat(' ', @class, ' '), ' icon ') or self::img) and (contains(./@alt, 'Preview') or contains(./@title, 'Preview'))])] | (//html/.//tr[contains(normalize-space(.), 'All-or-nothing-001') and not(.//tr[contains(normalize-space(.), 'All-or-nothing-001')])])[1]/.//*
    [translate(./@role, 'ABCDEFGHIJKLMNOPQRSTUVWXYZ', 'abcdefghijklmnopqrstuvwxyz') = 'link'][((./@id = 'Preview' or contains(./@value, 'Preview')) or contains(./@title, 'Preview') or contains(normalize-space(string(.)), 'Preview'))])[1]" xpath node is not visible and it should be visible (Behat\Mink\Exception\ExpectationException)