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

Behat failure when adding activities

    XMLWordPrintable

Details

    • MOODLE_402_STABLE
    • MOODLE_402_STABLE
    • MDL-76942-master-2
    • Hide

      Covered by behat tests.

       

      Manual test

      1. Log in as an admin
      2. Create a new course
      3. Turn editing on
      4. Click add an activity or resource and create any activity.
      5. Go back to the course homepage.
      6. Confirm that a rounded plus button is shown right on top of the activity that you added on hover and that you're able to add an activity before the first activity when you click that button.
      7. Turn editing off
      8. Confirm that the rounded plus button is not shown.
      Show
      Covered by behat tests.   Manual test Log in as an admin Create a new course Turn editing on Click add an activity or resource and create any activity. Go back to the course homepage. Confirm that a rounded plus button is shown right on top of the activity that you added on hover and that you're able to add an activity before the first activity when you click that button. Turn editing off Confirm that the rounded plus button is not shown.

    Description

      This seems related to lang string change in MDL-76739.

      001 Scenario: Activities can not be added when the admin restricts the permissions # /var/www/html/course/tests/behat/restrict_available_activities.feature:32
            And I press "Add an activity or resource"                                    # /var/www/html/course/tests/behat/restrict_available_activities.feature:42
              The "(//html/.//input
              [translate(./@type, 'ABCDEFGHIJKLMNOPQRSTUVWXYZ', 'abcdefghijklmnopqrstuvwxyz') = 'submit' or translate(./@type, 'ABCDEFGHIJKLMNOPQRSTUVWXYZ', 'abcdefghijklmnopqrstuvwxyz') = 'image' or translate(./@type, 'ABCDEFGHIJKLMNOPQRSTUVWXYZ', 'abcdefghijklmnopqrstuvwxyz') = 'button' or translate(./@type, 'ABCDEFGHIJKLMNOPQRSTUVWXYZ', 'abcdefghijklmnopqrstuvwxyz') = 'reset'][((./@id = 'Add an activity or resource' or ./@name = 'Add an activity or resource') or contains(./@value, 'Add an activity or resource') or contains(./@title, 'Add an activity or resource') or contains(./@aria-label, 'Add an activity or resource'))] | //html/.//input
              [translate(./@type, 'ABCDEFGHIJKLMNOPQRSTUVWXYZ', 'abcdefghijklmnopqrstuvwxyz') = 'image'][contains(./@alt, 'Add an activity or resource')] | //html/.//button
              [((./@id = 'Add an activity or resource' or ./@name = 'Add an activity or resource') or contains(./@value, 'Add an activity or resource') or contains(./@title, 'Add an activity or resource') or contains(./@aria-label, 'Add an activity or resource') or contains(normalize-space(string(.)), 'Add an activity or resource'))] | //html/.//*
              [translate(./@role, 'ABCDEFGHIJKLMNOPQRSTUVWXYZ', 'abcdefghijklmnopqrstuvwxyz') = 'button'][((./@id = 'Add an activity or resource' or ./@name = 'Add an activity or resource') or contains(./@value, 'Add an activity or resource') or contains(./@title, 'Add an activity or resource') or contains(./@aria-label, 'Add an activity or resource') or contains(normalize-space(string(.)), 'Add an activity or resource'))])[1]" xpath node is not visible and it should be visible (Behat\Mink\Exception\ExpectationException)
      

      Attachments

        Issue Links

          Activity

            People

              jpataleta Jun Pataleta
              jpataleta Jun Pataleta
              Simey Lameze Simey Lameze
              Sara Arjona (@sarjona) Sara Arjona (@sarjona)
              CiBoT CiBoT
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                24/Apr/23

                Time Tracking

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