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

Get rid of behat selectors in production sites

XMLWordPrintable

    • MOODLE_37_STABLE, MOODLE_38_STABLE, MOODLE_39_STABLE

      There are some BS artefacts that Behat doesn't like specially (it's unable to interact with them).

      To workaround that... what we do is to "disable" the special artefact visualization and make it default to its standard representation (sliders are checkboxes...).

      To do that we have been adding behat selectors to .scss files that, once complied end into the final theme .css files. All sites get those selectors.

      This issue is about:

      1) Move all the behat specific selectors to a particular file (say behat.scss for example.
      2) Only consider that file when building the final .css if the site is a running behat site. Never if it's a normal site.

      For the records, right now we have (38_STABLE) behat selectors in:

      $ grep -lr behat
      layout/columns2.php
      scss/moodle/core.scss
      scss/moodle/debug.scss
      tests/behat/blacklist.json
      style/moodle.css
      

      We should be able to reduce that to just that proposed behat.scss file and ensure it's used when running behat site only.

      Ciao

            Unassigned Unassigned
            stronk7 Eloy Lafuente (stronk7)
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:

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