@shopware-ag/acceptance-test-suite 2.3.8 → 2.3.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.mjs +8 -4
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -694,10 +694,14 @@ const test$9 = test$d.extend({
|
|
|
694
694
|
const configResponsePromise = page.waitForResponse("**/_info/config");
|
|
695
695
|
await page.getByRole("button", { name: "Log in" }).click();
|
|
696
696
|
const config = await (await configResponsePromise).json();
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
697
|
+
let lastPlugin;
|
|
698
|
+
for (const i in config.bundles) {
|
|
699
|
+
if (config.bundles[i]?.js && config.bundles[i]?.js?.length) {
|
|
700
|
+
lastPlugin = config.bundles[i];
|
|
701
|
+
}
|
|
702
|
+
}
|
|
703
|
+
if (lastPlugin) {
|
|
704
|
+
await Promise.all(lastPlugin.js.map((url) => page.waitForResponse(url)));
|
|
701
705
|
}
|
|
702
706
|
await use(page);
|
|
703
707
|
await page.close();
|