https://bugzilla.wikimedia.org/show_bug.cgi?id=44299

       Web browser: ---
            Bug ID: 44299
           Summary: assert all ResourceLoader modules loaded in all
                    browser tests
           Product: Wikimedia
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: Testing Infrastructure
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected]
    Classification: Unclassified
   Mobile Platform: ---

Several times extension front-end code has been deployed that fails on some
browser.

We have a browser test suite running at https://wmf.ci.cloudbees.com/ . To my
knowledge those browser tests don't make the simple assertion that all of the
ResourceLoader modules required by the page loaded OK.

Please can you add this assertion to all the Cucumber tests.  It's the
JavaScript test (thanks to Ori Livneh):

mw.loader.getModuleNames().filter(function (module) { return
mw.loader.getState(module) === "error"; }).length === 0

I understand that this is no substitute for runninq qunit tests for each
extension on multiple browsers. But it is a vital assertion that MW pages
should load without errors, and it makes no sense NOT to make it.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to