Uploaded image for project: 'Fluid Infusion'
  1. Fluid Infusion
  2. FLUID-6451

UIOptions tests have environmental dependency on cookie values

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: UI Options
    • Labels:
      None

      Description

      The UIOptions tests at https://github.com/fluid-project/infusion/blob/master/tests/component-tests/uiOptions/js/UIOptionsTests.js have an environment dependency on the state of the browser's cookies, since the default distribution via contextAwareness for any fluid.prefs.store is fluid.prefs.cookieStore at https://github.com/fluid-project/infusion/blob/master/src/framework/preferences/js/Store.js#L23

      This can cause a test failure if, for example, there are dirty cookies from a previous test which have enabled the ToC preference. This exposes the fact that the  "fluid.tests.uiOptions.prefsEditorLocalizedTest" in UIOptionsTests.js comes "out of the box" with an invalid path to the ToC template.

      We should fix at least one of the following two things - 

      i) Ensure that every test case makes use of the fluid.prefs.tempStore store unless it is explicitly testing the cookie store

      ii) Fix up the template paths for the UIOptions tests so that the ToC path is valid

        Attachments

          Activity

            People

            Assignee:
            jobara Justin Obara
            Reporter:
            antranig Antranig Basman
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: