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

Get rid of behat selectors in production sites

    XMLWordPrintable

    Details

    • Affected Branches:
      MOODLE_37_STABLE, MOODLE_38_STABLE, MOODLE_39_STABLE

      Description

      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

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              stronk7 Eloy Lafuente (stronk7)
              Participants:
              Component watchers:
              Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze, Bas Brands
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated: