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

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

XMLWordPrintable

    • 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"

      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

            davidcarrillo David Carrillo
            pholden Paul Holden
            Mikel Martín Corrales Mikel Martín Corrales
            Ilya Tregubov Ilya Tregubov
            CiBoT CiBoT
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:

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

                  Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.