@shopware-ag/acceptance-test-suite 6.0.0 → 8.0.0
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 +45 -1
- package/dist/index.d.ts +45 -1
- package/dist/index.mjs +361 -269
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -328,6 +328,20 @@ type CmsPage = components['schemas']['CmsPage'] & {
|
|
|
328
328
|
type CustomerGroup = components['schemas']['CustomerGroup'] & {
|
|
329
329
|
id: string;
|
|
330
330
|
};
|
|
331
|
+
interface RegistrationData {
|
|
332
|
+
salutation: string;
|
|
333
|
+
firstName: string;
|
|
334
|
+
lastName: string;
|
|
335
|
+
email: string;
|
|
336
|
+
password: string;
|
|
337
|
+
street: string;
|
|
338
|
+
city: string;
|
|
339
|
+
country: string;
|
|
340
|
+
postalCode: string;
|
|
341
|
+
company: string;
|
|
342
|
+
department: string;
|
|
343
|
+
vatRegNo: string;
|
|
344
|
+
}
|
|
331
345
|
|
|
332
346
|
interface CreatedRecord {
|
|
333
347
|
resource: string;
|
|
@@ -878,6 +892,7 @@ declare class TestDataService {
|
|
|
878
892
|
getBasicPromotionStruct(salesChannelId?: string, overrides?: Partial<Promotion>): Partial<Promotion>;
|
|
879
893
|
getBasicCmsStruct(cmsType: string, overrides: Partial<CmsPage>): Partial<CmsPage>;
|
|
880
894
|
getBasicCustomerGroupStruct(overrides?: Partial<CustomerGroup>): Partial<CustomerGroup>;
|
|
895
|
+
clearCaches(): Promise<void>;
|
|
881
896
|
}
|
|
882
897
|
|
|
883
898
|
interface TestDataFixtureTypes {
|
|
@@ -944,6 +959,7 @@ declare class Home implements PageObject {
|
|
|
944
959
|
readonly consentDialogAcceptAllCookiesButton: Locator;
|
|
945
960
|
readonly consentDialogSaveButton: Locator;
|
|
946
961
|
readonly consentCookieBannerContainer: Locator;
|
|
962
|
+
readonly offcanvasBackdrop: Locator;
|
|
947
963
|
constructor(page: Page);
|
|
948
964
|
getListingItemByProductId(productId: string): Promise<Record<string, Locator>>;
|
|
949
965
|
url(): string;
|
|
@@ -1080,6 +1096,8 @@ declare class AccountLogin implements PageObject {
|
|
|
1080
1096
|
readonly successAlert: Locator;
|
|
1081
1097
|
readonly personalFormArea: Locator;
|
|
1082
1098
|
readonly billingAddressFormArea: Locator;
|
|
1099
|
+
readonly accountTypeSelect: Locator;
|
|
1100
|
+
readonly salutationSelect: Locator;
|
|
1083
1101
|
readonly firstNameInput: Locator;
|
|
1084
1102
|
readonly lastNameInput: Locator;
|
|
1085
1103
|
readonly companyInput: Locator;
|
|
@@ -1172,6 +1190,28 @@ declare class CustomRegister extends AccountLogin implements PageObject {
|
|
|
1172
1190
|
url(customCustomerGroupName?: string): string;
|
|
1173
1191
|
}
|
|
1174
1192
|
|
|
1193
|
+
declare class CheckoutOrderEdit implements PageObject {
|
|
1194
|
+
readonly page: Page;
|
|
1195
|
+
readonly completePaymentButton: Locator;
|
|
1196
|
+
readonly orderCancelButton: Locator;
|
|
1197
|
+
readonly dialogOrderCancel: Locator;
|
|
1198
|
+
readonly dialogOrderCancelButton: Locator;
|
|
1199
|
+
readonly dialogBackButton: Locator;
|
|
1200
|
+
/**
|
|
1201
|
+
* Payment options
|
|
1202
|
+
*/
|
|
1203
|
+
readonly paymentCashOnDelivery: Locator;
|
|
1204
|
+
readonly paymentPaidInAdvance: Locator;
|
|
1205
|
+
readonly paymentInvoice: Locator;
|
|
1206
|
+
/**
|
|
1207
|
+
* Shipping options
|
|
1208
|
+
*/
|
|
1209
|
+
readonly shippingStandard: Locator;
|
|
1210
|
+
readonly shippingExpress: Locator;
|
|
1211
|
+
constructor(page: Page);
|
|
1212
|
+
url(orderUuid: string): string;
|
|
1213
|
+
}
|
|
1214
|
+
|
|
1175
1215
|
interface StorefrontPageTypes {
|
|
1176
1216
|
StorefrontHome: Home;
|
|
1177
1217
|
StorefrontProductDetail: ProductDetail$1;
|
|
@@ -1190,6 +1230,7 @@ interface StorefrontPageTypes {
|
|
|
1190
1230
|
StorefrontSearch: Search;
|
|
1191
1231
|
StorefrontSearchSuggest: SearchSuggest;
|
|
1192
1232
|
StorefrontCustomRegister: CustomRegister;
|
|
1233
|
+
StorefrontCheckoutOrderEdit: CheckoutOrderEdit;
|
|
1193
1234
|
}
|
|
1194
1235
|
declare const StorefrontPageObjects: {
|
|
1195
1236
|
Home: typeof Home;
|
|
@@ -1209,6 +1250,7 @@ declare const StorefrontPageObjects: {
|
|
|
1209
1250
|
Search: typeof Search;
|
|
1210
1251
|
SearchSuggest: typeof SearchSuggest;
|
|
1211
1252
|
CustomRegister: typeof CustomRegister;
|
|
1253
|
+
CheckoutOrderEdit: typeof CheckoutOrderEdit;
|
|
1212
1254
|
};
|
|
1213
1255
|
|
|
1214
1256
|
declare class ProductDetail implements PageObject {
|
|
@@ -1812,6 +1854,8 @@ declare const test: _playwright_test.TestType<_playwright_test.PlaywrightTestArg
|
|
|
1812
1854
|
ExpectNotification: Task;
|
|
1813
1855
|
} & {
|
|
1814
1856
|
CreateLinkTypeCategory: Task;
|
|
1857
|
+
} & {
|
|
1858
|
+
SetSystemConfigValues: Task;
|
|
1815
1859
|
} & {
|
|
1816
1860
|
Login: Task;
|
|
1817
1861
|
} & {
|
|
@@ -1852,4 +1896,4 @@ declare const test: _playwright_test.TestType<_playwright_test.PlaywrightTestArg
|
|
|
1852
1896
|
ValidateAccessibility: (pageName: string, assertViolations?: number | boolean | undefined, createReport?: boolean | undefined, ruleTags?: string[] | undefined, outputDir?: string | undefined) => () => Promise<axe_core.Result[]>;
|
|
1853
1897
|
}, _playwright_test.PlaywrightWorkerArgs & _playwright_test.PlaywrightWorkerOptions & FixtureTypes>;
|
|
1854
1898
|
|
|
1855
|
-
export { AdminPageObjects, type CalculatedTaxes, type Category$1 as Category, type CmsPage, type Country, type CreatedRecord, type Currency$1 as Currency, type Customer, type CustomerAddress, type CustomerGroup, type DataServiceOptions, type DeliveryTime, type FixtureTypes, type Manufacturer, type Media, type Order, type OrderDelivery, type OrderLineItem, type OrderStatus, type PageObject, type PaymentMethod, type Price, type Product, type ProductPrice, type Promotion, type PromotionDiscount, type PropertyGroup, type PropertyGroupOption, type Rule, type SalesChannel, type Salutation, type ShippingMethod, type SimpleLineItem, type StateMachine, type StateMachineState, StorefrontPageObjects, type SyncApiOperation, type SystemConfig, type Tag, type Task, type TaxRules, TestDataService, createRandomImage, extractIdFromUrl, getCountryId, getCurrency, getDefaultShippingMethodId, getFlowId, getLanguageData, getMediaId, getOrderTransactionId, getPaymentMethodId, getPromotionWithDiscount, getSalutationId, getSnippetSetId, getStateMachineId, getStateMachineStateId, getTaxId, getThemeId, isSaaSInstance, isThemeCompiled, setOrderStatus, test };
|
|
1899
|
+
export { AdminPageObjects, type CalculatedTaxes, type Category$1 as Category, type CmsPage, type Country, type CreatedRecord, type Currency$1 as Currency, type Customer, type CustomerAddress, type CustomerGroup, type DataServiceOptions, type DeliveryTime, type FixtureTypes, type Manufacturer, type Media, type Order, type OrderDelivery, type OrderLineItem, type OrderStatus, type PageObject, type PaymentMethod, type Price, type Product, type ProductPrice, type Promotion, type PromotionDiscount, type PropertyGroup, type PropertyGroupOption, type RegistrationData, type Rule, type SalesChannel, type Salutation, type ShippingMethod, type SimpleLineItem, type StateMachine, type StateMachineState, StorefrontPageObjects, type SyncApiOperation, type SystemConfig, type Tag, type Task, type TaxRules, TestDataService, createRandomImage, extractIdFromUrl, getCountryId, getCurrency, getDefaultShippingMethodId, getFlowId, getLanguageData, getMediaId, getOrderTransactionId, getPaymentMethodId, getPromotionWithDiscount, getSalutationId, getSnippetSetId, getStateMachineId, getStateMachineStateId, getTaxId, getThemeId, isSaaSInstance, isThemeCompiled, setOrderStatus, test };
|
package/dist/index.d.ts
CHANGED
|
@@ -328,6 +328,20 @@ type CmsPage = components['schemas']['CmsPage'] & {
|
|
|
328
328
|
type CustomerGroup = components['schemas']['CustomerGroup'] & {
|
|
329
329
|
id: string;
|
|
330
330
|
};
|
|
331
|
+
interface RegistrationData {
|
|
332
|
+
salutation: string;
|
|
333
|
+
firstName: string;
|
|
334
|
+
lastName: string;
|
|
335
|
+
email: string;
|
|
336
|
+
password: string;
|
|
337
|
+
street: string;
|
|
338
|
+
city: string;
|
|
339
|
+
country: string;
|
|
340
|
+
postalCode: string;
|
|
341
|
+
company: string;
|
|
342
|
+
department: string;
|
|
343
|
+
vatRegNo: string;
|
|
344
|
+
}
|
|
331
345
|
|
|
332
346
|
interface CreatedRecord {
|
|
333
347
|
resource: string;
|
|
@@ -878,6 +892,7 @@ declare class TestDataService {
|
|
|
878
892
|
getBasicPromotionStruct(salesChannelId?: string, overrides?: Partial<Promotion>): Partial<Promotion>;
|
|
879
893
|
getBasicCmsStruct(cmsType: string, overrides: Partial<CmsPage>): Partial<CmsPage>;
|
|
880
894
|
getBasicCustomerGroupStruct(overrides?: Partial<CustomerGroup>): Partial<CustomerGroup>;
|
|
895
|
+
clearCaches(): Promise<void>;
|
|
881
896
|
}
|
|
882
897
|
|
|
883
898
|
interface TestDataFixtureTypes {
|
|
@@ -944,6 +959,7 @@ declare class Home implements PageObject {
|
|
|
944
959
|
readonly consentDialogAcceptAllCookiesButton: Locator;
|
|
945
960
|
readonly consentDialogSaveButton: Locator;
|
|
946
961
|
readonly consentCookieBannerContainer: Locator;
|
|
962
|
+
readonly offcanvasBackdrop: Locator;
|
|
947
963
|
constructor(page: Page);
|
|
948
964
|
getListingItemByProductId(productId: string): Promise<Record<string, Locator>>;
|
|
949
965
|
url(): string;
|
|
@@ -1080,6 +1096,8 @@ declare class AccountLogin implements PageObject {
|
|
|
1080
1096
|
readonly successAlert: Locator;
|
|
1081
1097
|
readonly personalFormArea: Locator;
|
|
1082
1098
|
readonly billingAddressFormArea: Locator;
|
|
1099
|
+
readonly accountTypeSelect: Locator;
|
|
1100
|
+
readonly salutationSelect: Locator;
|
|
1083
1101
|
readonly firstNameInput: Locator;
|
|
1084
1102
|
readonly lastNameInput: Locator;
|
|
1085
1103
|
readonly companyInput: Locator;
|
|
@@ -1172,6 +1190,28 @@ declare class CustomRegister extends AccountLogin implements PageObject {
|
|
|
1172
1190
|
url(customCustomerGroupName?: string): string;
|
|
1173
1191
|
}
|
|
1174
1192
|
|
|
1193
|
+
declare class CheckoutOrderEdit implements PageObject {
|
|
1194
|
+
readonly page: Page;
|
|
1195
|
+
readonly completePaymentButton: Locator;
|
|
1196
|
+
readonly orderCancelButton: Locator;
|
|
1197
|
+
readonly dialogOrderCancel: Locator;
|
|
1198
|
+
readonly dialogOrderCancelButton: Locator;
|
|
1199
|
+
readonly dialogBackButton: Locator;
|
|
1200
|
+
/**
|
|
1201
|
+
* Payment options
|
|
1202
|
+
*/
|
|
1203
|
+
readonly paymentCashOnDelivery: Locator;
|
|
1204
|
+
readonly paymentPaidInAdvance: Locator;
|
|
1205
|
+
readonly paymentInvoice: Locator;
|
|
1206
|
+
/**
|
|
1207
|
+
* Shipping options
|
|
1208
|
+
*/
|
|
1209
|
+
readonly shippingStandard: Locator;
|
|
1210
|
+
readonly shippingExpress: Locator;
|
|
1211
|
+
constructor(page: Page);
|
|
1212
|
+
url(orderUuid: string): string;
|
|
1213
|
+
}
|
|
1214
|
+
|
|
1175
1215
|
interface StorefrontPageTypes {
|
|
1176
1216
|
StorefrontHome: Home;
|
|
1177
1217
|
StorefrontProductDetail: ProductDetail$1;
|
|
@@ -1190,6 +1230,7 @@ interface StorefrontPageTypes {
|
|
|
1190
1230
|
StorefrontSearch: Search;
|
|
1191
1231
|
StorefrontSearchSuggest: SearchSuggest;
|
|
1192
1232
|
StorefrontCustomRegister: CustomRegister;
|
|
1233
|
+
StorefrontCheckoutOrderEdit: CheckoutOrderEdit;
|
|
1193
1234
|
}
|
|
1194
1235
|
declare const StorefrontPageObjects: {
|
|
1195
1236
|
Home: typeof Home;
|
|
@@ -1209,6 +1250,7 @@ declare const StorefrontPageObjects: {
|
|
|
1209
1250
|
Search: typeof Search;
|
|
1210
1251
|
SearchSuggest: typeof SearchSuggest;
|
|
1211
1252
|
CustomRegister: typeof CustomRegister;
|
|
1253
|
+
CheckoutOrderEdit: typeof CheckoutOrderEdit;
|
|
1212
1254
|
};
|
|
1213
1255
|
|
|
1214
1256
|
declare class ProductDetail implements PageObject {
|
|
@@ -1812,6 +1854,8 @@ declare const test: _playwright_test.TestType<_playwright_test.PlaywrightTestArg
|
|
|
1812
1854
|
ExpectNotification: Task;
|
|
1813
1855
|
} & {
|
|
1814
1856
|
CreateLinkTypeCategory: Task;
|
|
1857
|
+
} & {
|
|
1858
|
+
SetSystemConfigValues: Task;
|
|
1815
1859
|
} & {
|
|
1816
1860
|
Login: Task;
|
|
1817
1861
|
} & {
|
|
@@ -1852,4 +1896,4 @@ declare const test: _playwright_test.TestType<_playwright_test.PlaywrightTestArg
|
|
|
1852
1896
|
ValidateAccessibility: (pageName: string, assertViolations?: number | boolean | undefined, createReport?: boolean | undefined, ruleTags?: string[] | undefined, outputDir?: string | undefined) => () => Promise<axe_core.Result[]>;
|
|
1853
1897
|
}, _playwright_test.PlaywrightWorkerArgs & _playwright_test.PlaywrightWorkerOptions & FixtureTypes>;
|
|
1854
1898
|
|
|
1855
|
-
export { AdminPageObjects, type CalculatedTaxes, type Category$1 as Category, type CmsPage, type Country, type CreatedRecord, type Currency$1 as Currency, type Customer, type CustomerAddress, type CustomerGroup, type DataServiceOptions, type DeliveryTime, type FixtureTypes, type Manufacturer, type Media, type Order, type OrderDelivery, type OrderLineItem, type OrderStatus, type PageObject, type PaymentMethod, type Price, type Product, type ProductPrice, type Promotion, type PromotionDiscount, type PropertyGroup, type PropertyGroupOption, type Rule, type SalesChannel, type Salutation, type ShippingMethod, type SimpleLineItem, type StateMachine, type StateMachineState, StorefrontPageObjects, type SyncApiOperation, type SystemConfig, type Tag, type Task, type TaxRules, TestDataService, createRandomImage, extractIdFromUrl, getCountryId, getCurrency, getDefaultShippingMethodId, getFlowId, getLanguageData, getMediaId, getOrderTransactionId, getPaymentMethodId, getPromotionWithDiscount, getSalutationId, getSnippetSetId, getStateMachineId, getStateMachineStateId, getTaxId, getThemeId, isSaaSInstance, isThemeCompiled, setOrderStatus, test };
|
|
1899
|
+
export { AdminPageObjects, type CalculatedTaxes, type Category$1 as Category, type CmsPage, type Country, type CreatedRecord, type Currency$1 as Currency, type Customer, type CustomerAddress, type CustomerGroup, type DataServiceOptions, type DeliveryTime, type FixtureTypes, type Manufacturer, type Media, type Order, type OrderDelivery, type OrderLineItem, type OrderStatus, type PageObject, type PaymentMethod, type Price, type Product, type ProductPrice, type Promotion, type PromotionDiscount, type PropertyGroup, type PropertyGroupOption, type RegistrationData, type Rule, type SalesChannel, type Salutation, type ShippingMethod, type SimpleLineItem, type StateMachine, type StateMachineState, StorefrontPageObjects, type SyncApiOperation, type SystemConfig, type Tag, type Task, type TaxRules, TestDataService, createRandomImage, extractIdFromUrl, getCountryId, getCurrency, getDefaultShippingMethodId, getFlowId, getLanguageData, getMediaId, getOrderTransactionId, getPaymentMethodId, getPromotionWithDiscount, getSalutationId, getSnippetSetId, getStateMachineId, getStateMachineStateId, getTaxId, getThemeId, isSaaSInstance, isThemeCompiled, setOrderStatus, test };
|
package/dist/index.mjs
CHANGED
|
@@ -385,16 +385,16 @@ const test$c = test$e.extend({
|
|
|
385
385
|
]
|
|
386
386
|
});
|
|
387
387
|
|
|
388
|
-
var __defProp$
|
|
389
|
-
var __defNormalProp$
|
|
390
|
-
var __publicField$
|
|
391
|
-
__defNormalProp$
|
|
388
|
+
var __defProp$N = Object.defineProperty;
|
|
389
|
+
var __defNormalProp$N = (obj, key, value) => key in obj ? __defProp$N(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
390
|
+
var __publicField$N = (obj, key, value) => {
|
|
391
|
+
__defNormalProp$N(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
392
392
|
return value;
|
|
393
393
|
};
|
|
394
394
|
const _AdminApiContext = class _AdminApiContext {
|
|
395
395
|
constructor(context, options) {
|
|
396
|
-
__publicField$
|
|
397
|
-
__publicField$
|
|
396
|
+
__publicField$N(this, "context");
|
|
397
|
+
__publicField$N(this, "options");
|
|
398
398
|
this.context = context;
|
|
399
399
|
this.options = options;
|
|
400
400
|
}
|
|
@@ -486,7 +486,7 @@ const _AdminApiContext = class _AdminApiContext {
|
|
|
486
486
|
return this.context.head(url, options);
|
|
487
487
|
}
|
|
488
488
|
};
|
|
489
|
-
__publicField$
|
|
489
|
+
__publicField$N(_AdminApiContext, "defaultOptions", {
|
|
490
490
|
app_url: process.env["APP_URL"],
|
|
491
491
|
client_id: process.env["SHOPWARE_ACCESS_KEY_ID"],
|
|
492
492
|
client_secret: process.env["SHOPWARE_SECRET_ACCESS_KEY"],
|
|
@@ -496,16 +496,16 @@ __publicField$M(_AdminApiContext, "defaultOptions", {
|
|
|
496
496
|
});
|
|
497
497
|
let AdminApiContext = _AdminApiContext;
|
|
498
498
|
|
|
499
|
-
var __defProp$
|
|
500
|
-
var __defNormalProp$
|
|
501
|
-
var __publicField$
|
|
502
|
-
__defNormalProp$
|
|
499
|
+
var __defProp$M = Object.defineProperty;
|
|
500
|
+
var __defNormalProp$M = (obj, key, value) => key in obj ? __defProp$M(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
501
|
+
var __publicField$M = (obj, key, value) => {
|
|
502
|
+
__defNormalProp$M(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
503
503
|
return value;
|
|
504
504
|
};
|
|
505
505
|
const _StoreApiContext = class _StoreApiContext {
|
|
506
506
|
constructor(context, options) {
|
|
507
|
-
__publicField$
|
|
508
|
-
__publicField$
|
|
507
|
+
__publicField$M(this, "context");
|
|
508
|
+
__publicField$M(this, "options");
|
|
509
509
|
this.context = context;
|
|
510
510
|
this.options = options;
|
|
511
511
|
}
|
|
@@ -564,21 +564,21 @@ const _StoreApiContext = class _StoreApiContext {
|
|
|
564
564
|
return this.context.head(url, options);
|
|
565
565
|
}
|
|
566
566
|
};
|
|
567
|
-
__publicField$
|
|
567
|
+
__publicField$M(_StoreApiContext, "defaultOptions", {
|
|
568
568
|
app_url: process.env["APP_URL"],
|
|
569
569
|
ignoreHTTPSErrors: true
|
|
570
570
|
});
|
|
571
571
|
let StoreApiContext = _StoreApiContext;
|
|
572
572
|
|
|
573
|
-
var __defProp$
|
|
574
|
-
var __defNormalProp$
|
|
575
|
-
var __publicField$
|
|
576
|
-
__defNormalProp$
|
|
573
|
+
var __defProp$L = Object.defineProperty;
|
|
574
|
+
var __defNormalProp$L = (obj, key, value) => key in obj ? __defProp$L(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
575
|
+
var __publicField$L = (obj, key, value) => {
|
|
576
|
+
__defNormalProp$L(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
577
577
|
return value;
|
|
578
578
|
};
|
|
579
579
|
class MailpitApiContext {
|
|
580
580
|
constructor(context) {
|
|
581
|
-
__publicField$
|
|
581
|
+
__publicField$L(this, "context");
|
|
582
582
|
this.context = context;
|
|
583
583
|
}
|
|
584
584
|
/**
|
|
@@ -875,17 +875,17 @@ const test$a = test$e.extend({
|
|
|
875
875
|
}
|
|
876
876
|
});
|
|
877
877
|
|
|
878
|
-
var __defProp$
|
|
879
|
-
var __defNormalProp$
|
|
880
|
-
var __publicField$
|
|
881
|
-
__defNormalProp$
|
|
878
|
+
var __defProp$K = Object.defineProperty;
|
|
879
|
+
var __defNormalProp$K = (obj, key, value) => key in obj ? __defProp$K(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
880
|
+
var __publicField$K = (obj, key, value) => {
|
|
881
|
+
__defNormalProp$K(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
882
882
|
return value;
|
|
883
883
|
};
|
|
884
884
|
class Actor {
|
|
885
885
|
constructor(name, page) {
|
|
886
|
-
__publicField$
|
|
887
|
-
__publicField$
|
|
888
|
-
__publicField$
|
|
886
|
+
__publicField$K(this, "page");
|
|
887
|
+
__publicField$K(this, "name");
|
|
888
|
+
__publicField$K(this, "expects", expect);
|
|
889
889
|
this.name = name;
|
|
890
890
|
this.page = page;
|
|
891
891
|
}
|
|
@@ -934,31 +934,31 @@ function createRandomImage(width = 800, height = 600) {
|
|
|
934
934
|
return new Image(width, height, buffer);
|
|
935
935
|
}
|
|
936
936
|
|
|
937
|
-
var __defProp$
|
|
938
|
-
var __defNormalProp$
|
|
939
|
-
var __publicField$
|
|
940
|
-
__defNormalProp$
|
|
937
|
+
var __defProp$J = Object.defineProperty;
|
|
938
|
+
var __defNormalProp$J = (obj, key, value) => key in obj ? __defProp$J(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
939
|
+
var __publicField$J = (obj, key, value) => {
|
|
940
|
+
__defNormalProp$J(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
941
941
|
return value;
|
|
942
942
|
};
|
|
943
943
|
class TestDataService {
|
|
944
944
|
constructor(AdminApiClient, IdProvider, options) {
|
|
945
|
-
__publicField$
|
|
946
|
-
__publicField$
|
|
947
|
-
__publicField$
|
|
948
|
-
__publicField$
|
|
949
|
-
__publicField$
|
|
950
|
-
__publicField$
|
|
951
|
-
__publicField$
|
|
952
|
-
__publicField$
|
|
953
|
-
__publicField$
|
|
954
|
-
__publicField$
|
|
955
|
-
__publicField$
|
|
945
|
+
__publicField$J(this, "AdminApiClient");
|
|
946
|
+
__publicField$J(this, "IdProvider");
|
|
947
|
+
__publicField$J(this, "namePrefix", "Test-");
|
|
948
|
+
__publicField$J(this, "nameSuffix", "");
|
|
949
|
+
__publicField$J(this, "defaultSalesChannel");
|
|
950
|
+
__publicField$J(this, "defaultTaxId");
|
|
951
|
+
__publicField$J(this, "defaultCurrencyId");
|
|
952
|
+
__publicField$J(this, "defaultCategoryId");
|
|
953
|
+
__publicField$J(this, "defaultLanguageId");
|
|
954
|
+
__publicField$J(this, "defaultCountryId");
|
|
955
|
+
__publicField$J(this, "defaultCustomerGroupId");
|
|
956
956
|
/**
|
|
957
957
|
* Configures if an automated cleanup of the data should be executed.
|
|
958
958
|
*
|
|
959
959
|
* @private
|
|
960
960
|
*/
|
|
961
|
-
__publicField$
|
|
961
|
+
__publicField$J(this, "shouldCleanUp", true);
|
|
962
962
|
/**
|
|
963
963
|
* Configuration of higher priority entities for the cleanup operation.
|
|
964
964
|
* These entities will be deleted before others.
|
|
@@ -966,19 +966,19 @@ class TestDataService {
|
|
|
966
966
|
*
|
|
967
967
|
* @private
|
|
968
968
|
*/
|
|
969
|
-
__publicField$
|
|
969
|
+
__publicField$J(this, "highPriorityEntities", ["order", "product", "landing_page"]);
|
|
970
970
|
/**
|
|
971
971
|
* A registry of all created records.
|
|
972
972
|
*
|
|
973
973
|
* @private
|
|
974
974
|
*/
|
|
975
|
-
__publicField$
|
|
975
|
+
__publicField$J(this, "createdRecords", []);
|
|
976
976
|
/**
|
|
977
977
|
* Function that generates combinations from n number of arrays
|
|
978
978
|
* with m number of elements in them.
|
|
979
979
|
* @param array
|
|
980
980
|
*/
|
|
981
|
-
__publicField$
|
|
981
|
+
__publicField$J(this, "combineAll", (array) => {
|
|
982
982
|
const result = [];
|
|
983
983
|
const max = array.length - 1;
|
|
984
984
|
const helper = (tmpArray, i) => {
|
|
@@ -1539,6 +1539,7 @@ class TestDataService {
|
|
|
1539
1539
|
expect(response.ok()).toBeTruthy();
|
|
1540
1540
|
const { data: systemConfigEntry } = await response.json();
|
|
1541
1541
|
this.addCreatedRecord("system_config", systemConfigEntry.id);
|
|
1542
|
+
await this.clearCaches();
|
|
1542
1543
|
return systemConfigEntry;
|
|
1543
1544
|
}
|
|
1544
1545
|
/**
|
|
@@ -2651,6 +2652,9 @@ class TestDataService {
|
|
|
2651
2652
|
};
|
|
2652
2653
|
return Object.assign({}, basicCustomerGroup, overrides);
|
|
2653
2654
|
}
|
|
2655
|
+
async clearCaches() {
|
|
2656
|
+
await this.AdminApiClient.delete("_action/cache");
|
|
2657
|
+
}
|
|
2654
2658
|
}
|
|
2655
2659
|
|
|
2656
2660
|
const test$8 = test$e.extend({
|
|
@@ -2669,16 +2673,16 @@ const test$8 = test$e.extend({
|
|
|
2669
2673
|
}
|
|
2670
2674
|
});
|
|
2671
2675
|
|
|
2672
|
-
var __defProp$
|
|
2673
|
-
var __defNormalProp$
|
|
2674
|
-
var __publicField$
|
|
2675
|
-
__defNormalProp$
|
|
2676
|
+
var __defProp$I = Object.defineProperty;
|
|
2677
|
+
var __defNormalProp$I = (obj, key, value) => key in obj ? __defProp$I(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2678
|
+
var __publicField$I = (obj, key, value) => {
|
|
2679
|
+
__defNormalProp$I(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
2676
2680
|
return value;
|
|
2677
2681
|
};
|
|
2678
2682
|
class IdProvider {
|
|
2679
2683
|
constructor(workerIndex, seed) {
|
|
2680
|
-
__publicField$
|
|
2681
|
-
__publicField$
|
|
2684
|
+
__publicField$I(this, "workerIndex");
|
|
2685
|
+
__publicField$I(this, "seed");
|
|
2682
2686
|
this.workerIndex = workerIndex;
|
|
2683
2687
|
this.seed = seed;
|
|
2684
2688
|
}
|
|
@@ -2752,29 +2756,30 @@ const test$7 = test$e.extend({
|
|
|
2752
2756
|
]
|
|
2753
2757
|
});
|
|
2754
2758
|
|
|
2755
|
-
var __defProp$
|
|
2756
|
-
var __defNormalProp$
|
|
2757
|
-
var __publicField$
|
|
2758
|
-
__defNormalProp$
|
|
2759
|
+
var __defProp$H = Object.defineProperty;
|
|
2760
|
+
var __defNormalProp$H = (obj, key, value) => key in obj ? __defProp$H(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2761
|
+
var __publicField$H = (obj, key, value) => {
|
|
2762
|
+
__defNormalProp$H(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
2759
2763
|
return value;
|
|
2760
2764
|
};
|
|
2761
2765
|
class Home {
|
|
2762
2766
|
constructor(page) {
|
|
2763
2767
|
this.page = page;
|
|
2764
|
-
__publicField$
|
|
2765
|
-
__publicField$
|
|
2766
|
-
__publicField$
|
|
2767
|
-
__publicField$
|
|
2768
|
-
__publicField$
|
|
2769
|
-
__publicField$
|
|
2770
|
-
__publicField$
|
|
2771
|
-
__publicField$
|
|
2772
|
-
__publicField$
|
|
2773
|
-
__publicField$
|
|
2774
|
-
__publicField$
|
|
2775
|
-
__publicField$
|
|
2776
|
-
__publicField$
|
|
2777
|
-
__publicField$
|
|
2768
|
+
__publicField$H(this, "productImages");
|
|
2769
|
+
__publicField$H(this, "productListItems");
|
|
2770
|
+
__publicField$H(this, "languagesDropdown");
|
|
2771
|
+
__publicField$H(this, "currenciesDropdown");
|
|
2772
|
+
__publicField$H(this, "consentOnlyTechnicallyRequiredButton");
|
|
2773
|
+
__publicField$H(this, "consentConfigureButton");
|
|
2774
|
+
__publicField$H(this, "consentAcceptAllCookiesButton");
|
|
2775
|
+
__publicField$H(this, "consentCookiePreferences");
|
|
2776
|
+
__publicField$H(this, "consentCookiePermissionContent");
|
|
2777
|
+
__publicField$H(this, "consentDialog");
|
|
2778
|
+
__publicField$H(this, "consentDialogTechnicallyRequiredCheckbox");
|
|
2779
|
+
__publicField$H(this, "consentDialogAcceptAllCookiesButton");
|
|
2780
|
+
__publicField$H(this, "consentDialogSaveButton");
|
|
2781
|
+
__publicField$H(this, "consentCookieBannerContainer");
|
|
2782
|
+
__publicField$H(this, "offcanvasBackdrop");
|
|
2778
2783
|
this.productImages = page.locator(".product-image-link");
|
|
2779
2784
|
this.productListItems = page.getByRole("listitem");
|
|
2780
2785
|
this.languagesDropdown = page.getByLabel("Shop settings").locator(".languages-menu");
|
|
@@ -2789,6 +2794,7 @@ class Home {
|
|
|
2789
2794
|
this.consentDialogTechnicallyRequiredCheckbox = this.consentDialog.getByRole("checkbox", { name: "Technically required" });
|
|
2790
2795
|
this.consentDialogSaveButton = this.consentDialog.getByRole("button", { name: "Save" });
|
|
2791
2796
|
this.consentDialogAcceptAllCookiesButton = this.consentDialog.getByRole("button", { name: "Accept all cookies" });
|
|
2797
|
+
this.offcanvasBackdrop = page.locator(".offcanvas-backdrop");
|
|
2792
2798
|
}
|
|
2793
2799
|
async getListingItemByProductId(productId) {
|
|
2794
2800
|
const listingItem = this.page.getByRole("listitem").filter({ has: this.page.locator(`[value="${productId}"]`) });
|
|
@@ -2818,26 +2824,26 @@ class Home {
|
|
|
2818
2824
|
}
|
|
2819
2825
|
}
|
|
2820
2826
|
|
|
2821
|
-
var __defProp$
|
|
2822
|
-
var __defNormalProp$
|
|
2823
|
-
var __publicField$
|
|
2824
|
-
__defNormalProp$
|
|
2827
|
+
var __defProp$G = Object.defineProperty;
|
|
2828
|
+
var __defNormalProp$G = (obj, key, value) => key in obj ? __defProp$G(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2829
|
+
var __publicField$G = (obj, key, value) => {
|
|
2830
|
+
__defNormalProp$G(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
2825
2831
|
return value;
|
|
2826
2832
|
};
|
|
2827
2833
|
let ProductDetail$1 = class ProductDetail {
|
|
2828
2834
|
constructor(page) {
|
|
2829
2835
|
this.page = page;
|
|
2830
|
-
__publicField$
|
|
2831
|
-
__publicField$
|
|
2832
|
-
__publicField$
|
|
2833
|
-
__publicField$
|
|
2834
|
-
__publicField$
|
|
2835
|
-
__publicField$
|
|
2836
|
-
__publicField$
|
|
2837
|
-
__publicField$
|
|
2838
|
-
__publicField$
|
|
2839
|
-
__publicField$
|
|
2840
|
-
__publicField$
|
|
2836
|
+
__publicField$G(this, "addToCartButton");
|
|
2837
|
+
__publicField$G(this, "quantitySelect");
|
|
2838
|
+
__publicField$G(this, "productSingleImage");
|
|
2839
|
+
__publicField$G(this, "productSinglePrice");
|
|
2840
|
+
__publicField$G(this, "productPriceRangesRow");
|
|
2841
|
+
__publicField$G(this, "offCanvasCartTitle");
|
|
2842
|
+
__publicField$G(this, "offCanvasCart");
|
|
2843
|
+
__publicField$G(this, "offCanvasCartGoToCheckoutButton");
|
|
2844
|
+
__publicField$G(this, "offCanvasLineItemImages");
|
|
2845
|
+
__publicField$G(this, "offCanvasSummaryTotalPrice");
|
|
2846
|
+
__publicField$G(this, "offCanvas");
|
|
2841
2847
|
this.addToCartButton = page.getByRole("button", { name: "Add to shopping cart" });
|
|
2842
2848
|
this.quantitySelect = page.getByLabel("Quantity", { exact: true });
|
|
2843
2849
|
this.productSingleImage = page.locator(".gallery-slider-single-image");
|
|
@@ -2859,18 +2865,18 @@ let ProductDetail$1 = class ProductDetail {
|
|
|
2859
2865
|
}
|
|
2860
2866
|
};
|
|
2861
2867
|
|
|
2862
|
-
var __defProp$
|
|
2863
|
-
var __defNormalProp$
|
|
2864
|
-
var __publicField$
|
|
2865
|
-
__defNormalProp$
|
|
2868
|
+
var __defProp$F = Object.defineProperty;
|
|
2869
|
+
var __defNormalProp$F = (obj, key, value) => key in obj ? __defProp$F(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2870
|
+
var __publicField$F = (obj, key, value) => {
|
|
2871
|
+
__defNormalProp$F(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
2866
2872
|
return value;
|
|
2867
2873
|
};
|
|
2868
2874
|
class Category {
|
|
2869
2875
|
constructor(page) {
|
|
2870
2876
|
this.page = page;
|
|
2871
|
-
__publicField$
|
|
2872
|
-
__publicField$
|
|
2873
|
-
__publicField$
|
|
2877
|
+
__publicField$F(this, "sortingSelect");
|
|
2878
|
+
__publicField$F(this, "firstProductBuyButton");
|
|
2879
|
+
__publicField$F(this, "noProductsFoundAlert");
|
|
2874
2880
|
this.sortingSelect = page.getByLabel("Sorting");
|
|
2875
2881
|
this.firstProductBuyButton = page.getByRole("button", { name: "Add to shopping cart" }).first();
|
|
2876
2882
|
this.noProductsFoundAlert = page.getByText("No products found.");
|
|
@@ -2880,24 +2886,24 @@ class Category {
|
|
|
2880
2886
|
}
|
|
2881
2887
|
}
|
|
2882
2888
|
|
|
2883
|
-
var __defProp$
|
|
2884
|
-
var __defNormalProp$
|
|
2885
|
-
var __publicField$
|
|
2886
|
-
__defNormalProp$
|
|
2889
|
+
var __defProp$E = Object.defineProperty;
|
|
2890
|
+
var __defNormalProp$E = (obj, key, value) => key in obj ? __defProp$E(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2891
|
+
var __publicField$E = (obj, key, value) => {
|
|
2892
|
+
__defNormalProp$E(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
2887
2893
|
return value;
|
|
2888
2894
|
};
|
|
2889
2895
|
class CheckoutCart {
|
|
2890
2896
|
constructor(page) {
|
|
2891
2897
|
this.page = page;
|
|
2892
|
-
__publicField$
|
|
2893
|
-
__publicField$
|
|
2894
|
-
__publicField$
|
|
2895
|
-
__publicField$
|
|
2896
|
-
__publicField$
|
|
2897
|
-
__publicField$
|
|
2898
|
-
__publicField$
|
|
2899
|
-
__publicField$
|
|
2900
|
-
__publicField$
|
|
2898
|
+
__publicField$E(this, "headline");
|
|
2899
|
+
__publicField$E(this, "goToCheckoutButton");
|
|
2900
|
+
__publicField$E(this, "enterPromoInput");
|
|
2901
|
+
__publicField$E(this, "grandTotalPrice");
|
|
2902
|
+
__publicField$E(this, "emptyCartAlert");
|
|
2903
|
+
__publicField$E(this, "stockReachedAlert");
|
|
2904
|
+
__publicField$E(this, "cartLineItemImages");
|
|
2905
|
+
__publicField$E(this, "unitPriceInfo");
|
|
2906
|
+
__publicField$E(this, "cartQuantityNumber");
|
|
2901
2907
|
this.headline = page.getByRole("heading", { name: "Shopping cart" });
|
|
2902
2908
|
this.goToCheckoutButton = page.getByRole("link", { name: "Go to checkout" });
|
|
2903
2909
|
this.enterPromoInput = page.getByLabel("Promo code");
|
|
@@ -2938,25 +2944,25 @@ class CheckoutCart {
|
|
|
2938
2944
|
}
|
|
2939
2945
|
}
|
|
2940
2946
|
|
|
2941
|
-
var __defProp$
|
|
2942
|
-
var __defNormalProp$
|
|
2943
|
-
var __publicField$
|
|
2944
|
-
__defNormalProp$
|
|
2947
|
+
var __defProp$D = Object.defineProperty;
|
|
2948
|
+
var __defNormalProp$D = (obj, key, value) => key in obj ? __defProp$D(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2949
|
+
var __publicField$D = (obj, key, value) => {
|
|
2950
|
+
__defNormalProp$D(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
2945
2951
|
return value;
|
|
2946
2952
|
};
|
|
2947
2953
|
class OffCanvasCart {
|
|
2948
2954
|
constructor(page) {
|
|
2949
2955
|
this.page = page;
|
|
2950
|
-
__publicField$
|
|
2951
|
-
__publicField$
|
|
2952
|
-
__publicField$
|
|
2953
|
-
__publicField$
|
|
2954
|
-
__publicField$
|
|
2955
|
-
__publicField$
|
|
2956
|
-
__publicField$
|
|
2957
|
-
__publicField$
|
|
2958
|
-
__publicField$
|
|
2959
|
-
__publicField$
|
|
2956
|
+
__publicField$D(this, "headline");
|
|
2957
|
+
__publicField$D(this, "itemCount");
|
|
2958
|
+
__publicField$D(this, "goToCheckoutButton");
|
|
2959
|
+
__publicField$D(this, "goToCartButton");
|
|
2960
|
+
__publicField$D(this, "continueShoppingButton");
|
|
2961
|
+
__publicField$D(this, "enterPromoInput");
|
|
2962
|
+
__publicField$D(this, "submitDiscountButton");
|
|
2963
|
+
__publicField$D(this, "subTotalPrice");
|
|
2964
|
+
__publicField$D(this, "shippingCosts");
|
|
2965
|
+
__publicField$D(this, "cartQuantityNumber");
|
|
2960
2966
|
this.headline = page.getByRole("heading", { name: "Shopping cart" });
|
|
2961
2967
|
this.itemCount = page.locator(".offcanvas-cart-header-count");
|
|
2962
2968
|
this.goToCheckoutButton = page.getByRole("link", { name: "Go to checkout" });
|
|
@@ -2998,36 +3004,36 @@ class OffCanvasCart {
|
|
|
2998
3004
|
}
|
|
2999
3005
|
}
|
|
3000
3006
|
|
|
3001
|
-
var __defProp$
|
|
3002
|
-
var __defNormalProp$
|
|
3003
|
-
var __publicField$
|
|
3004
|
-
__defNormalProp$
|
|
3007
|
+
var __defProp$C = Object.defineProperty;
|
|
3008
|
+
var __defNormalProp$C = (obj, key, value) => key in obj ? __defProp$C(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3009
|
+
var __publicField$C = (obj, key, value) => {
|
|
3010
|
+
__defNormalProp$C(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
3005
3011
|
return value;
|
|
3006
3012
|
};
|
|
3007
3013
|
class CheckoutConfirm {
|
|
3008
3014
|
constructor(page) {
|
|
3009
3015
|
this.page = page;
|
|
3010
|
-
__publicField$
|
|
3011
|
-
__publicField$
|
|
3012
|
-
__publicField$
|
|
3013
|
-
__publicField$
|
|
3014
|
-
__publicField$
|
|
3015
|
-
__publicField$
|
|
3016
|
+
__publicField$C(this, "headline");
|
|
3017
|
+
__publicField$C(this, "termsAndConditionsCheckbox");
|
|
3018
|
+
__publicField$C(this, "immediateAccessToDigitalProductCheckbox");
|
|
3019
|
+
__publicField$C(this, "grandTotalPrice");
|
|
3020
|
+
__publicField$C(this, "taxPrice");
|
|
3021
|
+
__publicField$C(this, "submitOrderButton");
|
|
3016
3022
|
/**
|
|
3017
3023
|
* Payment options
|
|
3018
3024
|
*/
|
|
3019
|
-
__publicField$
|
|
3020
|
-
__publicField$
|
|
3021
|
-
__publicField$
|
|
3025
|
+
__publicField$C(this, "paymentCashOnDelivery");
|
|
3026
|
+
__publicField$C(this, "paymentPaidInAdvance");
|
|
3027
|
+
__publicField$C(this, "paymentInvoice");
|
|
3022
3028
|
/**
|
|
3023
3029
|
* Shipping options
|
|
3024
3030
|
*/
|
|
3025
|
-
__publicField$
|
|
3026
|
-
__publicField$
|
|
3031
|
+
__publicField$C(this, "shippingStandard");
|
|
3032
|
+
__publicField$C(this, "shippingExpress");
|
|
3027
3033
|
/**
|
|
3028
3034
|
* Product details
|
|
3029
3035
|
*/
|
|
3030
|
-
__publicField$
|
|
3036
|
+
__publicField$C(this, "cartLineItemImages");
|
|
3031
3037
|
this.headline = page.getByRole("heading", { name: "Complete order" });
|
|
3032
3038
|
this.termsAndConditionsCheckbox = page.getByLabel("I have read and accepted the general terms and conditions.");
|
|
3033
3039
|
this.immediateAccessToDigitalProductCheckbox = page.getByLabel("I want immediate access to the digital content and I acknowledge that thereby I waive my right to cancel.");
|
|
@@ -3046,21 +3052,21 @@ class CheckoutConfirm {
|
|
|
3046
3052
|
}
|
|
3047
3053
|
}
|
|
3048
3054
|
|
|
3049
|
-
var __defProp$
|
|
3050
|
-
var __defNormalProp$
|
|
3051
|
-
var __publicField$
|
|
3052
|
-
__defNormalProp$
|
|
3055
|
+
var __defProp$B = Object.defineProperty;
|
|
3056
|
+
var __defNormalProp$B = (obj, key, value) => key in obj ? __defProp$B(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3057
|
+
var __publicField$B = (obj, key, value) => {
|
|
3058
|
+
__defNormalProp$B(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
3053
3059
|
return value;
|
|
3054
3060
|
};
|
|
3055
3061
|
class CheckoutFinish {
|
|
3056
3062
|
constructor(page) {
|
|
3057
3063
|
this.page = page;
|
|
3058
|
-
__publicField$
|
|
3059
|
-
__publicField$
|
|
3060
|
-
__publicField$
|
|
3061
|
-
__publicField$
|
|
3062
|
-
__publicField$
|
|
3063
|
-
__publicField$
|
|
3064
|
+
__publicField$B(this, "headline");
|
|
3065
|
+
__publicField$B(this, "orderNumberText");
|
|
3066
|
+
__publicField$B(this, "grandTotalPrice");
|
|
3067
|
+
__publicField$B(this, "taxPrice");
|
|
3068
|
+
__publicField$B(this, "cartLineItemImages");
|
|
3069
|
+
__publicField$B(this, "orderNumberRegex", /Your order number: #(\d+)/);
|
|
3064
3070
|
this.headline = page.getByRole("heading", { name: "Thank you for your order" });
|
|
3065
3071
|
this.orderNumberText = page.getByText(this.orderNumberRegex);
|
|
3066
3072
|
this.grandTotalPrice = page.locator('dt:has-text("Grand total") + dd');
|
|
@@ -3089,16 +3095,16 @@ class CheckoutFinish {
|
|
|
3089
3095
|
}
|
|
3090
3096
|
}
|
|
3091
3097
|
|
|
3092
|
-
var __defProp$
|
|
3093
|
-
var __defNormalProp$
|
|
3094
|
-
var __publicField$
|
|
3095
|
-
__defNormalProp$
|
|
3098
|
+
var __defProp$A = Object.defineProperty;
|
|
3099
|
+
var __defNormalProp$A = (obj, key, value) => key in obj ? __defProp$A(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3100
|
+
var __publicField$A = (obj, key, value) => {
|
|
3101
|
+
__defNormalProp$A(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
3096
3102
|
return value;
|
|
3097
3103
|
};
|
|
3098
3104
|
class CheckoutRegister {
|
|
3099
3105
|
constructor(page) {
|
|
3100
3106
|
this.page = page;
|
|
3101
|
-
__publicField$
|
|
3107
|
+
__publicField$A(this, "cartLineItemImages");
|
|
3102
3108
|
this.cartLineItemImages = page.locator(".line-item-img-link");
|
|
3103
3109
|
}
|
|
3104
3110
|
url() {
|
|
@@ -3106,23 +3112,23 @@ class CheckoutRegister {
|
|
|
3106
3112
|
}
|
|
3107
3113
|
}
|
|
3108
3114
|
|
|
3109
|
-
var __defProp$
|
|
3110
|
-
var __defNormalProp$
|
|
3111
|
-
var __publicField$
|
|
3112
|
-
__defNormalProp$
|
|
3115
|
+
var __defProp$z = Object.defineProperty;
|
|
3116
|
+
var __defNormalProp$z = (obj, key, value) => key in obj ? __defProp$z(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3117
|
+
var __publicField$z = (obj, key, value) => {
|
|
3118
|
+
__defNormalProp$z(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
3113
3119
|
return value;
|
|
3114
3120
|
};
|
|
3115
3121
|
class Account {
|
|
3116
3122
|
constructor(page) {
|
|
3117
3123
|
this.page = page;
|
|
3118
|
-
__publicField$
|
|
3119
|
-
__publicField$
|
|
3120
|
-
__publicField$
|
|
3121
|
-
__publicField$
|
|
3122
|
-
__publicField$
|
|
3123
|
-
__publicField$
|
|
3124
|
-
__publicField$
|
|
3125
|
-
__publicField$
|
|
3124
|
+
__publicField$z(this, "headline");
|
|
3125
|
+
__publicField$z(this, "personalDataCardTitle");
|
|
3126
|
+
__publicField$z(this, "paymentMethodCardTitle");
|
|
3127
|
+
__publicField$z(this, "billingAddressCardTitle");
|
|
3128
|
+
__publicField$z(this, "shippingAddressCardTitle");
|
|
3129
|
+
__publicField$z(this, "newsletterCheckbox");
|
|
3130
|
+
__publicField$z(this, "newsletterRegistrationSuccessMessage");
|
|
3131
|
+
__publicField$z(this, "customerGroupRequestMessage");
|
|
3126
3132
|
this.headline = page.getByRole("heading", { name: "Overview" });
|
|
3127
3133
|
this.personalDataCardTitle = page.getByRole("heading", { name: "Personal data" });
|
|
3128
3134
|
this.paymentMethodCardTitle = page.getByRole("heading", { name: "Default payment method" });
|
|
@@ -3140,41 +3146,45 @@ class Account {
|
|
|
3140
3146
|
}
|
|
3141
3147
|
}
|
|
3142
3148
|
|
|
3143
|
-
var __defProp$
|
|
3144
|
-
var __defNormalProp$
|
|
3145
|
-
var __publicField$
|
|
3146
|
-
__defNormalProp$
|
|
3149
|
+
var __defProp$y = Object.defineProperty;
|
|
3150
|
+
var __defNormalProp$y = (obj, key, value) => key in obj ? __defProp$y(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3151
|
+
var __publicField$y = (obj, key, value) => {
|
|
3152
|
+
__defNormalProp$y(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
3147
3153
|
return value;
|
|
3148
3154
|
};
|
|
3149
3155
|
class AccountLogin {
|
|
3150
3156
|
constructor(page) {
|
|
3151
3157
|
this.page = page;
|
|
3152
|
-
__publicField$
|
|
3153
|
-
__publicField$
|
|
3154
|
-
__publicField$
|
|
3155
|
-
__publicField$
|
|
3156
|
-
__publicField$
|
|
3158
|
+
__publicField$y(this, "emailInput");
|
|
3159
|
+
__publicField$y(this, "passwordInput");
|
|
3160
|
+
__publicField$y(this, "loginButton");
|
|
3161
|
+
__publicField$y(this, "logoutLink");
|
|
3162
|
+
__publicField$y(this, "successAlert");
|
|
3157
3163
|
// Inputs for registration
|
|
3158
|
-
__publicField$
|
|
3159
|
-
__publicField$
|
|
3160
|
-
__publicField$
|
|
3161
|
-
__publicField$
|
|
3162
|
-
__publicField$
|
|
3163
|
-
__publicField$
|
|
3164
|
-
__publicField$
|
|
3165
|
-
__publicField$
|
|
3166
|
-
__publicField$
|
|
3167
|
-
__publicField$
|
|
3168
|
-
__publicField$
|
|
3169
|
-
__publicField$
|
|
3170
|
-
__publicField$
|
|
3171
|
-
__publicField$
|
|
3164
|
+
__publicField$y(this, "personalFormArea");
|
|
3165
|
+
__publicField$y(this, "billingAddressFormArea");
|
|
3166
|
+
__publicField$y(this, "accountTypeSelect");
|
|
3167
|
+
__publicField$y(this, "salutationSelect");
|
|
3168
|
+
__publicField$y(this, "firstNameInput");
|
|
3169
|
+
__publicField$y(this, "lastNameInput");
|
|
3170
|
+
__publicField$y(this, "companyInput");
|
|
3171
|
+
__publicField$y(this, "departmentInput");
|
|
3172
|
+
__publicField$y(this, "vatRegNoInput");
|
|
3173
|
+
__publicField$y(this, "registerEmailInput");
|
|
3174
|
+
__publicField$y(this, "registerPasswordInput");
|
|
3175
|
+
__publicField$y(this, "streetAddressInput");
|
|
3176
|
+
__publicField$y(this, "cityInput");
|
|
3177
|
+
__publicField$y(this, "countryInput");
|
|
3178
|
+
__publicField$y(this, "postalCodeInput");
|
|
3179
|
+
__publicField$y(this, "registerButton");
|
|
3172
3180
|
this.emailInput = page.getByLabel("Your email address");
|
|
3173
3181
|
this.passwordInput = page.getByLabel("Your password");
|
|
3174
3182
|
this.loginButton = page.getByRole("button", { name: "Log in" });
|
|
3175
3183
|
this.logoutLink = page.getByRole("link", { name: "Log out" });
|
|
3176
3184
|
this.personalFormArea = page.locator(".register-personal");
|
|
3177
3185
|
this.billingAddressFormArea = page.locator(".register-billing");
|
|
3186
|
+
this.accountTypeSelect = this.personalFormArea.locator("#accountType");
|
|
3187
|
+
this.salutationSelect = this.personalFormArea.locator("#personalSalutation");
|
|
3178
3188
|
this.firstNameInput = this.personalFormArea.getByLabel("First name*");
|
|
3179
3189
|
this.lastNameInput = this.personalFormArea.getByLabel("Last name*");
|
|
3180
3190
|
this.companyInput = this.personalFormArea.getByPlaceholder("Enter company...");
|
|
@@ -3195,29 +3205,29 @@ class AccountLogin {
|
|
|
3195
3205
|
}
|
|
3196
3206
|
}
|
|
3197
3207
|
|
|
3198
|
-
var __defProp$
|
|
3199
|
-
var __defNormalProp$
|
|
3200
|
-
var __publicField$
|
|
3201
|
-
__defNormalProp$
|
|
3208
|
+
var __defProp$x = Object.defineProperty;
|
|
3209
|
+
var __defNormalProp$x = (obj, key, value) => key in obj ? __defProp$x(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3210
|
+
var __publicField$x = (obj, key, value) => {
|
|
3211
|
+
__defNormalProp$x(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
3202
3212
|
return value;
|
|
3203
3213
|
};
|
|
3204
3214
|
class AccountProfile {
|
|
3205
3215
|
constructor(page) {
|
|
3206
3216
|
this.page = page;
|
|
3207
|
-
__publicField$
|
|
3208
|
-
__publicField$
|
|
3209
|
-
__publicField$
|
|
3210
|
-
__publicField$
|
|
3211
|
-
__publicField$
|
|
3212
|
-
__publicField$
|
|
3213
|
-
__publicField$
|
|
3214
|
-
__publicField$
|
|
3215
|
-
__publicField$
|
|
3216
|
-
__publicField$
|
|
3217
|
-
__publicField$
|
|
3218
|
-
__publicField$
|
|
3219
|
-
__publicField$
|
|
3220
|
-
__publicField$
|
|
3217
|
+
__publicField$x(this, "salutationSelect");
|
|
3218
|
+
__publicField$x(this, "firstNameInput");
|
|
3219
|
+
__publicField$x(this, "lastNameInput");
|
|
3220
|
+
__publicField$x(this, "saveProfileButton");
|
|
3221
|
+
__publicField$x(this, "changeEmailButton");
|
|
3222
|
+
__publicField$x(this, "emailAddressInput");
|
|
3223
|
+
__publicField$x(this, "emailAddressConfirmInput");
|
|
3224
|
+
__publicField$x(this, "emailConfirmPasswordInput");
|
|
3225
|
+
__publicField$x(this, "saveEmailAddressButton");
|
|
3226
|
+
__publicField$x(this, "changePasswordButton");
|
|
3227
|
+
__publicField$x(this, "newPasswordInput");
|
|
3228
|
+
__publicField$x(this, "newPasswordConfirmInput");
|
|
3229
|
+
__publicField$x(this, "currentPasswordInput");
|
|
3230
|
+
__publicField$x(this, "saveNewPasswordButton");
|
|
3221
3231
|
this.salutationSelect = page.getByLabel("Salutation");
|
|
3222
3232
|
this.firstNameInput = page.getByPlaceholder("Enter first name...");
|
|
3223
3233
|
this.lastNameInput = page.getByPlaceholder("Enter last name...");
|
|
@@ -3238,22 +3248,22 @@ class AccountProfile {
|
|
|
3238
3248
|
}
|
|
3239
3249
|
}
|
|
3240
3250
|
|
|
3241
|
-
var __defProp$
|
|
3242
|
-
var __defNormalProp$
|
|
3243
|
-
var __publicField$
|
|
3244
|
-
__defNormalProp$
|
|
3251
|
+
var __defProp$w = Object.defineProperty;
|
|
3252
|
+
var __defNormalProp$w = (obj, key, value) => key in obj ? __defProp$w(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3253
|
+
var __publicField$w = (obj, key, value) => {
|
|
3254
|
+
__defNormalProp$w(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
3245
3255
|
return value;
|
|
3246
3256
|
};
|
|
3247
3257
|
class AccountOrder {
|
|
3248
3258
|
constructor(page) {
|
|
3249
3259
|
this.page = page;
|
|
3250
|
-
__publicField$
|
|
3251
|
-
__publicField$
|
|
3252
|
-
__publicField$
|
|
3253
|
-
__publicField$
|
|
3254
|
-
__publicField$
|
|
3255
|
-
__publicField$
|
|
3256
|
-
__publicField$
|
|
3260
|
+
__publicField$w(this, "cartLineItemImages");
|
|
3261
|
+
__publicField$w(this, "orderExpandButton");
|
|
3262
|
+
__publicField$w(this, "digitalProductDownloadButton");
|
|
3263
|
+
__publicField$w(this, "dialogOrderCancel");
|
|
3264
|
+
__publicField$w(this, "dialogOrderCancelButton");
|
|
3265
|
+
__publicField$w(this, "dialogBackButton");
|
|
3266
|
+
__publicField$w(this, "getViewSubscriptionLink", (orderNumber) => {
|
|
3257
3267
|
const orderContainer = this.page.locator(".order-item-header", { hasText: `Order Number: ${orderNumber}` });
|
|
3258
3268
|
return orderContainer.getByText("View Subscription");
|
|
3259
3269
|
});
|
|
@@ -3298,20 +3308,20 @@ class AccountOrder {
|
|
|
3298
3308
|
}
|
|
3299
3309
|
}
|
|
3300
3310
|
|
|
3301
|
-
var __defProp$
|
|
3302
|
-
var __defNormalProp$
|
|
3303
|
-
var __publicField$
|
|
3304
|
-
__defNormalProp$
|
|
3311
|
+
var __defProp$v = Object.defineProperty;
|
|
3312
|
+
var __defNormalProp$v = (obj, key, value) => key in obj ? __defProp$v(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3313
|
+
var __publicField$v = (obj, key, value) => {
|
|
3314
|
+
__defNormalProp$v(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
3305
3315
|
return value;
|
|
3306
3316
|
};
|
|
3307
3317
|
class AccountAddresses {
|
|
3308
3318
|
constructor(page) {
|
|
3309
3319
|
this.page = page;
|
|
3310
|
-
__publicField$
|
|
3311
|
-
__publicField$
|
|
3312
|
-
__publicField$
|
|
3313
|
-
__publicField$
|
|
3314
|
-
__publicField$
|
|
3320
|
+
__publicField$v(this, "addNewAddressButton");
|
|
3321
|
+
__publicField$v(this, "editBillingAddressButton");
|
|
3322
|
+
__publicField$v(this, "editShippingAddressButton");
|
|
3323
|
+
__publicField$v(this, "useDefaultBillingAddressButton");
|
|
3324
|
+
__publicField$v(this, "useDefaultShippingAddressButton");
|
|
3315
3325
|
this.addNewAddressButton = page.getByRole("link", { name: /Add (new )?address/ });
|
|
3316
3326
|
this.editBillingAddressButton = page.getByRole("link", { name: "Edit address" }).first();
|
|
3317
3327
|
this.editShippingAddressButton = page.getByRole("link", { name: "Edit address" }).nth(1);
|
|
@@ -3323,19 +3333,19 @@ class AccountAddresses {
|
|
|
3323
3333
|
}
|
|
3324
3334
|
}
|
|
3325
3335
|
|
|
3326
|
-
var __defProp$
|
|
3327
|
-
var __defNormalProp$
|
|
3328
|
-
var __publicField$
|
|
3329
|
-
__defNormalProp$
|
|
3336
|
+
var __defProp$u = Object.defineProperty;
|
|
3337
|
+
var __defNormalProp$u = (obj, key, value) => key in obj ? __defProp$u(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3338
|
+
var __publicField$u = (obj, key, value) => {
|
|
3339
|
+
__defNormalProp$u(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
3330
3340
|
return value;
|
|
3331
3341
|
};
|
|
3332
3342
|
class AccountPayment {
|
|
3333
3343
|
constructor(page) {
|
|
3334
3344
|
this.page = page;
|
|
3335
|
-
__publicField$
|
|
3336
|
-
__publicField$
|
|
3337
|
-
__publicField$
|
|
3338
|
-
__publicField$
|
|
3345
|
+
__publicField$u(this, "cashOnDeliveryOption");
|
|
3346
|
+
__publicField$u(this, "paidInAdvanceOption");
|
|
3347
|
+
__publicField$u(this, "invoiceOption");
|
|
3348
|
+
__publicField$u(this, "changeDefaultPaymentButton");
|
|
3339
3349
|
this.cashOnDeliveryOption = page.getByLabel("Cash on delivery");
|
|
3340
3350
|
this.paidInAdvanceOption = page.getByLabel("Paid in advance");
|
|
3341
3351
|
this.invoiceOption = page.getByLabel("Invoice");
|
|
@@ -3346,17 +3356,17 @@ class AccountPayment {
|
|
|
3346
3356
|
}
|
|
3347
3357
|
}
|
|
3348
3358
|
|
|
3349
|
-
var __defProp$
|
|
3350
|
-
var __defNormalProp$
|
|
3351
|
-
var __publicField$
|
|
3352
|
-
__defNormalProp$
|
|
3359
|
+
var __defProp$t = Object.defineProperty;
|
|
3360
|
+
var __defNormalProp$t = (obj, key, value) => key in obj ? __defProp$t(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3361
|
+
var __publicField$t = (obj, key, value) => {
|
|
3362
|
+
__defNormalProp$t(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
3353
3363
|
return value;
|
|
3354
3364
|
};
|
|
3355
3365
|
class Search {
|
|
3356
3366
|
constructor(page) {
|
|
3357
3367
|
this.page = page;
|
|
3358
|
-
__publicField$
|
|
3359
|
-
__publicField$
|
|
3368
|
+
__publicField$t(this, "headline");
|
|
3369
|
+
__publicField$t(this, "productImages");
|
|
3360
3370
|
this.headline = page.locator("h1.search-headline");
|
|
3361
3371
|
this.productImages = page.locator(".product-image-link");
|
|
3362
3372
|
}
|
|
@@ -3365,16 +3375,16 @@ class Search {
|
|
|
3365
3375
|
}
|
|
3366
3376
|
}
|
|
3367
3377
|
|
|
3368
|
-
var __defProp$
|
|
3369
|
-
var __defNormalProp$
|
|
3370
|
-
var __publicField$
|
|
3371
|
-
__defNormalProp$
|
|
3378
|
+
var __defProp$s = Object.defineProperty;
|
|
3379
|
+
var __defNormalProp$s = (obj, key, value) => key in obj ? __defProp$s(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3380
|
+
var __publicField$s = (obj, key, value) => {
|
|
3381
|
+
__defNormalProp$s(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
3372
3382
|
return value;
|
|
3373
3383
|
};
|
|
3374
3384
|
class SearchSuggest {
|
|
3375
3385
|
constructor(page) {
|
|
3376
3386
|
this.page = page;
|
|
3377
|
-
__publicField$
|
|
3387
|
+
__publicField$s(this, "searchSuggestLineItemImages");
|
|
3378
3388
|
this.searchSuggestLineItemImages = page.locator(".search-suggest-product-image-container");
|
|
3379
3389
|
}
|
|
3380
3390
|
url(searchTerm) {
|
|
@@ -3392,6 +3402,47 @@ class CustomRegister extends AccountLogin {
|
|
|
3392
3402
|
}
|
|
3393
3403
|
}
|
|
3394
3404
|
|
|
3405
|
+
var __defProp$r = Object.defineProperty;
|
|
3406
|
+
var __defNormalProp$r = (obj, key, value) => key in obj ? __defProp$r(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3407
|
+
var __publicField$r = (obj, key, value) => {
|
|
3408
|
+
__defNormalProp$r(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
3409
|
+
return value;
|
|
3410
|
+
};
|
|
3411
|
+
class CheckoutOrderEdit {
|
|
3412
|
+
constructor(page) {
|
|
3413
|
+
this.page = page;
|
|
3414
|
+
__publicField$r(this, "completePaymentButton");
|
|
3415
|
+
__publicField$r(this, "orderCancelButton");
|
|
3416
|
+
__publicField$r(this, "dialogOrderCancel");
|
|
3417
|
+
__publicField$r(this, "dialogOrderCancelButton");
|
|
3418
|
+
__publicField$r(this, "dialogBackButton");
|
|
3419
|
+
/**
|
|
3420
|
+
* Payment options
|
|
3421
|
+
*/
|
|
3422
|
+
__publicField$r(this, "paymentCashOnDelivery");
|
|
3423
|
+
__publicField$r(this, "paymentPaidInAdvance");
|
|
3424
|
+
__publicField$r(this, "paymentInvoice");
|
|
3425
|
+
/**
|
|
3426
|
+
* Shipping options
|
|
3427
|
+
*/
|
|
3428
|
+
__publicField$r(this, "shippingStandard");
|
|
3429
|
+
__publicField$r(this, "shippingExpress");
|
|
3430
|
+
this.completePaymentButton = page.getByRole("button", { name: "Complete payment" });
|
|
3431
|
+
this.orderCancelButton = page.getByRole("button", { name: "Cancel order" });
|
|
3432
|
+
this.dialogOrderCancel = page.getByRole("dialog", { name: "Cancel order" });
|
|
3433
|
+
this.dialogOrderCancelButton = this.dialogOrderCancel.getByRole("button", { name: "Cancel order" });
|
|
3434
|
+
this.dialogBackButton = this.dialogOrderCancel.getByRole("button", { name: "Back" });
|
|
3435
|
+
this.paymentCashOnDelivery = page.getByLabel("Cash on delivery");
|
|
3436
|
+
this.paymentPaidInAdvance = page.getByLabel("Paid in advance");
|
|
3437
|
+
this.paymentInvoice = page.getByLabel("Invoice");
|
|
3438
|
+
this.shippingStandard = page.getByLabel("Standard");
|
|
3439
|
+
this.shippingExpress = page.getByLabel("Express");
|
|
3440
|
+
}
|
|
3441
|
+
url(orderUuid) {
|
|
3442
|
+
return `account/order/edit/${orderUuid}`;
|
|
3443
|
+
}
|
|
3444
|
+
}
|
|
3445
|
+
|
|
3395
3446
|
const StorefrontPageObjects = {
|
|
3396
3447
|
Home,
|
|
3397
3448
|
ProductDetail: ProductDetail$1,
|
|
@@ -3409,7 +3460,8 @@ const StorefrontPageObjects = {
|
|
|
3409
3460
|
AccountPayment,
|
|
3410
3461
|
Search,
|
|
3411
3462
|
SearchSuggest,
|
|
3412
|
-
CustomRegister
|
|
3463
|
+
CustomRegister,
|
|
3464
|
+
CheckoutOrderEdit
|
|
3413
3465
|
};
|
|
3414
3466
|
const test$6 = test$e.extend({
|
|
3415
3467
|
StorefrontHome: async ({ StorefrontPage }, use) => {
|
|
@@ -3462,6 +3514,9 @@ const test$6 = test$e.extend({
|
|
|
3462
3514
|
},
|
|
3463
3515
|
StorefrontCustomRegister: async ({ StorefrontPage }, use) => {
|
|
3464
3516
|
await use(new CustomRegister(StorefrontPage));
|
|
3517
|
+
},
|
|
3518
|
+
StorefrontCheckoutOrderEdit: async ({ StorefrontPage }, use) => {
|
|
3519
|
+
await use(new CheckoutOrderEdit(StorefrontPage));
|
|
3465
3520
|
}
|
|
3466
3521
|
});
|
|
3467
3522
|
|
|
@@ -5289,10 +5344,37 @@ const CreateLinkTypeCategory = test$e.extend({
|
|
|
5289
5344
|
}
|
|
5290
5345
|
});
|
|
5291
5346
|
|
|
5347
|
+
const SetSystemConfigValues = test$e.extend({
|
|
5348
|
+
SetSystemConfigValues: async ({ AdminApiContext, DefaultSalesChannel }, use) => {
|
|
5349
|
+
let defaultSettings;
|
|
5350
|
+
const task = (newValues, defaultValues) => {
|
|
5351
|
+
return async function LoginRegistration() {
|
|
5352
|
+
defaultSettings = defaultValues;
|
|
5353
|
+
const newSettings = await AdminApiContext.post("./_action/system-config/batch", {
|
|
5354
|
+
data: {
|
|
5355
|
+
null: newValues,
|
|
5356
|
+
[DefaultSalesChannel.salesChannel.id]: {}
|
|
5357
|
+
}
|
|
5358
|
+
});
|
|
5359
|
+
expect(newSettings.ok()).toBeTruthy();
|
|
5360
|
+
};
|
|
5361
|
+
};
|
|
5362
|
+
await use(task);
|
|
5363
|
+
const revertSettings = await AdminApiContext.post(`./_action/system-config/batch`, {
|
|
5364
|
+
data: {
|
|
5365
|
+
null: defaultSettings,
|
|
5366
|
+
[DefaultSalesChannel.salesChannel.id]: {}
|
|
5367
|
+
}
|
|
5368
|
+
});
|
|
5369
|
+
expect(revertSettings.ok()).toBeTruthy();
|
|
5370
|
+
}
|
|
5371
|
+
});
|
|
5372
|
+
|
|
5292
5373
|
const test$3 = mergeTests(
|
|
5293
5374
|
SaveProduct,
|
|
5294
5375
|
ExpectNotification,
|
|
5295
|
-
CreateLinkTypeCategory
|
|
5376
|
+
CreateLinkTypeCategory,
|
|
5377
|
+
SetSystemConfigValues
|
|
5296
5378
|
);
|
|
5297
5379
|
|
|
5298
5380
|
const Login = test$e.extend({
|
|
@@ -5326,11 +5408,13 @@ const Logout = test$e.extend({
|
|
|
5326
5408
|
});
|
|
5327
5409
|
|
|
5328
5410
|
const Register = test$e.extend({
|
|
5329
|
-
Register: async ({ StorefrontAccountLogin, AdminApiContext }, use) => {
|
|
5330
|
-
|
|
5411
|
+
Register: async ({ StorefrontAccountLogin, AdminApiContext: AdminApiContext2, IdProvider }, use) => {
|
|
5412
|
+
let registeredEmail = "";
|
|
5413
|
+
const defaultRegistrationData = {
|
|
5414
|
+
salutation: "Mr.",
|
|
5331
5415
|
firstName: "Jeff",
|
|
5332
5416
|
lastName: "Goldblum",
|
|
5333
|
-
email: "
|
|
5417
|
+
email: IdProvider.getIdPair().uuid + "@test.com",
|
|
5334
5418
|
password: "shopware",
|
|
5335
5419
|
street: "Ebbinghof 10",
|
|
5336
5420
|
city: "Sch\xF6ppingen",
|
|
@@ -5340,43 +5424,51 @@ const Register = test$e.extend({
|
|
|
5340
5424
|
department: "Operations",
|
|
5341
5425
|
vatRegNo: "DE1234567890"
|
|
5342
5426
|
};
|
|
5343
|
-
const
|
|
5344
|
-
return async function
|
|
5345
|
-
registrationData
|
|
5427
|
+
const registerTask = (overrides, isCommercial) => {
|
|
5428
|
+
return async function() {
|
|
5429
|
+
const registrationData = { ...defaultRegistrationData, ...overrides };
|
|
5430
|
+
registeredEmail = registrationData.email;
|
|
5431
|
+
await StorefrontAccountLogin.salutationSelect.selectOption(registrationData.salutation);
|
|
5346
5432
|
await StorefrontAccountLogin.firstNameInput.fill(registrationData.firstName);
|
|
5347
5433
|
await StorefrontAccountLogin.lastNameInput.fill(registrationData.lastName);
|
|
5348
|
-
await StorefrontAccountLogin.registerEmailInput.fill(registrationData.email);
|
|
5349
|
-
await StorefrontAccountLogin.registerPasswordInput.fill(registrationData.password);
|
|
5350
|
-
await StorefrontAccountLogin.streetAddressInput.fill(registrationData.street);
|
|
5351
|
-
await StorefrontAccountLogin.cityInput.fill(registrationData.city);
|
|
5352
|
-
await StorefrontAccountLogin.countryInput.selectOption(registrationData.country);
|
|
5353
|
-
await StorefrontAccountLogin.postalCodeInput.fill(registrationData.postalCode);
|
|
5354
5434
|
if (isCommercial) {
|
|
5355
5435
|
await StorefrontAccountLogin.companyInput.fill(registrationData.company);
|
|
5356
5436
|
await StorefrontAccountLogin.departmentInput.fill(registrationData.department);
|
|
5357
5437
|
await StorefrontAccountLogin.vatRegNoInput.fill(registrationData.vatRegNo);
|
|
5358
5438
|
}
|
|
5439
|
+
await StorefrontAccountLogin.registerEmailInput.fill(registrationData.email);
|
|
5440
|
+
await StorefrontAccountLogin.registerPasswordInput.fill(registrationData.password);
|
|
5441
|
+
await StorefrontAccountLogin.streetAddressInput.fill(registrationData.street);
|
|
5442
|
+
await StorefrontAccountLogin.postalCodeInput.fill(registrationData.postalCode);
|
|
5443
|
+
await StorefrontAccountLogin.cityInput.fill(registrationData.city);
|
|
5444
|
+
await StorefrontAccountLogin.countryInput.selectOption({ label: registrationData.country });
|
|
5359
5445
|
await StorefrontAccountLogin.registerButton.click();
|
|
5360
5446
|
};
|
|
5361
5447
|
};
|
|
5362
|
-
await use(
|
|
5363
|
-
|
|
5364
|
-
|
|
5365
|
-
|
|
5366
|
-
|
|
5448
|
+
await use(registerTask);
|
|
5449
|
+
await deleteRegisteredUser(AdminApiContext2, registeredEmail);
|
|
5450
|
+
}
|
|
5451
|
+
});
|
|
5452
|
+
async function deleteRegisteredUser(adminApiContext, email) {
|
|
5453
|
+
if (!email)
|
|
5454
|
+
return;
|
|
5455
|
+
const response = await adminApiContext.post("search/customer", {
|
|
5456
|
+
data: {
|
|
5457
|
+
limit: 1,
|
|
5458
|
+
filter: [
|
|
5459
|
+
{
|
|
5367
5460
|
type: "equals",
|
|
5368
5461
|
field: "email",
|
|
5369
|
-
value:
|
|
5370
|
-
}
|
|
5371
|
-
|
|
5372
|
-
});
|
|
5373
|
-
expect(customerResponse.ok()).toBeTruthy();
|
|
5374
|
-
const customerResponseData = await customerResponse.json();
|
|
5375
|
-
for (const customer of customerResponseData.data) {
|
|
5376
|
-
await AdminApiContext.delete(`customer/${customer.id}`);
|
|
5462
|
+
value: email
|
|
5463
|
+
}
|
|
5464
|
+
]
|
|
5377
5465
|
}
|
|
5466
|
+
});
|
|
5467
|
+
const { data: customers } = await response.json();
|
|
5468
|
+
for (const customer of customers) {
|
|
5469
|
+
await adminApiContext.delete(`customer/${customer.id}`);
|
|
5378
5470
|
}
|
|
5379
|
-
}
|
|
5471
|
+
}
|
|
5380
5472
|
|
|
5381
5473
|
const RegisterGuest = test$e.extend({
|
|
5382
5474
|
RegisterGuest: async ({ StorefrontAccountLogin, AdminApiContext }, use) => {
|