@shopware-ag/acceptance-test-suite 2.3.6 → 2.3.8
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 +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.mjs +14 -10
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -537,6 +537,7 @@ interface StoreBaseConfig {
|
|
|
537
537
|
enGBLanguageId: string;
|
|
538
538
|
eurCurrencyId: string;
|
|
539
539
|
defaultCurrencyId: string;
|
|
540
|
+
defaultLanguageId: string;
|
|
540
541
|
invoicePaymentMethodId: string;
|
|
541
542
|
defaultShippingMethod: string;
|
|
542
543
|
taxId: string;
|
|
@@ -995,7 +996,7 @@ interface DataFixtureTypes {
|
|
|
995
996
|
interface FixtureTypes extends ApiContextTypes, PageContextTypes, ActorFixtureTypes, TestDataFixtureTypes, HelperFixtureTypes, DefaultSalesChannelTypes, StorefrontPageTypes, AdministrationPageTypes, DataFixtureTypes {
|
|
996
997
|
}
|
|
997
998
|
|
|
998
|
-
type Language = components['schemas']['
|
|
999
|
+
type Language = components['schemas']['Language'] & {
|
|
999
1000
|
id: string;
|
|
1000
1001
|
translationCode: components['schemas']['Locale'] & {
|
|
1001
1002
|
id: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -537,6 +537,7 @@ interface StoreBaseConfig {
|
|
|
537
537
|
enGBLanguageId: string;
|
|
538
538
|
eurCurrencyId: string;
|
|
539
539
|
defaultCurrencyId: string;
|
|
540
|
+
defaultLanguageId: string;
|
|
540
541
|
invoicePaymentMethodId: string;
|
|
541
542
|
defaultShippingMethod: string;
|
|
542
543
|
taxId: string;
|
|
@@ -995,7 +996,7 @@ interface DataFixtureTypes {
|
|
|
995
996
|
interface FixtureTypes extends ApiContextTypes, PageContextTypes, ActorFixtureTypes, TestDataFixtureTypes, HelperFixtureTypes, DefaultSalesChannelTypes, StorefrontPageTypes, AdministrationPageTypes, DataFixtureTypes {
|
|
996
997
|
}
|
|
997
998
|
|
|
998
|
-
type Language = components['schemas']['
|
|
999
|
+
type Language = components['schemas']['Language'] & {
|
|
999
1000
|
id: string;
|
|
1000
1001
|
translationCode: components['schemas']['Locale'] & {
|
|
1001
1002
|
id: string;
|
package/dist/index.mjs
CHANGED
|
@@ -225,6 +225,7 @@ const test$b = test$d.extend({
|
|
|
225
225
|
storefrontTypeId: "8a243080f92e4c719546314b577cf82b",
|
|
226
226
|
eurCurrencyId: currency.id,
|
|
227
227
|
defaultCurrencyId: "b7d2554b0ce847cd82f3ac9bd1c0dfca",
|
|
228
|
+
defaultLanguageId: "2fbb5fe2e29a4d70aa5854ce7ce3e20b",
|
|
228
229
|
invoicePaymentMethodId: await requests.invoicePaymentMethodId,
|
|
229
230
|
defaultShippingMethod: await requests.defaultShippingMethod,
|
|
230
231
|
taxId: await requests.getTaxId,
|
|
@@ -326,7 +327,7 @@ const test$b = test$d.extend({
|
|
|
326
327
|
id: customerGroupUuid,
|
|
327
328
|
name: `${id} Acceptance test`
|
|
328
329
|
},
|
|
329
|
-
languages: [{ id: SalesChannelBaseConfig.enGBLanguageId }],
|
|
330
|
+
languages: [{ id: SalesChannelBaseConfig.enGBLanguageId }, { id: SalesChannelBaseConfig.defaultLanguageId }],
|
|
330
331
|
countries: [{ id: SalesChannelBaseConfig.deCountryId }],
|
|
331
332
|
shippingMethods: [{ id: SalesChannelBaseConfig.defaultShippingMethod }],
|
|
332
333
|
paymentMethods: [{ id: SalesChannelBaseConfig.invoicePaymentMethodId }],
|
|
@@ -630,6 +631,11 @@ async function mockApiCalls(page) {
|
|
|
630
631
|
contentType: "application/json",
|
|
631
632
|
body: process.env.SBP_BOOKABLE_PLANS_JSON ?? "{}"
|
|
632
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
|
+
}));
|
|
633
639
|
}
|
|
634
640
|
|
|
635
641
|
const isSaaSInstance = async (adminApiContext) => {
|
|
@@ -685,16 +691,14 @@ const test$9 = test$d.extend({
|
|
|
685
691
|
});
|
|
686
692
|
await page.getByLabel(/Username|Email address/).fill(adminUser.username);
|
|
687
693
|
await page.getByLabel("Password").fill(adminUser.password);
|
|
694
|
+
const configResponsePromise = page.waitForResponse("**/_info/config");
|
|
688
695
|
await page.getByRole("button", { name: "Log in" }).click();
|
|
689
|
-
await
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
}
|
|
695
|
-
await expect(page.locator(".sw-loader")).toHaveCount(0, {
|
|
696
|
-
timeout: 1e4
|
|
697
|
-
});
|
|
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)));
|
|
701
|
+
}
|
|
698
702
|
await use(page);
|
|
699
703
|
await page.close();
|
|
700
704
|
await context.close();
|