Uploaded image for project: 'Moodle app'
  1. Moodle app
  2. MOBILE-3216

Include method for checking if the app is controlled by automation (Behat)

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.7.2
    • Fix Version/s: 3.8.0
    • Component/s: Behat
    • Labels:
    • Sprint:
      Moodle App 3.8.0

      Description

      We need to create a new method, maybe in the appProvider, to be able to detect if the app is controlled by automation (like Behat), because:

      1 - For non-English browsers the tests fail (and it is not possible to force Chrome in English using chrome switches, Chrome issue) so we need to force the language to English in the app itself when automation is on.
      2 - To expose only the appProvider (via window object) when automation is on.

      Pleaese, refer to https://developer.mozilla.org/en-US/docs/Web/API/Navigator/webdriver for reference

        Attachments

          Activity

            People

            Assignee:
            pferre22 Pau Ferrer
            Reporter:
            jleyva Juan Leyva
            Peer reviewer:
            Dani Palou
            Integrator:
            Juan Leyva
            Tester:
            Juan Leyva
            Participants:
            Component watchers:
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              20/Dec/19