@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.
Files changed (2) hide show
  1. package/dist/index.mjs +8 -4
  2. 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
- const keys = Object.keys(config.bundles);
698
- if (keys.length > 0) {
699
- const last = config.bundles[keys[keys.length - 1]];
700
- await Promise.all(last.js.map((url) => page.waitForResponse(url)));
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();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shopware-ag/acceptance-test-suite",
3
- "version": "2.3.8",
3
+ "version": "2.3.9",
4
4
  "description": "Shopware Acceptance Test Suite",
5
5
  "author": "shopware AG",
6
6
  "license": "MIT",