@shopware-ag/acceptance-test-suite 2.3.7 → 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.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.mjs +16 -9
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -996,7 +996,7 @@ interface DataFixtureTypes {
|
|
|
996
996
|
interface FixtureTypes extends ApiContextTypes, PageContextTypes, ActorFixtureTypes, TestDataFixtureTypes, HelperFixtureTypes, DefaultSalesChannelTypes, StorefrontPageTypes, AdministrationPageTypes, DataFixtureTypes {
|
|
997
997
|
}
|
|
998
998
|
|
|
999
|
-
type Language = components['schemas']['
|
|
999
|
+
type Language = components['schemas']['Language'] & {
|
|
1000
1000
|
id: string;
|
|
1001
1001
|
translationCode: components['schemas']['Locale'] & {
|
|
1002
1002
|
id: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -996,7 +996,7 @@ interface DataFixtureTypes {
|
|
|
996
996
|
interface FixtureTypes extends ApiContextTypes, PageContextTypes, ActorFixtureTypes, TestDataFixtureTypes, HelperFixtureTypes, DefaultSalesChannelTypes, StorefrontPageTypes, AdministrationPageTypes, DataFixtureTypes {
|
|
997
997
|
}
|
|
998
998
|
|
|
999
|
-
type Language = components['schemas']['
|
|
999
|
+
type Language = components['schemas']['Language'] & {
|
|
1000
1000
|
id: string;
|
|
1001
1001
|
translationCode: components['schemas']['Locale'] & {
|
|
1002
1002
|
id: string;
|
package/dist/index.mjs
CHANGED
|
@@ -631,6 +631,11 @@ async function mockApiCalls(page) {
|
|
|
631
631
|
contentType: "application/json",
|
|
632
632
|
body: process.env.SBP_BOOKABLE_PLANS_JSON ?? "{}"
|
|
633
633
|
}));
|
|
634
|
+
await page.route("**/api/sbp/nps/active-trigger", (route) => route.fulfill({
|
|
635
|
+
status: 200,
|
|
636
|
+
contentType: "application/json",
|
|
637
|
+
body: '{"prompt":false,"trigger":["gone-live"]}'
|
|
638
|
+
}));
|
|
634
639
|
}
|
|
635
640
|
|
|
636
641
|
const isSaaSInstance = async (adminApiContext) => {
|
|
@@ -686,16 +691,18 @@ const test$9 = test$d.extend({
|
|
|
686
691
|
});
|
|
687
692
|
await page.getByLabel(/Username|Email address/).fill(adminUser.username);
|
|
688
693
|
await page.getByLabel("Password").fill(adminUser.password);
|
|
694
|
+
const configResponsePromise = page.waitForResponse("**/_info/config");
|
|
689
695
|
await page.getByRole("button", { name: "Log in" }).click();
|
|
690
|
-
await
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
696
|
+
const config = await (await configResponsePromise).json();
|
|
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)));
|
|
705
|
+
}
|
|
699
706
|
await use(page);
|
|
700
707
|
await page.close();
|
|
701
708
|
await context.close();
|