Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-48682

Some behat failures consistently happening

    XMLWordPrintable

    Details

    • Sprint:
      Team Beards Sprint 4
    • Issue size:
      Medium

      Description

      While testing MDL-37072, I ended consistently getting this 3 failures both under 28_STABLE and master (have not tested 27_STABLE).

      vendor/bin/behat --config /Users/stronk7/Sites/moodle_data_gittesting/MOODLE_28_STABLE/postgres_behat/behat/behat.yml --tags='@core_group,@mod_forum,@core_completion,@assignfeedback_editpdf,@tool_monitor'
      Moodle 2.9dev (Build: 20141218), pgsql, d02a1d6a927dbbc0571ea597ec60e5e1f94527bb
      Server OS "Darwin", Browser: "firefox"
      Started at 21-12-2014, 10:30
      ...................................................................... 70
      .......................................F----.......................... 140
      .................F---------------..................................... 210
      ...................................................................... 280
      ...................................................................... 350
      ...................................................................... 420
      ...................................................................... 490
      ...................................................................... 560
      ...................................................................... 630
      ...................................................................... 700
      ...................................................................... 770
      ...................................................................... 840
      ...................................................................... 910
      ...................................................................... 980
      ...................................................................... 1050
      ...................................................................... 1120
      ...................................................................... 1190
      ...................................................................... 1260
      ...................................................................... 1330
      ...................................................................... 1400
      ...................................................................... 1470
      ...................................................................... 1540
      ...................................................................... 1610
      ...................................................................... 1680
      ...................................................................... 1750
      ...................................................................... 1820
      ...................................................................... 1890
      ...................................................................... 1960
      ...................................................................... 2030
      ...................................................................... 2100
      ...................................................................... 2170
      ...................................................................... 2240
      ...................................................................... 2310
      ...................................................................... 2380
      ...................................................................... 2450
      ...................................................................... 2520
      ...................................................................... 2590
      ...................................................................... 2660
      ...................................................................... 2730
      ...................................................................... 2800
      ...................................................................... 2870
      ...................................................................... 2940
      ...................................................................... 3010
      ...................................................................... 3080
      ...................................................................... 3150
      ...................................................................... 3220
      ...................................................................... 3290
      ...................................................................... 3360
      ...................................................................... 3430
      ...................................................................... 3500
      ...................................................................... 3570
      ...................................................................... 3640
      .......................................F
       
      (::) Pasos fallidos (::)
       
      01. The "(//html/.//input[./@type = 'submit' or ./@type = 'image' or ./@type = 'button'][(((./@id = 'Close' or ./@name = 'Close') or contains(./@value, 'Close')) or contains(./@title, 'Close'))] | .//input[./@type = 'image'][contains(./@alt, 'Close')] | .//button[((((./@id = 'Close' or ./@name = 'Close') or contains(./@value, 'Close')) or contains(normalize-space(string(.)), 'Close')) or contains(./@title, 'Close'))] | .//input[./@type = 'image'][contains(./@alt, 'Close')] | .//*[./@role = 'button'][(((./@id = 'Close' or ./@name = 'Close') or contains(./@value, 'Close')) or contains(./@title, 'Close') or contains(normalize-space(string(.)), 'Close'))])[1]" xpath node is not visible and it should be visible
          In step `And I click on "Close" "button"'.                                                  # behat_general::i_click_on()
          From scenario `Submit a PDF file as a student in a team and annotate the PDF as a teacher'. # /Users/stronk7/git_moodle/testing/mod/assign/feedback/editpdf/tests/behat/annotate_pdf.feature:71
          Of feature `In an assignment, teacher can annotate PDF files during grading'.               # /Users/stronk7/git_moodle/testing/mod/assign/feedback/editpdf/tests/behat/annotate_pdf.feature
       
      02. The "(//html/.//input[./@type = 'submit' or ./@type = 'image' or ./@type = 'button'][(((./@id = 'Close' or ./@name = 'Close') or contains(./@value, 'Close')) or contains(./@title, 'Close'))] | .//input[./@type = 'image'][contains(./@alt, 'Close')] | .//button[((((./@id = 'Close' or ./@name = 'Close') or contains(./@value, 'Close')) or contains(normalize-space(string(.)), 'Close')) or contains(./@title, 'Close'))] | .//input[./@type = 'image'][contains(./@alt, 'Close')] | .//*[./@role = 'button'][(((./@id = 'Close' or ./@name = 'Close') or contains(./@value, 'Close')) or contains(./@title, 'Close') or contains(normalize-space(string(.)), 'Close'))])[1]" xpath node is not visible and it should be visible
          In step `And I click on "Close" "button"'.                                                  # behat_general::i_click_on()
          From scenario `Submit a PDF file as a student and annotate the PDF as a teacher'.           # /Users/stronk7/git_moodle/testing/mod/assign/feedback/editpdf/tests/behat/group_annotations.feature:8
          Of feature `In a group assignment, teacher can annotate PDF files for all users'.           # /Users/stronk7/git_moodle/testing/mod/assign/feedback/editpdf/tests/behat/group_annotations.feature
       
      03. "Status: Complete" text was not found in the page
          In step `And I should see "Status: Complete"'.                                              # behat_general::assert_page_contains_text()
          From scenario `Mark a student as complete using the completion report'.                     # /Users/stronk7/git_moodle/testing/completion/tests/behat/teacher_manual_completion.feature:7
          Of feature `Allow teachers to manually mark users as complete when configured'.             # /Users/stronk7/git_moodle/testing/completion/tests/behat/teacher_manual_completion.feature
      

      Sounds to me that the completion one was fixed recently, by moving around some generators... but I still got it happening here.

      That's all, ciao

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              dmonllao David Monllaó
              Reporter:
              stronk7 Eloy Lafuente (stronk7)
              Peer reviewer:
              Rajesh Taneja
              Integrator:
              Dan Poltawski
              Tester:
              Adrian Greeve
              Participants:
              Component watchers:
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias, Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze, Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                11/May/15