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

Dynamic tab content remains when switching tabs (so Behat sees old content)

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • 4.0
    • 4.0
    • Libraries, Report builder, UX
    • MOODLE_400_STABLE
    • MOODLE_400_STABLE
    • Hide

      Covered by CI, running the following:

      $ bin/moodle-docker-compose exec --user www-data webserver php admin/tool/behat/cli/run.php --name="Configure access to reports based on intended audience"
      

      Show
      Covered by CI, running the following: $ bin/moodle-docker-compose exec --user www-data webserver php admin/tool/behat/cli/run.php --name="Configure access to reports based on intended audience"

    Description

      When writing Behat tests, and switching between dynamic tabs, the old tab content remains in the DOM, leading to:

      1. False positives if what you expect to see is not visible on current tab, but existed on previous tab;
      2. Difficulty asserting content of current tab, when previous tab had similar/same elements on it

      Attachments

        Issue Links

          Activity

            People

              davidmatamoros David Matamoros
              pholden Paul Holden
              Mikel Martín Corrales Mikel Martín Corrales
              Ilya Tregubov Ilya Tregubov
              CiBoT CiBoT
              Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Laurent David, Sara Arjona (@sarjona), David Matamoros, Mikel Martín Corrales, Paul Holden, Huong Nguyen, Barbara Ramiro, Bas Brands, Mathew May
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                19/Apr/22

                Time Tracking

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