@shopware-ag/acceptance-test-suite 5.5.0 → 7.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 +54 -1
- package/dist/index.d.ts +54 -1
- package/dist/index.mjs +376 -263
- 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 {
|
|
@@ -934,6 +949,16 @@ declare class Home implements PageObject {
|
|
|
934
949
|
readonly productListItems: Locator;
|
|
935
950
|
readonly languagesDropdown: Locator;
|
|
936
951
|
readonly currenciesDropdown: Locator;
|
|
952
|
+
readonly consentOnlyTechnicallyRequiredButton: Locator;
|
|
953
|
+
readonly consentConfigureButton: Locator;
|
|
954
|
+
readonly consentAcceptAllCookiesButton: Locator;
|
|
955
|
+
readonly consentCookiePreferences: Locator;
|
|
956
|
+
readonly consentCookiePermissionContent: Locator;
|
|
957
|
+
readonly consentDialog: Locator;
|
|
958
|
+
readonly consentDialogTechnicallyRequiredCheckbox: Locator;
|
|
959
|
+
readonly consentDialogAcceptAllCookiesButton: Locator;
|
|
960
|
+
readonly consentDialogSaveButton: Locator;
|
|
961
|
+
readonly consentCookieBannerContainer: Locator;
|
|
937
962
|
constructor(page: Page);
|
|
938
963
|
getListingItemByProductId(productId: string): Promise<Record<string, Locator>>;
|
|
939
964
|
url(): string;
|
|
@@ -1070,6 +1095,8 @@ declare class AccountLogin implements PageObject {
|
|
|
1070
1095
|
readonly successAlert: Locator;
|
|
1071
1096
|
readonly personalFormArea: Locator;
|
|
1072
1097
|
readonly billingAddressFormArea: Locator;
|
|
1098
|
+
readonly accountTypeSelect: Locator;
|
|
1099
|
+
readonly salutationSelect: Locator;
|
|
1073
1100
|
readonly firstNameInput: Locator;
|
|
1074
1101
|
readonly lastNameInput: Locator;
|
|
1075
1102
|
readonly companyInput: Locator;
|
|
@@ -1162,6 +1189,28 @@ declare class CustomRegister extends AccountLogin implements PageObject {
|
|
|
1162
1189
|
url(customCustomerGroupName?: string): string;
|
|
1163
1190
|
}
|
|
1164
1191
|
|
|
1192
|
+
declare class CheckoutOrderEdit implements PageObject {
|
|
1193
|
+
readonly page: Page;
|
|
1194
|
+
readonly completePaymentButton: Locator;
|
|
1195
|
+
readonly orderCancelButton: Locator;
|
|
1196
|
+
readonly dialogOrderCancel: Locator;
|
|
1197
|
+
readonly dialogOrderCancelButton: Locator;
|
|
1198
|
+
readonly dialogBackButton: Locator;
|
|
1199
|
+
/**
|
|
1200
|
+
* Payment options
|
|
1201
|
+
*/
|
|
1202
|
+
readonly paymentCashOnDelivery: Locator;
|
|
1203
|
+
readonly paymentPaidInAdvance: Locator;
|
|
1204
|
+
readonly paymentInvoice: Locator;
|
|
1205
|
+
/**
|
|
1206
|
+
* Shipping options
|
|
1207
|
+
*/
|
|
1208
|
+
readonly shippingStandard: Locator;
|
|
1209
|
+
readonly shippingExpress: Locator;
|
|
1210
|
+
constructor(page: Page);
|
|
1211
|
+
url(orderUuid: string): string;
|
|
1212
|
+
}
|
|
1213
|
+
|
|
1165
1214
|
interface StorefrontPageTypes {
|
|
1166
1215
|
StorefrontHome: Home;
|
|
1167
1216
|
StorefrontProductDetail: ProductDetail$1;
|
|
@@ -1180,6 +1229,7 @@ interface StorefrontPageTypes {
|
|
|
1180
1229
|
StorefrontSearch: Search;
|
|
1181
1230
|
StorefrontSearchSuggest: SearchSuggest;
|
|
1182
1231
|
StorefrontCustomRegister: CustomRegister;
|
|
1232
|
+
StorefrontCheckoutOrderEdit: CheckoutOrderEdit;
|
|
1183
1233
|
}
|
|
1184
1234
|
declare const StorefrontPageObjects: {
|
|
1185
1235
|
Home: typeof Home;
|
|
@@ -1199,6 +1249,7 @@ declare const StorefrontPageObjects: {
|
|
|
1199
1249
|
Search: typeof Search;
|
|
1200
1250
|
SearchSuggest: typeof SearchSuggest;
|
|
1201
1251
|
CustomRegister: typeof CustomRegister;
|
|
1252
|
+
CheckoutOrderEdit: typeof CheckoutOrderEdit;
|
|
1202
1253
|
};
|
|
1203
1254
|
|
|
1204
1255
|
declare class ProductDetail implements PageObject {
|
|
@@ -1802,6 +1853,8 @@ declare const test: _playwright_test.TestType<_playwright_test.PlaywrightTestArg
|
|
|
1802
1853
|
ExpectNotification: Task;
|
|
1803
1854
|
} & {
|
|
1804
1855
|
CreateLinkTypeCategory: Task;
|
|
1856
|
+
} & {
|
|
1857
|
+
SetSystemConfigValues: Task;
|
|
1805
1858
|
} & {
|
|
1806
1859
|
Login: Task;
|
|
1807
1860
|
} & {
|
|
@@ -1842,4 +1895,4 @@ declare const test: _playwright_test.TestType<_playwright_test.PlaywrightTestArg
|
|
|
1842
1895
|
ValidateAccessibility: (pageName: string, assertViolations?: number | boolean | undefined, createReport?: boolean | undefined, ruleTags?: string[] | undefined, outputDir?: string | undefined) => () => Promise<axe_core.Result[]>;
|
|
1843
1896
|
}, _playwright_test.PlaywrightWorkerArgs & _playwright_test.PlaywrightWorkerOptions & FixtureTypes>;
|
|
1844
1897
|
|
|
1845
|
-
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 };
|
|
1898
|
+
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 {
|
|
@@ -934,6 +949,16 @@ declare class Home implements PageObject {
|
|
|
934
949
|
readonly productListItems: Locator;
|
|
935
950
|
readonly languagesDropdown: Locator;
|
|
936
951
|
readonly currenciesDropdown: Locator;
|
|
952
|
+
readonly consentOnlyTechnicallyRequiredButton: Locator;
|
|
953
|
+
readonly consentConfigureButton: Locator;
|
|
954
|
+
readonly consentAcceptAllCookiesButton: Locator;
|
|
955
|
+
readonly consentCookiePreferences: Locator;
|
|
956
|
+
readonly consentCookiePermissionContent: Locator;
|
|
957
|
+
readonly consentDialog: Locator;
|
|
958
|
+
readonly consentDialogTechnicallyRequiredCheckbox: Locator;
|
|
959
|
+
readonly consentDialogAcceptAllCookiesButton: Locator;
|
|
960
|
+
readonly consentDialogSaveButton: Locator;
|
|
961
|
+
readonly consentCookieBannerContainer: Locator;
|
|
937
962
|
constructor(page: Page);
|
|
938
963
|
getListingItemByProductId(productId: string): Promise<Record<string, Locator>>;
|
|
939
964
|
url(): string;
|
|
@@ -1070,6 +1095,8 @@ declare class AccountLogin implements PageObject {
|
|
|
1070
1095
|
readonly successAlert: Locator;
|
|
1071
1096
|
readonly personalFormArea: Locator;
|
|
1072
1097
|
readonly billingAddressFormArea: Locator;
|
|
1098
|
+
readonly accountTypeSelect: Locator;
|
|
1099
|
+
readonly salutationSelect: Locator;
|
|
1073
1100
|
readonly firstNameInput: Locator;
|
|
1074
1101
|
readonly lastNameInput: Locator;
|
|
1075
1102
|
readonly companyInput: Locator;
|
|
@@ -1162,6 +1189,28 @@ declare class CustomRegister extends AccountLogin implements PageObject {
|
|
|
1162
1189
|
url(customCustomerGroupName?: string): string;
|
|
1163
1190
|
}
|
|
1164
1191
|
|
|
1192
|
+
declare class CheckoutOrderEdit implements PageObject {
|
|
1193
|
+
readonly page: Page;
|
|
1194
|
+
readonly completePaymentButton: Locator;
|
|
1195
|
+
readonly orderCancelButton: Locator;
|
|
1196
|
+
readonly dialogOrderCancel: Locator;
|
|
1197
|
+
readonly dialogOrderCancelButton: Locator;
|
|
1198
|
+
readonly dialogBackButton: Locator;
|
|
1199
|
+
/**
|
|
1200
|
+
* Payment options
|
|
1201
|
+
*/
|
|
1202
|
+
readonly paymentCashOnDelivery: Locator;
|
|
1203
|
+
readonly paymentPaidInAdvance: Locator;
|
|
1204
|
+
readonly paymentInvoice: Locator;
|
|
1205
|
+
/**
|
|
1206
|
+
* Shipping options
|
|
1207
|
+
*/
|
|
1208
|
+
readonly shippingStandard: Locator;
|
|
1209
|
+
readonly shippingExpress: Locator;
|
|
1210
|
+
constructor(page: Page);
|
|
1211
|
+
url(orderUuid: string): string;
|
|
1212
|
+
}
|
|
1213
|
+
|
|
1165
1214
|
interface StorefrontPageTypes {
|
|
1166
1215
|
StorefrontHome: Home;
|
|
1167
1216
|
StorefrontProductDetail: ProductDetail$1;
|
|
@@ -1180,6 +1229,7 @@ interface StorefrontPageTypes {
|
|
|
1180
1229
|
StorefrontSearch: Search;
|
|
1181
1230
|
StorefrontSearchSuggest: SearchSuggest;
|
|
1182
1231
|
StorefrontCustomRegister: CustomRegister;
|
|
1232
|
+
StorefrontCheckoutOrderEdit: CheckoutOrderEdit;
|
|
1183
1233
|
}
|
|
1184
1234
|
declare const StorefrontPageObjects: {
|
|
1185
1235
|
Home: typeof Home;
|
|
@@ -1199,6 +1249,7 @@ declare const StorefrontPageObjects: {
|
|
|
1199
1249
|
Search: typeof Search;
|
|
1200
1250
|
SearchSuggest: typeof SearchSuggest;
|
|
1201
1251
|
CustomRegister: typeof CustomRegister;
|
|
1252
|
+
CheckoutOrderEdit: typeof CheckoutOrderEdit;
|
|
1202
1253
|
};
|
|
1203
1254
|
|
|
1204
1255
|
declare class ProductDetail implements PageObject {
|
|
@@ -1802,6 +1853,8 @@ declare const test: _playwright_test.TestType<_playwright_test.PlaywrightTestArg
|
|
|
1802
1853
|
ExpectNotification: Task;
|
|
1803
1854
|
} & {
|
|
1804
1855
|
CreateLinkTypeCategory: Task;
|
|
1856
|
+
} & {
|
|
1857
|
+
SetSystemConfigValues: Task;
|
|
1805
1858
|
} & {
|
|
1806
1859
|
Login: Task;
|
|
1807
1860
|
} & {
|
|
@@ -1842,4 +1895,4 @@ declare const test: _playwright_test.TestType<_playwright_test.PlaywrightTestArg
|
|
|
1842
1895
|
ValidateAccessibility: (pageName: string, assertViolations?: number | boolean | undefined, createReport?: boolean | undefined, ruleTags?: string[] | undefined, outputDir?: string | undefined) => () => Promise<axe_core.Result[]>;
|
|
1843
1896
|
}, _playwright_test.PlaywrightWorkerArgs & _playwright_test.PlaywrightWorkerOptions & FixtureTypes>;
|
|
1844
1897
|
|
|
1845
|
-
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 };
|
|
1898
|
+
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,23 +2756,43 @@ 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$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");
|
|
2768
2782
|
this.productImages = page.locator(".product-image-link");
|
|
2769
2783
|
this.productListItems = page.getByRole("listitem");
|
|
2770
2784
|
this.languagesDropdown = page.getByLabel("Shop settings").locator(".languages-menu");
|
|
2771
2785
|
this.currenciesDropdown = page.getByLabel("Shop settings").locator(".currencies-menu");
|
|
2786
|
+
this.consentCookieBannerContainer = page.locator(".cookie-permission-container");
|
|
2787
|
+
this.consentOnlyTechnicallyRequiredButton = page.getByRole("button", { name: "Only technically required" });
|
|
2788
|
+
this.consentConfigureButton = page.getByRole("button", { name: "Configure" });
|
|
2789
|
+
this.consentAcceptAllCookiesButton = page.getByRole("button", { name: "Accept all cookies" });
|
|
2790
|
+
this.consentCookiePreferences = page.getByLabel("Cookie preferences");
|
|
2791
|
+
this.consentCookiePermissionContent = page.locator(".cookie-permission-content");
|
|
2792
|
+
this.consentDialog = page.getByRole("dialog").filter({ hasText: "Cookie preferences" });
|
|
2793
|
+
this.consentDialogTechnicallyRequiredCheckbox = this.consentDialog.getByRole("checkbox", { name: "Technically required" });
|
|
2794
|
+
this.consentDialogSaveButton = this.consentDialog.getByRole("button", { name: "Save" });
|
|
2795
|
+
this.consentDialogAcceptAllCookiesButton = this.consentDialog.getByRole("button", { name: "Accept all cookies" });
|
|
2772
2796
|
}
|
|
2773
2797
|
async getListingItemByProductId(productId) {
|
|
2774
2798
|
const listingItem = this.page.getByRole("listitem").filter({ has: this.page.locator(`[value="${productId}"]`) });
|
|
@@ -2798,26 +2822,26 @@ class Home {
|
|
|
2798
2822
|
}
|
|
2799
2823
|
}
|
|
2800
2824
|
|
|
2801
|
-
var __defProp$
|
|
2802
|
-
var __defNormalProp$
|
|
2803
|
-
var __publicField$
|
|
2804
|
-
__defNormalProp$
|
|
2825
|
+
var __defProp$G = Object.defineProperty;
|
|
2826
|
+
var __defNormalProp$G = (obj, key, value) => key in obj ? __defProp$G(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2827
|
+
var __publicField$G = (obj, key, value) => {
|
|
2828
|
+
__defNormalProp$G(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
2805
2829
|
return value;
|
|
2806
2830
|
};
|
|
2807
2831
|
let ProductDetail$1 = class ProductDetail {
|
|
2808
2832
|
constructor(page) {
|
|
2809
2833
|
this.page = page;
|
|
2810
|
-
__publicField$
|
|
2811
|
-
__publicField$
|
|
2812
|
-
__publicField$
|
|
2813
|
-
__publicField$
|
|
2814
|
-
__publicField$
|
|
2815
|
-
__publicField$
|
|
2816
|
-
__publicField$
|
|
2817
|
-
__publicField$
|
|
2818
|
-
__publicField$
|
|
2819
|
-
__publicField$
|
|
2820
|
-
__publicField$
|
|
2834
|
+
__publicField$G(this, "addToCartButton");
|
|
2835
|
+
__publicField$G(this, "quantitySelect");
|
|
2836
|
+
__publicField$G(this, "productSingleImage");
|
|
2837
|
+
__publicField$G(this, "productSinglePrice");
|
|
2838
|
+
__publicField$G(this, "productPriceRangesRow");
|
|
2839
|
+
__publicField$G(this, "offCanvasCartTitle");
|
|
2840
|
+
__publicField$G(this, "offCanvasCart");
|
|
2841
|
+
__publicField$G(this, "offCanvasCartGoToCheckoutButton");
|
|
2842
|
+
__publicField$G(this, "offCanvasLineItemImages");
|
|
2843
|
+
__publicField$G(this, "offCanvasSummaryTotalPrice");
|
|
2844
|
+
__publicField$G(this, "offCanvas");
|
|
2821
2845
|
this.addToCartButton = page.getByRole("button", { name: "Add to shopping cart" });
|
|
2822
2846
|
this.quantitySelect = page.getByLabel("Quantity", { exact: true });
|
|
2823
2847
|
this.productSingleImage = page.locator(".gallery-slider-single-image");
|
|
@@ -2839,18 +2863,18 @@ let ProductDetail$1 = class ProductDetail {
|
|
|
2839
2863
|
}
|
|
2840
2864
|
};
|
|
2841
2865
|
|
|
2842
|
-
var __defProp$
|
|
2843
|
-
var __defNormalProp$
|
|
2844
|
-
var __publicField$
|
|
2845
|
-
__defNormalProp$
|
|
2866
|
+
var __defProp$F = Object.defineProperty;
|
|
2867
|
+
var __defNormalProp$F = (obj, key, value) => key in obj ? __defProp$F(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2868
|
+
var __publicField$F = (obj, key, value) => {
|
|
2869
|
+
__defNormalProp$F(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
2846
2870
|
return value;
|
|
2847
2871
|
};
|
|
2848
2872
|
class Category {
|
|
2849
2873
|
constructor(page) {
|
|
2850
2874
|
this.page = page;
|
|
2851
|
-
__publicField$
|
|
2852
|
-
__publicField$
|
|
2853
|
-
__publicField$
|
|
2875
|
+
__publicField$F(this, "sortingSelect");
|
|
2876
|
+
__publicField$F(this, "firstProductBuyButton");
|
|
2877
|
+
__publicField$F(this, "noProductsFoundAlert");
|
|
2854
2878
|
this.sortingSelect = page.getByLabel("Sorting");
|
|
2855
2879
|
this.firstProductBuyButton = page.getByRole("button", { name: "Add to shopping cart" }).first();
|
|
2856
2880
|
this.noProductsFoundAlert = page.getByText("No products found.");
|
|
@@ -2860,24 +2884,24 @@ class Category {
|
|
|
2860
2884
|
}
|
|
2861
2885
|
}
|
|
2862
2886
|
|
|
2863
|
-
var __defProp$
|
|
2864
|
-
var __defNormalProp$
|
|
2865
|
-
var __publicField$
|
|
2866
|
-
__defNormalProp$
|
|
2887
|
+
var __defProp$E = Object.defineProperty;
|
|
2888
|
+
var __defNormalProp$E = (obj, key, value) => key in obj ? __defProp$E(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2889
|
+
var __publicField$E = (obj, key, value) => {
|
|
2890
|
+
__defNormalProp$E(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
2867
2891
|
return value;
|
|
2868
2892
|
};
|
|
2869
2893
|
class CheckoutCart {
|
|
2870
2894
|
constructor(page) {
|
|
2871
2895
|
this.page = page;
|
|
2872
|
-
__publicField$
|
|
2873
|
-
__publicField$
|
|
2874
|
-
__publicField$
|
|
2875
|
-
__publicField$
|
|
2876
|
-
__publicField$
|
|
2877
|
-
__publicField$
|
|
2878
|
-
__publicField$
|
|
2879
|
-
__publicField$
|
|
2880
|
-
__publicField$
|
|
2896
|
+
__publicField$E(this, "headline");
|
|
2897
|
+
__publicField$E(this, "goToCheckoutButton");
|
|
2898
|
+
__publicField$E(this, "enterPromoInput");
|
|
2899
|
+
__publicField$E(this, "grandTotalPrice");
|
|
2900
|
+
__publicField$E(this, "emptyCartAlert");
|
|
2901
|
+
__publicField$E(this, "stockReachedAlert");
|
|
2902
|
+
__publicField$E(this, "cartLineItemImages");
|
|
2903
|
+
__publicField$E(this, "unitPriceInfo");
|
|
2904
|
+
__publicField$E(this, "cartQuantityNumber");
|
|
2881
2905
|
this.headline = page.getByRole("heading", { name: "Shopping cart" });
|
|
2882
2906
|
this.goToCheckoutButton = page.getByRole("link", { name: "Go to checkout" });
|
|
2883
2907
|
this.enterPromoInput = page.getByLabel("Promo code");
|
|
@@ -2918,25 +2942,25 @@ class CheckoutCart {
|
|
|
2918
2942
|
}
|
|
2919
2943
|
}
|
|
2920
2944
|
|
|
2921
|
-
var __defProp$
|
|
2922
|
-
var __defNormalProp$
|
|
2923
|
-
var __publicField$
|
|
2924
|
-
__defNormalProp$
|
|
2945
|
+
var __defProp$D = Object.defineProperty;
|
|
2946
|
+
var __defNormalProp$D = (obj, key, value) => key in obj ? __defProp$D(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2947
|
+
var __publicField$D = (obj, key, value) => {
|
|
2948
|
+
__defNormalProp$D(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
2925
2949
|
return value;
|
|
2926
2950
|
};
|
|
2927
2951
|
class OffCanvasCart {
|
|
2928
2952
|
constructor(page) {
|
|
2929
2953
|
this.page = page;
|
|
2930
|
-
__publicField$
|
|
2931
|
-
__publicField$
|
|
2932
|
-
__publicField$
|
|
2933
|
-
__publicField$
|
|
2934
|
-
__publicField$
|
|
2935
|
-
__publicField$
|
|
2936
|
-
__publicField$
|
|
2937
|
-
__publicField$
|
|
2938
|
-
__publicField$
|
|
2939
|
-
__publicField$
|
|
2954
|
+
__publicField$D(this, "headline");
|
|
2955
|
+
__publicField$D(this, "itemCount");
|
|
2956
|
+
__publicField$D(this, "goToCheckoutButton");
|
|
2957
|
+
__publicField$D(this, "goToCartButton");
|
|
2958
|
+
__publicField$D(this, "continueShoppingButton");
|
|
2959
|
+
__publicField$D(this, "enterPromoInput");
|
|
2960
|
+
__publicField$D(this, "submitDiscountButton");
|
|
2961
|
+
__publicField$D(this, "subTotalPrice");
|
|
2962
|
+
__publicField$D(this, "shippingCosts");
|
|
2963
|
+
__publicField$D(this, "cartQuantityNumber");
|
|
2940
2964
|
this.headline = page.getByRole("heading", { name: "Shopping cart" });
|
|
2941
2965
|
this.itemCount = page.locator(".offcanvas-cart-header-count");
|
|
2942
2966
|
this.goToCheckoutButton = page.getByRole("link", { name: "Go to checkout" });
|
|
@@ -2978,36 +3002,36 @@ class OffCanvasCart {
|
|
|
2978
3002
|
}
|
|
2979
3003
|
}
|
|
2980
3004
|
|
|
2981
|
-
var __defProp$
|
|
2982
|
-
var __defNormalProp$
|
|
2983
|
-
var __publicField$
|
|
2984
|
-
__defNormalProp$
|
|
3005
|
+
var __defProp$C = Object.defineProperty;
|
|
3006
|
+
var __defNormalProp$C = (obj, key, value) => key in obj ? __defProp$C(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3007
|
+
var __publicField$C = (obj, key, value) => {
|
|
3008
|
+
__defNormalProp$C(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
2985
3009
|
return value;
|
|
2986
3010
|
};
|
|
2987
3011
|
class CheckoutConfirm {
|
|
2988
3012
|
constructor(page) {
|
|
2989
3013
|
this.page = page;
|
|
2990
|
-
__publicField$
|
|
2991
|
-
__publicField$
|
|
2992
|
-
__publicField$
|
|
2993
|
-
__publicField$
|
|
2994
|
-
__publicField$
|
|
2995
|
-
__publicField$
|
|
3014
|
+
__publicField$C(this, "headline");
|
|
3015
|
+
__publicField$C(this, "termsAndConditionsCheckbox");
|
|
3016
|
+
__publicField$C(this, "immediateAccessToDigitalProductCheckbox");
|
|
3017
|
+
__publicField$C(this, "grandTotalPrice");
|
|
3018
|
+
__publicField$C(this, "taxPrice");
|
|
3019
|
+
__publicField$C(this, "submitOrderButton");
|
|
2996
3020
|
/**
|
|
2997
3021
|
* Payment options
|
|
2998
3022
|
*/
|
|
2999
|
-
__publicField$
|
|
3000
|
-
__publicField$
|
|
3001
|
-
__publicField$
|
|
3023
|
+
__publicField$C(this, "paymentCashOnDelivery");
|
|
3024
|
+
__publicField$C(this, "paymentPaidInAdvance");
|
|
3025
|
+
__publicField$C(this, "paymentInvoice");
|
|
3002
3026
|
/**
|
|
3003
3027
|
* Shipping options
|
|
3004
3028
|
*/
|
|
3005
|
-
__publicField$
|
|
3006
|
-
__publicField$
|
|
3029
|
+
__publicField$C(this, "shippingStandard");
|
|
3030
|
+
__publicField$C(this, "shippingExpress");
|
|
3007
3031
|
/**
|
|
3008
3032
|
* Product details
|
|
3009
3033
|
*/
|
|
3010
|
-
__publicField$
|
|
3034
|
+
__publicField$C(this, "cartLineItemImages");
|
|
3011
3035
|
this.headline = page.getByRole("heading", { name: "Complete order" });
|
|
3012
3036
|
this.termsAndConditionsCheckbox = page.getByLabel("I have read and accepted the general terms and conditions.");
|
|
3013
3037
|
this.immediateAccessToDigitalProductCheckbox = page.getByLabel("I want immediate access to the digital content and I acknowledge that thereby I waive my right to cancel.");
|
|
@@ -3026,21 +3050,21 @@ class CheckoutConfirm {
|
|
|
3026
3050
|
}
|
|
3027
3051
|
}
|
|
3028
3052
|
|
|
3029
|
-
var __defProp$
|
|
3030
|
-
var __defNormalProp$
|
|
3031
|
-
var __publicField$
|
|
3032
|
-
__defNormalProp$
|
|
3053
|
+
var __defProp$B = Object.defineProperty;
|
|
3054
|
+
var __defNormalProp$B = (obj, key, value) => key in obj ? __defProp$B(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3055
|
+
var __publicField$B = (obj, key, value) => {
|
|
3056
|
+
__defNormalProp$B(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
3033
3057
|
return value;
|
|
3034
3058
|
};
|
|
3035
3059
|
class CheckoutFinish {
|
|
3036
3060
|
constructor(page) {
|
|
3037
3061
|
this.page = page;
|
|
3038
|
-
__publicField$
|
|
3039
|
-
__publicField$
|
|
3040
|
-
__publicField$
|
|
3041
|
-
__publicField$
|
|
3042
|
-
__publicField$
|
|
3043
|
-
__publicField$
|
|
3062
|
+
__publicField$B(this, "headline");
|
|
3063
|
+
__publicField$B(this, "orderNumberText");
|
|
3064
|
+
__publicField$B(this, "grandTotalPrice");
|
|
3065
|
+
__publicField$B(this, "taxPrice");
|
|
3066
|
+
__publicField$B(this, "cartLineItemImages");
|
|
3067
|
+
__publicField$B(this, "orderNumberRegex", /Your order number: #(\d+)/);
|
|
3044
3068
|
this.headline = page.getByRole("heading", { name: "Thank you for your order" });
|
|
3045
3069
|
this.orderNumberText = page.getByText(this.orderNumberRegex);
|
|
3046
3070
|
this.grandTotalPrice = page.locator('dt:has-text("Grand total") + dd');
|
|
@@ -3069,16 +3093,16 @@ class CheckoutFinish {
|
|
|
3069
3093
|
}
|
|
3070
3094
|
}
|
|
3071
3095
|
|
|
3072
|
-
var __defProp$
|
|
3073
|
-
var __defNormalProp$
|
|
3074
|
-
var __publicField$
|
|
3075
|
-
__defNormalProp$
|
|
3096
|
+
var __defProp$A = Object.defineProperty;
|
|
3097
|
+
var __defNormalProp$A = (obj, key, value) => key in obj ? __defProp$A(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3098
|
+
var __publicField$A = (obj, key, value) => {
|
|
3099
|
+
__defNormalProp$A(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
3076
3100
|
return value;
|
|
3077
3101
|
};
|
|
3078
3102
|
class CheckoutRegister {
|
|
3079
3103
|
constructor(page) {
|
|
3080
3104
|
this.page = page;
|
|
3081
|
-
__publicField$
|
|
3105
|
+
__publicField$A(this, "cartLineItemImages");
|
|
3082
3106
|
this.cartLineItemImages = page.locator(".line-item-img-link");
|
|
3083
3107
|
}
|
|
3084
3108
|
url() {
|
|
@@ -3086,23 +3110,23 @@ class CheckoutRegister {
|
|
|
3086
3110
|
}
|
|
3087
3111
|
}
|
|
3088
3112
|
|
|
3089
|
-
var __defProp$
|
|
3090
|
-
var __defNormalProp$
|
|
3091
|
-
var __publicField$
|
|
3092
|
-
__defNormalProp$
|
|
3113
|
+
var __defProp$z = Object.defineProperty;
|
|
3114
|
+
var __defNormalProp$z = (obj, key, value) => key in obj ? __defProp$z(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3115
|
+
var __publicField$z = (obj, key, value) => {
|
|
3116
|
+
__defNormalProp$z(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
3093
3117
|
return value;
|
|
3094
3118
|
};
|
|
3095
3119
|
class Account {
|
|
3096
3120
|
constructor(page) {
|
|
3097
3121
|
this.page = page;
|
|
3098
|
-
__publicField$
|
|
3099
|
-
__publicField$
|
|
3100
|
-
__publicField$
|
|
3101
|
-
__publicField$
|
|
3102
|
-
__publicField$
|
|
3103
|
-
__publicField$
|
|
3104
|
-
__publicField$
|
|
3105
|
-
__publicField$
|
|
3122
|
+
__publicField$z(this, "headline");
|
|
3123
|
+
__publicField$z(this, "personalDataCardTitle");
|
|
3124
|
+
__publicField$z(this, "paymentMethodCardTitle");
|
|
3125
|
+
__publicField$z(this, "billingAddressCardTitle");
|
|
3126
|
+
__publicField$z(this, "shippingAddressCardTitle");
|
|
3127
|
+
__publicField$z(this, "newsletterCheckbox");
|
|
3128
|
+
__publicField$z(this, "newsletterRegistrationSuccessMessage");
|
|
3129
|
+
__publicField$z(this, "customerGroupRequestMessage");
|
|
3106
3130
|
this.headline = page.getByRole("heading", { name: "Overview" });
|
|
3107
3131
|
this.personalDataCardTitle = page.getByRole("heading", { name: "Personal data" });
|
|
3108
3132
|
this.paymentMethodCardTitle = page.getByRole("heading", { name: "Default payment method" });
|
|
@@ -3120,41 +3144,45 @@ class Account {
|
|
|
3120
3144
|
}
|
|
3121
3145
|
}
|
|
3122
3146
|
|
|
3123
|
-
var __defProp$
|
|
3124
|
-
var __defNormalProp$
|
|
3125
|
-
var __publicField$
|
|
3126
|
-
__defNormalProp$
|
|
3147
|
+
var __defProp$y = Object.defineProperty;
|
|
3148
|
+
var __defNormalProp$y = (obj, key, value) => key in obj ? __defProp$y(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3149
|
+
var __publicField$y = (obj, key, value) => {
|
|
3150
|
+
__defNormalProp$y(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
3127
3151
|
return value;
|
|
3128
3152
|
};
|
|
3129
3153
|
class AccountLogin {
|
|
3130
3154
|
constructor(page) {
|
|
3131
3155
|
this.page = page;
|
|
3132
|
-
__publicField$
|
|
3133
|
-
__publicField$
|
|
3134
|
-
__publicField$
|
|
3135
|
-
__publicField$
|
|
3136
|
-
__publicField$
|
|
3156
|
+
__publicField$y(this, "emailInput");
|
|
3157
|
+
__publicField$y(this, "passwordInput");
|
|
3158
|
+
__publicField$y(this, "loginButton");
|
|
3159
|
+
__publicField$y(this, "logoutLink");
|
|
3160
|
+
__publicField$y(this, "successAlert");
|
|
3137
3161
|
// Inputs for registration
|
|
3138
|
-
__publicField$
|
|
3139
|
-
__publicField$
|
|
3140
|
-
__publicField$
|
|
3141
|
-
__publicField$
|
|
3142
|
-
__publicField$
|
|
3143
|
-
__publicField$
|
|
3144
|
-
__publicField$
|
|
3145
|
-
__publicField$
|
|
3146
|
-
__publicField$
|
|
3147
|
-
__publicField$
|
|
3148
|
-
__publicField$
|
|
3149
|
-
__publicField$
|
|
3150
|
-
__publicField$
|
|
3151
|
-
__publicField$
|
|
3162
|
+
__publicField$y(this, "personalFormArea");
|
|
3163
|
+
__publicField$y(this, "billingAddressFormArea");
|
|
3164
|
+
__publicField$y(this, "accountTypeSelect");
|
|
3165
|
+
__publicField$y(this, "salutationSelect");
|
|
3166
|
+
__publicField$y(this, "firstNameInput");
|
|
3167
|
+
__publicField$y(this, "lastNameInput");
|
|
3168
|
+
__publicField$y(this, "companyInput");
|
|
3169
|
+
__publicField$y(this, "departmentInput");
|
|
3170
|
+
__publicField$y(this, "vatRegNoInput");
|
|
3171
|
+
__publicField$y(this, "registerEmailInput");
|
|
3172
|
+
__publicField$y(this, "registerPasswordInput");
|
|
3173
|
+
__publicField$y(this, "streetAddressInput");
|
|
3174
|
+
__publicField$y(this, "cityInput");
|
|
3175
|
+
__publicField$y(this, "countryInput");
|
|
3176
|
+
__publicField$y(this, "postalCodeInput");
|
|
3177
|
+
__publicField$y(this, "registerButton");
|
|
3152
3178
|
this.emailInput = page.getByLabel("Your email address");
|
|
3153
3179
|
this.passwordInput = page.getByLabel("Your password");
|
|
3154
3180
|
this.loginButton = page.getByRole("button", { name: "Log in" });
|
|
3155
3181
|
this.logoutLink = page.getByRole("link", { name: "Log out" });
|
|
3156
3182
|
this.personalFormArea = page.locator(".register-personal");
|
|
3157
3183
|
this.billingAddressFormArea = page.locator(".register-billing");
|
|
3184
|
+
this.accountTypeSelect = this.personalFormArea.locator("#accountType");
|
|
3185
|
+
this.salutationSelect = this.personalFormArea.locator("#personalSalutation");
|
|
3158
3186
|
this.firstNameInput = this.personalFormArea.getByLabel("First name*");
|
|
3159
3187
|
this.lastNameInput = this.personalFormArea.getByLabel("Last name*");
|
|
3160
3188
|
this.companyInput = this.personalFormArea.getByPlaceholder("Enter company...");
|
|
@@ -3175,29 +3203,29 @@ class AccountLogin {
|
|
|
3175
3203
|
}
|
|
3176
3204
|
}
|
|
3177
3205
|
|
|
3178
|
-
var __defProp$
|
|
3179
|
-
var __defNormalProp$
|
|
3180
|
-
var __publicField$
|
|
3181
|
-
__defNormalProp$
|
|
3206
|
+
var __defProp$x = Object.defineProperty;
|
|
3207
|
+
var __defNormalProp$x = (obj, key, value) => key in obj ? __defProp$x(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3208
|
+
var __publicField$x = (obj, key, value) => {
|
|
3209
|
+
__defNormalProp$x(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
3182
3210
|
return value;
|
|
3183
3211
|
};
|
|
3184
3212
|
class AccountProfile {
|
|
3185
3213
|
constructor(page) {
|
|
3186
3214
|
this.page = page;
|
|
3187
|
-
__publicField$
|
|
3188
|
-
__publicField$
|
|
3189
|
-
__publicField$
|
|
3190
|
-
__publicField$
|
|
3191
|
-
__publicField$
|
|
3192
|
-
__publicField$
|
|
3193
|
-
__publicField$
|
|
3194
|
-
__publicField$
|
|
3195
|
-
__publicField$
|
|
3196
|
-
__publicField$
|
|
3197
|
-
__publicField$
|
|
3198
|
-
__publicField$
|
|
3199
|
-
__publicField$
|
|
3200
|
-
__publicField$
|
|
3215
|
+
__publicField$x(this, "salutationSelect");
|
|
3216
|
+
__publicField$x(this, "firstNameInput");
|
|
3217
|
+
__publicField$x(this, "lastNameInput");
|
|
3218
|
+
__publicField$x(this, "saveProfileButton");
|
|
3219
|
+
__publicField$x(this, "changeEmailButton");
|
|
3220
|
+
__publicField$x(this, "emailAddressInput");
|
|
3221
|
+
__publicField$x(this, "emailAddressConfirmInput");
|
|
3222
|
+
__publicField$x(this, "emailConfirmPasswordInput");
|
|
3223
|
+
__publicField$x(this, "saveEmailAddressButton");
|
|
3224
|
+
__publicField$x(this, "changePasswordButton");
|
|
3225
|
+
__publicField$x(this, "newPasswordInput");
|
|
3226
|
+
__publicField$x(this, "newPasswordConfirmInput");
|
|
3227
|
+
__publicField$x(this, "currentPasswordInput");
|
|
3228
|
+
__publicField$x(this, "saveNewPasswordButton");
|
|
3201
3229
|
this.salutationSelect = page.getByLabel("Salutation");
|
|
3202
3230
|
this.firstNameInput = page.getByPlaceholder("Enter first name...");
|
|
3203
3231
|
this.lastNameInput = page.getByPlaceholder("Enter last name...");
|
|
@@ -3218,22 +3246,22 @@ class AccountProfile {
|
|
|
3218
3246
|
}
|
|
3219
3247
|
}
|
|
3220
3248
|
|
|
3221
|
-
var __defProp$
|
|
3222
|
-
var __defNormalProp$
|
|
3223
|
-
var __publicField$
|
|
3224
|
-
__defNormalProp$
|
|
3249
|
+
var __defProp$w = Object.defineProperty;
|
|
3250
|
+
var __defNormalProp$w = (obj, key, value) => key in obj ? __defProp$w(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3251
|
+
var __publicField$w = (obj, key, value) => {
|
|
3252
|
+
__defNormalProp$w(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
3225
3253
|
return value;
|
|
3226
3254
|
};
|
|
3227
3255
|
class AccountOrder {
|
|
3228
3256
|
constructor(page) {
|
|
3229
3257
|
this.page = page;
|
|
3230
|
-
__publicField$
|
|
3231
|
-
__publicField$
|
|
3232
|
-
__publicField$
|
|
3233
|
-
__publicField$
|
|
3234
|
-
__publicField$
|
|
3235
|
-
__publicField$
|
|
3236
|
-
__publicField$
|
|
3258
|
+
__publicField$w(this, "cartLineItemImages");
|
|
3259
|
+
__publicField$w(this, "orderExpandButton");
|
|
3260
|
+
__publicField$w(this, "digitalProductDownloadButton");
|
|
3261
|
+
__publicField$w(this, "dialogOrderCancel");
|
|
3262
|
+
__publicField$w(this, "dialogOrderCancelButton");
|
|
3263
|
+
__publicField$w(this, "dialogBackButton");
|
|
3264
|
+
__publicField$w(this, "getViewSubscriptionLink", (orderNumber) => {
|
|
3237
3265
|
const orderContainer = this.page.locator(".order-item-header", { hasText: `Order Number: ${orderNumber}` });
|
|
3238
3266
|
return orderContainer.getByText("View Subscription");
|
|
3239
3267
|
});
|
|
@@ -3278,20 +3306,20 @@ class AccountOrder {
|
|
|
3278
3306
|
}
|
|
3279
3307
|
}
|
|
3280
3308
|
|
|
3281
|
-
var __defProp$
|
|
3282
|
-
var __defNormalProp$
|
|
3283
|
-
var __publicField$
|
|
3284
|
-
__defNormalProp$
|
|
3309
|
+
var __defProp$v = Object.defineProperty;
|
|
3310
|
+
var __defNormalProp$v = (obj, key, value) => key in obj ? __defProp$v(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3311
|
+
var __publicField$v = (obj, key, value) => {
|
|
3312
|
+
__defNormalProp$v(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
3285
3313
|
return value;
|
|
3286
3314
|
};
|
|
3287
3315
|
class AccountAddresses {
|
|
3288
3316
|
constructor(page) {
|
|
3289
3317
|
this.page = page;
|
|
3290
|
-
__publicField$
|
|
3291
|
-
__publicField$
|
|
3292
|
-
__publicField$
|
|
3293
|
-
__publicField$
|
|
3294
|
-
__publicField$
|
|
3318
|
+
__publicField$v(this, "addNewAddressButton");
|
|
3319
|
+
__publicField$v(this, "editBillingAddressButton");
|
|
3320
|
+
__publicField$v(this, "editShippingAddressButton");
|
|
3321
|
+
__publicField$v(this, "useDefaultBillingAddressButton");
|
|
3322
|
+
__publicField$v(this, "useDefaultShippingAddressButton");
|
|
3295
3323
|
this.addNewAddressButton = page.getByRole("link", { name: /Add (new )?address/ });
|
|
3296
3324
|
this.editBillingAddressButton = page.getByRole("link", { name: "Edit address" }).first();
|
|
3297
3325
|
this.editShippingAddressButton = page.getByRole("link", { name: "Edit address" }).nth(1);
|
|
@@ -3303,19 +3331,19 @@ class AccountAddresses {
|
|
|
3303
3331
|
}
|
|
3304
3332
|
}
|
|
3305
3333
|
|
|
3306
|
-
var __defProp$
|
|
3307
|
-
var __defNormalProp$
|
|
3308
|
-
var __publicField$
|
|
3309
|
-
__defNormalProp$
|
|
3334
|
+
var __defProp$u = Object.defineProperty;
|
|
3335
|
+
var __defNormalProp$u = (obj, key, value) => key in obj ? __defProp$u(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3336
|
+
var __publicField$u = (obj, key, value) => {
|
|
3337
|
+
__defNormalProp$u(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
3310
3338
|
return value;
|
|
3311
3339
|
};
|
|
3312
3340
|
class AccountPayment {
|
|
3313
3341
|
constructor(page) {
|
|
3314
3342
|
this.page = page;
|
|
3315
|
-
__publicField$
|
|
3316
|
-
__publicField$
|
|
3317
|
-
__publicField$
|
|
3318
|
-
__publicField$
|
|
3343
|
+
__publicField$u(this, "cashOnDeliveryOption");
|
|
3344
|
+
__publicField$u(this, "paidInAdvanceOption");
|
|
3345
|
+
__publicField$u(this, "invoiceOption");
|
|
3346
|
+
__publicField$u(this, "changeDefaultPaymentButton");
|
|
3319
3347
|
this.cashOnDeliveryOption = page.getByLabel("Cash on delivery");
|
|
3320
3348
|
this.paidInAdvanceOption = page.getByLabel("Paid in advance");
|
|
3321
3349
|
this.invoiceOption = page.getByLabel("Invoice");
|
|
@@ -3326,17 +3354,17 @@ class AccountPayment {
|
|
|
3326
3354
|
}
|
|
3327
3355
|
}
|
|
3328
3356
|
|
|
3329
|
-
var __defProp$
|
|
3330
|
-
var __defNormalProp$
|
|
3331
|
-
var __publicField$
|
|
3332
|
-
__defNormalProp$
|
|
3357
|
+
var __defProp$t = Object.defineProperty;
|
|
3358
|
+
var __defNormalProp$t = (obj, key, value) => key in obj ? __defProp$t(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3359
|
+
var __publicField$t = (obj, key, value) => {
|
|
3360
|
+
__defNormalProp$t(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
3333
3361
|
return value;
|
|
3334
3362
|
};
|
|
3335
3363
|
class Search {
|
|
3336
3364
|
constructor(page) {
|
|
3337
3365
|
this.page = page;
|
|
3338
|
-
__publicField$
|
|
3339
|
-
__publicField$
|
|
3366
|
+
__publicField$t(this, "headline");
|
|
3367
|
+
__publicField$t(this, "productImages");
|
|
3340
3368
|
this.headline = page.locator("h1.search-headline");
|
|
3341
3369
|
this.productImages = page.locator(".product-image-link");
|
|
3342
3370
|
}
|
|
@@ -3345,16 +3373,16 @@ class Search {
|
|
|
3345
3373
|
}
|
|
3346
3374
|
}
|
|
3347
3375
|
|
|
3348
|
-
var __defProp$
|
|
3349
|
-
var __defNormalProp$
|
|
3350
|
-
var __publicField$
|
|
3351
|
-
__defNormalProp$
|
|
3376
|
+
var __defProp$s = Object.defineProperty;
|
|
3377
|
+
var __defNormalProp$s = (obj, key, value) => key in obj ? __defProp$s(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3378
|
+
var __publicField$s = (obj, key, value) => {
|
|
3379
|
+
__defNormalProp$s(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
3352
3380
|
return value;
|
|
3353
3381
|
};
|
|
3354
3382
|
class SearchSuggest {
|
|
3355
3383
|
constructor(page) {
|
|
3356
3384
|
this.page = page;
|
|
3357
|
-
__publicField$
|
|
3385
|
+
__publicField$s(this, "searchSuggestLineItemImages");
|
|
3358
3386
|
this.searchSuggestLineItemImages = page.locator(".search-suggest-product-image-container");
|
|
3359
3387
|
}
|
|
3360
3388
|
url(searchTerm) {
|
|
@@ -3372,6 +3400,47 @@ class CustomRegister extends AccountLogin {
|
|
|
3372
3400
|
}
|
|
3373
3401
|
}
|
|
3374
3402
|
|
|
3403
|
+
var __defProp$r = Object.defineProperty;
|
|
3404
|
+
var __defNormalProp$r = (obj, key, value) => key in obj ? __defProp$r(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3405
|
+
var __publicField$r = (obj, key, value) => {
|
|
3406
|
+
__defNormalProp$r(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
3407
|
+
return value;
|
|
3408
|
+
};
|
|
3409
|
+
class CheckoutOrderEdit {
|
|
3410
|
+
constructor(page) {
|
|
3411
|
+
this.page = page;
|
|
3412
|
+
__publicField$r(this, "completePaymentButton");
|
|
3413
|
+
__publicField$r(this, "orderCancelButton");
|
|
3414
|
+
__publicField$r(this, "dialogOrderCancel");
|
|
3415
|
+
__publicField$r(this, "dialogOrderCancelButton");
|
|
3416
|
+
__publicField$r(this, "dialogBackButton");
|
|
3417
|
+
/**
|
|
3418
|
+
* Payment options
|
|
3419
|
+
*/
|
|
3420
|
+
__publicField$r(this, "paymentCashOnDelivery");
|
|
3421
|
+
__publicField$r(this, "paymentPaidInAdvance");
|
|
3422
|
+
__publicField$r(this, "paymentInvoice");
|
|
3423
|
+
/**
|
|
3424
|
+
* Shipping options
|
|
3425
|
+
*/
|
|
3426
|
+
__publicField$r(this, "shippingStandard");
|
|
3427
|
+
__publicField$r(this, "shippingExpress");
|
|
3428
|
+
this.completePaymentButton = page.getByRole("button", { name: "Complete payment" });
|
|
3429
|
+
this.orderCancelButton = page.getByRole("button", { name: "Cancel order" });
|
|
3430
|
+
this.dialogOrderCancel = page.getByRole("dialog", { name: "Cancel order" });
|
|
3431
|
+
this.dialogOrderCancelButton = this.dialogOrderCancel.getByRole("button", { name: "Cancel order" });
|
|
3432
|
+
this.dialogBackButton = this.dialogOrderCancel.getByRole("button", { name: "Back" });
|
|
3433
|
+
this.paymentCashOnDelivery = page.getByLabel("Cash on delivery");
|
|
3434
|
+
this.paymentPaidInAdvance = page.getByLabel("Paid in advance");
|
|
3435
|
+
this.paymentInvoice = page.getByLabel("Invoice");
|
|
3436
|
+
this.shippingStandard = page.getByLabel("Standard");
|
|
3437
|
+
this.shippingExpress = page.getByLabel("Express");
|
|
3438
|
+
}
|
|
3439
|
+
url(orderUuid) {
|
|
3440
|
+
return `account/order/edit/${orderUuid}`;
|
|
3441
|
+
}
|
|
3442
|
+
}
|
|
3443
|
+
|
|
3375
3444
|
const StorefrontPageObjects = {
|
|
3376
3445
|
Home,
|
|
3377
3446
|
ProductDetail: ProductDetail$1,
|
|
@@ -3389,7 +3458,8 @@ const StorefrontPageObjects = {
|
|
|
3389
3458
|
AccountPayment,
|
|
3390
3459
|
Search,
|
|
3391
3460
|
SearchSuggest,
|
|
3392
|
-
CustomRegister
|
|
3461
|
+
CustomRegister,
|
|
3462
|
+
CheckoutOrderEdit
|
|
3393
3463
|
};
|
|
3394
3464
|
const test$6 = test$e.extend({
|
|
3395
3465
|
StorefrontHome: async ({ StorefrontPage }, use) => {
|
|
@@ -3442,6 +3512,9 @@ const test$6 = test$e.extend({
|
|
|
3442
3512
|
},
|
|
3443
3513
|
StorefrontCustomRegister: async ({ StorefrontPage }, use) => {
|
|
3444
3514
|
await use(new CustomRegister(StorefrontPage));
|
|
3515
|
+
},
|
|
3516
|
+
StorefrontCheckoutOrderEdit: async ({ StorefrontPage }, use) => {
|
|
3517
|
+
await use(new CheckoutOrderEdit(StorefrontPage));
|
|
3445
3518
|
}
|
|
3446
3519
|
});
|
|
3447
3520
|
|
|
@@ -3501,7 +3574,7 @@ class ProductDetail {
|
|
|
3501
3574
|
this.uploadMediaButton = page.getByRole("button", { name: "Upload file" });
|
|
3502
3575
|
this.coverImage = page.locator(".sw-product-media-form__cover-image");
|
|
3503
3576
|
this.productImage = page.locator(".sw-media-preview-v2__item");
|
|
3504
|
-
this.variantsTabLink = page.getByRole("
|
|
3577
|
+
this.variantsTabLink = page.getByRole("tab", { name: "Variants" });
|
|
3505
3578
|
this.generateVariantsButton = page.getByRole("button", { name: "Generate variants" });
|
|
3506
3579
|
this.variantsModal = page.getByRole("dialog", { name: "Generate variants" });
|
|
3507
3580
|
this.variantsModalHeadline = this.variantsModal.getByRole("heading", { name: "Generate variants" });
|
|
@@ -3516,7 +3589,7 @@ class ProductDetail {
|
|
|
3516
3589
|
this.propertyOptionSizeSmall = this.propertyOptionGrid.getByLabel("Small");
|
|
3517
3590
|
this.propertyOptionSizeMedium = this.propertyOptionGrid.getByLabel("Medium");
|
|
3518
3591
|
this.propertyOptionSizeLarge = this.propertyOptionGrid.getByLabel("Large");
|
|
3519
|
-
this.specificationsTabLink = page.getByRole("
|
|
3592
|
+
this.specificationsTabLink = page.getByRole("tab", { name: "Specifications" });
|
|
3520
3593
|
this.customFieldCard = page.locator(".sw-card").getByText("Custom fields");
|
|
3521
3594
|
}
|
|
3522
3595
|
async getCustomFieldSetCardContentByName(customFieldSetName) {
|
|
@@ -4052,7 +4125,7 @@ class LandingPageCreate {
|
|
|
4052
4125
|
this.salesChannelSelectionList = page.locator(".sw-select").filter({ hasText: "Sales Channels" }).locator(".sw-select-selection-list");
|
|
4053
4126
|
this.filtersResultPopoverItemList = page.locator(".sw-select-result-list__content").getByRole("listitem");
|
|
4054
4127
|
this.seoUrlInput = page.getByLabel("SEO URL");
|
|
4055
|
-
this.layoutTab = page.getByRole("
|
|
4128
|
+
this.layoutTab = page.getByRole("tab", { name: "Layout" });
|
|
4056
4129
|
const layoutCardPreview = page.locator(".sw-category-layout-card__preview");
|
|
4057
4130
|
this.layoutEmptyState = layoutCardPreview.locator(".is--empty");
|
|
4058
4131
|
this.assignLayoutButton = page.getByRole("button", { name: "Assign layout" });
|
|
@@ -4106,7 +4179,7 @@ class LandingPageDetail {
|
|
|
4106
4179
|
this.salesChannelSelectionList = page.locator(".sw-select").filter({ hasText: "Sales Channels" }).locator(".sw-select-selection-list");
|
|
4107
4180
|
this.filtersResultPopoverItemList = page.locator(".sw-select-result-list__content").getByRole("listitem");
|
|
4108
4181
|
this.seoUrlInput = page.getByLabel("SEO URL");
|
|
4109
|
-
this.layoutTab = page.getByRole("
|
|
4182
|
+
this.layoutTab = page.getByRole("tab", { name: "Layout" });
|
|
4110
4183
|
this.changeLayoutButton = page.getByRole("button", { name: "Change layout" });
|
|
4111
4184
|
this.editInDesignerButton = page.getByRole("button", { name: "Edit in designer" });
|
|
4112
4185
|
const layoutAssignmentCard = page.locator(".sw-category-layout-card");
|
|
@@ -5269,10 +5342,37 @@ const CreateLinkTypeCategory = test$e.extend({
|
|
|
5269
5342
|
}
|
|
5270
5343
|
});
|
|
5271
5344
|
|
|
5345
|
+
const SetSystemConfigValues = test$e.extend({
|
|
5346
|
+
SetSystemConfigValues: async ({ AdminApiContext, DefaultSalesChannel }, use) => {
|
|
5347
|
+
let defaultSettings;
|
|
5348
|
+
const task = (newValues, defaultValues) => {
|
|
5349
|
+
return async function LoginRegistration() {
|
|
5350
|
+
defaultSettings = defaultValues;
|
|
5351
|
+
const newSettings = await AdminApiContext.post("./_action/system-config/batch", {
|
|
5352
|
+
data: {
|
|
5353
|
+
null: newValues,
|
|
5354
|
+
[DefaultSalesChannel.salesChannel.id]: {}
|
|
5355
|
+
}
|
|
5356
|
+
});
|
|
5357
|
+
expect(newSettings.ok()).toBeTruthy();
|
|
5358
|
+
};
|
|
5359
|
+
};
|
|
5360
|
+
await use(task);
|
|
5361
|
+
const revertSettings = await AdminApiContext.post(`./_action/system-config/batch`, {
|
|
5362
|
+
data: {
|
|
5363
|
+
null: defaultSettings,
|
|
5364
|
+
[DefaultSalesChannel.salesChannel.id]: {}
|
|
5365
|
+
}
|
|
5366
|
+
});
|
|
5367
|
+
expect(revertSettings.ok()).toBeTruthy();
|
|
5368
|
+
}
|
|
5369
|
+
});
|
|
5370
|
+
|
|
5272
5371
|
const test$3 = mergeTests(
|
|
5273
5372
|
SaveProduct,
|
|
5274
5373
|
ExpectNotification,
|
|
5275
|
-
CreateLinkTypeCategory
|
|
5374
|
+
CreateLinkTypeCategory,
|
|
5375
|
+
SetSystemConfigValues
|
|
5276
5376
|
);
|
|
5277
5377
|
|
|
5278
5378
|
const Login = test$e.extend({
|
|
@@ -5306,11 +5406,13 @@ const Logout = test$e.extend({
|
|
|
5306
5406
|
});
|
|
5307
5407
|
|
|
5308
5408
|
const Register = test$e.extend({
|
|
5309
|
-
Register: async ({ StorefrontAccountLogin, AdminApiContext }, use) => {
|
|
5310
|
-
|
|
5409
|
+
Register: async ({ StorefrontAccountLogin, AdminApiContext: AdminApiContext2, IdProvider }, use) => {
|
|
5410
|
+
let registeredEmail = "";
|
|
5411
|
+
const defaultRegistrationData = {
|
|
5412
|
+
salutation: "Mr.",
|
|
5311
5413
|
firstName: "Jeff",
|
|
5312
5414
|
lastName: "Goldblum",
|
|
5313
|
-
email: "
|
|
5415
|
+
email: IdProvider.getIdPair().uuid + "@test.com",
|
|
5314
5416
|
password: "shopware",
|
|
5315
5417
|
street: "Ebbinghof 10",
|
|
5316
5418
|
city: "Sch\xF6ppingen",
|
|
@@ -5320,43 +5422,54 @@ const Register = test$e.extend({
|
|
|
5320
5422
|
department: "Operations",
|
|
5321
5423
|
vatRegNo: "DE1234567890"
|
|
5322
5424
|
};
|
|
5323
|
-
const
|
|
5324
|
-
return async function
|
|
5325
|
-
registrationData
|
|
5425
|
+
const registerTask = (overrides, isCommercial) => {
|
|
5426
|
+
return async function() {
|
|
5427
|
+
const registrationData = { ...defaultRegistrationData, ...overrides };
|
|
5428
|
+
registeredEmail = registrationData.email;
|
|
5429
|
+
if (isCommercial) {
|
|
5430
|
+
await StorefrontAccountLogin.accountTypeSelect.selectOption("Commercial");
|
|
5431
|
+
}
|
|
5432
|
+
await StorefrontAccountLogin.salutationSelect.selectOption(registrationData.salutation);
|
|
5326
5433
|
await StorefrontAccountLogin.firstNameInput.fill(registrationData.firstName);
|
|
5327
5434
|
await StorefrontAccountLogin.lastNameInput.fill(registrationData.lastName);
|
|
5328
|
-
await StorefrontAccountLogin.registerEmailInput.fill(registrationData.email);
|
|
5329
|
-
await StorefrontAccountLogin.registerPasswordInput.fill(registrationData.password);
|
|
5330
|
-
await StorefrontAccountLogin.streetAddressInput.fill(registrationData.street);
|
|
5331
|
-
await StorefrontAccountLogin.cityInput.fill(registrationData.city);
|
|
5332
|
-
await StorefrontAccountLogin.countryInput.selectOption(registrationData.country);
|
|
5333
|
-
await StorefrontAccountLogin.postalCodeInput.fill(registrationData.postalCode);
|
|
5334
5435
|
if (isCommercial) {
|
|
5335
5436
|
await StorefrontAccountLogin.companyInput.fill(registrationData.company);
|
|
5336
5437
|
await StorefrontAccountLogin.departmentInput.fill(registrationData.department);
|
|
5337
5438
|
await StorefrontAccountLogin.vatRegNoInput.fill(registrationData.vatRegNo);
|
|
5338
5439
|
}
|
|
5440
|
+
await StorefrontAccountLogin.registerEmailInput.fill(registrationData.email);
|
|
5441
|
+
await StorefrontAccountLogin.registerPasswordInput.fill(registrationData.password);
|
|
5442
|
+
await StorefrontAccountLogin.streetAddressInput.fill(registrationData.street);
|
|
5443
|
+
await StorefrontAccountLogin.postalCodeInput.fill(registrationData.postalCode);
|
|
5444
|
+
await StorefrontAccountLogin.cityInput.fill(registrationData.city);
|
|
5445
|
+
await StorefrontAccountLogin.countryInput.selectOption({ label: registrationData.country });
|
|
5339
5446
|
await StorefrontAccountLogin.registerButton.click();
|
|
5340
5447
|
};
|
|
5341
5448
|
};
|
|
5342
|
-
await use(
|
|
5343
|
-
|
|
5344
|
-
|
|
5345
|
-
|
|
5346
|
-
|
|
5449
|
+
await use(registerTask);
|
|
5450
|
+
await deleteRegisteredUser(AdminApiContext2, registeredEmail);
|
|
5451
|
+
}
|
|
5452
|
+
});
|
|
5453
|
+
async function deleteRegisteredUser(adminApiContext, email) {
|
|
5454
|
+
if (!email)
|
|
5455
|
+
return;
|
|
5456
|
+
const response = await adminApiContext.post("search/customer", {
|
|
5457
|
+
data: {
|
|
5458
|
+
limit: 1,
|
|
5459
|
+
filter: [
|
|
5460
|
+
{
|
|
5347
5461
|
type: "equals",
|
|
5348
5462
|
field: "email",
|
|
5349
|
-
value:
|
|
5350
|
-
}
|
|
5351
|
-
|
|
5352
|
-
});
|
|
5353
|
-
expect(customerResponse.ok()).toBeTruthy();
|
|
5354
|
-
const customerResponseData = await customerResponse.json();
|
|
5355
|
-
for (const customer of customerResponseData.data) {
|
|
5356
|
-
await AdminApiContext.delete(`customer/${customer.id}`);
|
|
5463
|
+
value: email
|
|
5464
|
+
}
|
|
5465
|
+
]
|
|
5357
5466
|
}
|
|
5467
|
+
});
|
|
5468
|
+
const { data: customers } = await response.json();
|
|
5469
|
+
for (const customer of customers) {
|
|
5470
|
+
await adminApiContext.delete(`customer/${customer.id}`);
|
|
5358
5471
|
}
|
|
5359
|
-
}
|
|
5472
|
+
}
|
|
5360
5473
|
|
|
5361
5474
|
const RegisterGuest = test$e.extend({
|
|
5362
5475
|
RegisterGuest: async ({ StorefrontAccountLogin, AdminApiContext }, use) => {
|