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: Tested
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.7.2
    • Fix Version/s: None
    • 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

            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated: