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

Problems with the I change viewport size to "WxH" step

    XMLWordPrintable

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 3.11.5, 4.0
    • None
    • None
    • MOODLE_311_STABLE, MOODLE_400_STABLE

    Description

      This was detected when locally trying to find what was going with MDL-73730 (that is a recent regression in a new test).

      To reproduce:

      • Only happens with headless runs, using selenium 3.
      • Only happens with chrome (95, 97, 99 and 100 confirmed). Firefox ok,
      • Doesn't happen @ CIs (but in local mac dev environment).
      • Doesn't happen if the "change window" sister step is used, only with "change viewport"
      • Run behat scenario -name 'The calendar page should be responsive'

      Expected:

      Current:

      • The scenario fails with error:

        001 Scenario: The calendar page should be responsive # /calendar/tests/behat/calendar.feature:254
              When I change viewport size to "1200x1000"     # /calendar/tests/behat/calendar.feature:261
                invalid argument: 'width' out of range
                  (Session info: headless chrome=97.0.4692.99) (Facebook\WebDriver\Exception\InvalidArgumentException)
        

      Some debugging has shown that, the JS that is executed when "change viewport" is used is returning weird values. For example, for "1200x1000" it's returning "-151x232" that, ultimately, is not accepted with the error above.

      Sure this is trivial for somebody understanding how that JS works, maybe there is some casting or base conversion or something... although it's curious that it's Chrome-only.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              stronk7 Eloy Lafuente (stronk7)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated: