@shopware-ag/acceptance-test-suite 2.3.9 → 2.3.10

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 +7 -8
  2. package/package.json +1 -1
package/dist/index.mjs CHANGED
@@ -689,20 +689,19 @@ const test$9 = test$d.extend({
689
689
  }
690
690
  `.trim()
691
691
  });
692
+ await expect(page.url()).toContain("login");
692
693
  await page.getByLabel(/Username|Email address/).fill(adminUser.username);
693
694
  await page.getByLabel("Password").fill(adminUser.password);
694
- const configResponsePromise = page.waitForResponse("**/_info/config");
695
- await page.getByRole("button", { name: "Log in" }).click();
696
- const config = await (await configResponsePromise).json();
697
- let lastPlugin;
695
+ const config = await (await AdminApiContext.get("./_info/config")).json();
696
+ const jsLoadingPromises = [];
698
697
  for (const i in config.bundles) {
699
698
  if (config.bundles[i]?.js && config.bundles[i]?.js?.length) {
700
- lastPlugin = config.bundles[i];
699
+ const js = config?.bundles[i]?.js ?? [];
700
+ jsLoadingPromises.push(...js.map((url) => page.waitForResponse(url)));
701
701
  }
702
702
  }
703
- if (lastPlugin) {
704
- await Promise.all(lastPlugin.js.map((url) => page.waitForResponse(url)));
705
- }
703
+ await page.getByRole("button", { name: "Log in" }).click();
704
+ await Promise.all(jsLoadingPromises);
706
705
  await use(page);
707
706
  await page.close();
708
707
  await context.close();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shopware-ag/acceptance-test-suite",
3
- "version": "2.3.9",
3
+ "version": "2.3.10",
4
4
  "description": "Shopware Acceptance Test Suite",
5
5
  "author": "shopware AG",
6
6
  "license": "MIT",