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

Missing switch window in behat steps

XMLWordPrintable

    • MOODLE_311_STABLE, MOODLE_39_STABLE, MOODLE_400_STABLE
    • MOODLE_311_STABLE, MOODLE_39_STABLE, MOODLE_400_STABLE
    • Hide
      1. Run behat with the latest version of Selenium and Firefox using this scenario:

        mod/h5pactivity/tests/behat/contentbank_link.feature
        The content bank link should go to the course Content bank
        

      Show
      Run behat with the latest version of Selenium and Firefox using this scenario: mod/h5pactivity/tests/behat/contentbank_link.feature The content bank link should go to the course Content bank

      Failure on 3.9 and 3.11 with Firefox:

      ➜  s311 git:(MOODLE_311_STABLE) BROWSER=firefox runbehat mod/h5pactivity/tests/behat/contentbank_link.feature:22 1
      firefox
      firefox
      Moodle 3.11.10+ (Build: 20221101), 97f67db36d48352a240d2a70e7333ed862001ca4
      Php: 8.0.24, pgsql: 12.12, OS: Darwin 21.6.0 arm64
      Run optional tests:
      - Accessibility: No
      Server OS "Darwin", Browser: "firefox"
      Started at 06-11-2022, 20:39
      ..........
      Scenario failed. Paused for inspection. Press Enter/Return to continue.
      Exception follows:
      Expected to see 1 tabs open, not 2
                F
       
      --- Failed steps:
       
      001 Scenario: The content bank link should go to the course Content bank # mod/h5pactivity/tests/behat/contentbank_link.feature:22
            And I close all opened windows                                     # mod/h5pactivity/tests/behat/contentbank_link.feature:29
              Expected to see 1 tabs open, not 2 (Behat\Mink\Exception\DriverException)
       
      1 scenario (1 failed)
      11 steps (10 passed, 1 failed)
      0m19.50s (77.08Mb)
      

      This seems to be failing on Firefox because it's too 'fast'. This is missing a step to move to the other window.

            dobedobedoh Andrew Lyons
            dobedobedoh Andrew Lyons
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            Simey Lameze Simey Lameze
            Angelia Dela Cruz Angelia Dela Cruz
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 2 hours, 24 minutes
                2h 24m

                  Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.