@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.
- package/dist/index.mjs +7 -8
- 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
|
|
695
|
-
|
|
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
|
-
|
|
699
|
+
const js = config?.bundles[i]?.js ?? [];
|
|
700
|
+
jsLoadingPromises.push(...js.map((url) => page.waitForResponse(url)));
|
|
701
701
|
}
|
|
702
702
|
}
|
|
703
|
-
|
|
704
|
-
|
|
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();
|