https://bugzilla.wikimedia.org/show_bug.cgi?id=56483
Web browser: Google Chrome
Bug ID: 56483
Summary: reasoning about javascript loading and test failures
Product: MediaWiki extensions
Version: unspecified
Hardware: All
OS: All
Status: NEW
Keywords: browser-test-bug
Severity: normal
Priority: Unprioritized
Component: UploadWizard
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected],
[email protected], [email protected]
Classification: Unclassified
Mobile Platform: ---
WIP:
I am seeing a number of failures in the Selenium tests when running for Chrome.
The failures seem to be caused by many calls to ResourceLoader, many repeated,
many seemingly unnecessary, and some of these calls fail. Other calls to other
unexpected sources are also evident, this is just a single example.
Each failed test shows a different set of calls to load.php. Here is one
example:
A normal load of UW on beta commons has 2 calls for two jquery things, one for
the spinner and one for ULS. See screen shot.
But a failed automated test shows multiple repeated calls for jquery.ui.button.
See screen shot. https://saucelabs.com/jobs/8fd3f6a483db46da9c4cfbbdcf7d2449
A reference to jquery.ui.button is found only one place in all of the
UploadWizard source code, line 473 of UploadWizardHooks.php. It seem to be a
dependency for ext.uploadWizard.campaign
What causes UploadWizard to make multiple calls for a jquery feature
jquery.ui.button that it would not normally need?
Under what circumstances would this happen to a normal user?
When UW makes these multiple calls, it seems that what is returned from some of
those calls is corrupt, possibly truncated, since the errors tend to be
'Uncaught SyntaxError: Unexpected token ILLEGAL' and similar.
I think VisualEditor has a similar problem, possibly indicated in
https://bugzilla.wikimedia.org/show_bug.cgi?id=55801 (see screen shot there)
--
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l