Error with componen-preload.js in OPA tests
MaximShmyrev opened this issue · 2 comments
Hey team,
During running from CI of OPA tests with karma there is an error
there a request for Component-preload.js, but we're doing these tests before build, so we don't have Component-preload.js yet..
And like a result whole stage in CI fail..is any way to exclude this request? And why it's requested in general, there is nothing in OPA tests itself that can require Component-preload.js
Normally, Component-preload.js
is requested whenever you create a component instance for which the code has not been loaded yet.
You can disable the request in your test by adding the attribute
data-sap-ui-xx-componentPreload="off"
to the UI5 bootstrap configuration (or by adding the URL parameter sap-ui-xx-componentPreload=off
).
your suggestion helped, many thanks!