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

Random failures with delete custom fields scenarios

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide

      Behat should test most features

      For master/311:

      1. Log in as admin
      2. Navigate to Site administration -> Course - Course custom fields
      3. Create at least three custom field categories
      4. Create at least one of each type of custom field in the first category
        1. Confirm that a modal dialogue was shown for creating each field
      5. Edit some of the fields
        1. Confirm that a modal dialogue was shown for creating each field
      6. Drag each of the custom fields to the second category
        1. Confirm that they moved
        2. Confirm that the now empty category has a marker to say that there are no fields in the category
      7. Drag the category you just filled to the top
        1. Confirm that it moved as you would expect
      8. Drag the top category to the bottom
        1. Confirm that it moved as you would expect
      9. Rename each of the categories using the pen icon
      10. Click on the move icon for the first category
        1. Confirm that the dialogue opened
        2. Confirm that the correct names for the newly renamed categories are shown
      11. Refresh the page
        1. Confirm that everything is still where you left it
      12. Click the delete icon for a field
        1. Confirm that a confirmation was shown
      13. Click cancel
        1. Confirm that it was not deleted
      14. Click the delete icon for the same field
      15. Click on the "Yes" button
        1. Confirm that the field was removed
      16. Click on the delete icon for the category that all of the fields are in
      17. Click cancel
        1. Confirm that it was not deleted
      18. Click the delete icon for the same category
      19. Click on the "Yes" button
        1. Confirm that the page updated
        2. Confirm that the correct category was removed
        3. Confirm that the fields in that category were removed.
      Show
      Behat should test most features For master/311: Log in as admin Navigate to Site administration -> Course - Course custom fields Create at least three custom field categories Create at least one of each type of custom field in the first category Confirm that a modal dialogue was shown for creating each field Edit some of the fields Confirm that a modal dialogue was shown for creating each field Drag each of the custom fields to the second category Confirm that they moved Confirm that the now empty category has a marker to say that there are no fields in the category Drag the category you just filled to the top Confirm that it moved as you would expect Drag the top category to the bottom Confirm that it moved as you would expect Rename each of the categories using the pen icon Click on the move icon for the first category Confirm that the dialogue opened Confirm that the correct names for the newly renamed categories are shown Refresh the page Confirm that everything is still where you left it Click the delete icon for a field Confirm that a confirmation was shown Click cancel Confirm that it was not deleted Click the delete icon for the same field Click on the "Yes" button Confirm that the field was removed Click on the delete icon for the category that all of the fields are in Click cancel Confirm that it was not deleted Click the delete icon for the same category Click on the "Yes" button Confirm that the page updated Confirm that the correct category was removed Confirm that the fields in that category were removed .
    • Affected Branches:
      MOODLE_310_STABLE, MOODLE_311_STABLE, MOODLE_39_STABLE, MOODLE_400_STABLE
    • Fixed Branches:
      MOODLE_310_STABLE, MOODLE_39_STABLE
    • Pull 3.9 Branch:
    • Pull 3.10 Branch:
      MDL-70780-310
    • Pull 3.11 Branch:
      MDL-70780-311
    • Pull Master Branch:
      MDL-70780-master
    • Story Points:
      0
    • Sprint:
      Internationals - 3.11 Sprint 7, Internationals - 3.11 Sprint 8

      Description

      With the switch to W3C webdrivers @ MDL-66979 it has been detected that some custom fields scenarios have started to happen, not seen before:

      • Delete a custom course checkbox field
      • Delete a custom course date field
      • Delete a custom course textarea field
      • ... (there may be more)

      it happens in all branches (39 and up) and, apparently, only with slow databases, just in case that gives any clue about the problem.

      Links:

      001 Scenario: Delete a custom course date field # /var/www/html/customfield/field/date/tests/behat/field.feature:39
            Then I should not see "Test field"        # /var/www/html/customfield/field/date/tests/behat/field.feature:48
              "Test field" text was found in the page (Behat\Mink\Exception\ExpectationException)
      

        Attachments

        1. MDL-70780.jpg
          MDL-70780.jpg
          48 kB
        2. MDL-70780 (2).jpg
          MDL-70780 (2).jpg
          51 kB
        3. MDL-70780 (3).jpg
          MDL-70780 (3).jpg
          26 kB

          Activity

            People

            Assignee:
            dobedobedoh Andrew Lyons
            Reporter:
            stronk7 Eloy Lafuente (stronk7)
            Integrator:
            Adrian Greeve Adrian Greeve
            Tester:
            Anna Carissa Sadia Anna Carissa Sadia
            Participants:
            Component watchers:
            Andrew Lyons, Dongsheng Cai, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              25/Mar/21

                Time Tracking

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