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

Behat app step failing

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide

      Requirements

      1. Proper Behat setup.
      2. MDK (Optional. For easier initialisation and execution of Behat tests).

      Setup

      1. Put the attached app_behat_special_buttons.feature file into course/tests/behat.

      Testing scenario 

      • 1. Launch the integration version of the mobile app using docker: 

        docker run --name moodlemobile-next -p 8100:8100 moodlehq/moodlemobile2:next

      • 2. Edit your Moodle instance's config.php and add the following line: 

        $CFG->behat_ionic_wwwroot = 'http://localhost:8100'

      • 3. Initialise your Behat environment and run app_behat_special_buttons.feature:  

        mdk behat -r -f course/tests/behat/app_behat_special_buttons.feature

      • 4. Confirm that the tests pass.
      Show
      Requirements Proper  Behat setup . MDK (Optional. For easier initialisation and execution of Behat tests). Setup Put the attached app_behat_special_buttons.feature file into course/tests/behat. Testing scenario  1. Launch the integration version of the mobile app using docker:  docker run --name moodlemobile-next -p 8100 : 8100 moodlehq/moodlemobile2:next 2. Edit your Moodle instance's config.php and add the following line:  $CFG->behat_ionic_wwwroot = 'http://localhost:8100' ;  3. Initialise your Behat environment and run app_behat_special_buttons.feature:   mdk behat -r -f course/tests/behat/app_behat_special_buttons.feature 4. Confirm that the tests pass.
    • Affected Branches:
      MOODLE_38_STABLE
    • Fixed Branches:
      MOODLE_37_STABLE, MOODLE_38_STABLE
    • Pull from Repository:
    • Pull 3.7 Branch:
      wip-MDL-66918-37stable
    • Pull 3.8 Branch:
      wip-MDL-66918-38stable
    • Pull Master Branch:
      wip-MDL-66918-master

      Description

      The behat app step "And I press the main menu button in the app" is failing when using Moodle Mobile App integration branch code (v3.8).

      There must have been a change in the page presentation  as the selector for the "main menu" case (line 404 of lib/tests/behat/app_behat_runtime.js) is no longer finding the more menu button (probably a minor app v3.8 release change).

      The current selector is looking for an ion-icon[area-label=more] which no longer exists. Changing the selector to include ion-icon[area-label=menu] fixes this step and allows it to work for app v3.7 and v3.8.

       

        Attachments

          Activity

            People

            Assignee:
            jb23347 John Beedell
            Reporter:
            jb23347 John Beedell
            Peer reviewer:
            Sara Arjona (@sarjona)
            Integrator:
            Andrew Nicols
            Tester:
            Janelle Barcega
            Participants:
            Component watchers:
            Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              9/Mar/20

                Time Tracking

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