@shopware-ag/acceptance-test-suite 1.4.0 → 1.5.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 +30 -1
- package/dist/index.d.ts +30 -1
- package/dist/index.mjs +343 -280
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -498,6 +498,29 @@ declare class FlowBuilderListing implements PageObject {
|
|
|
498
498
|
goTo(): Promise<void>;
|
|
499
499
|
}
|
|
500
500
|
|
|
501
|
+
declare class DataSharing implements PageObject {
|
|
502
|
+
readonly page: Page;
|
|
503
|
+
readonly dataSharingSuccessMessageLabel: Locator;
|
|
504
|
+
readonly dataSharingAgreeButton: Locator;
|
|
505
|
+
readonly dataSharingDisableButton: Locator;
|
|
506
|
+
readonly dataSharingTermsAgreementLabel: Locator;
|
|
507
|
+
constructor(page: Page);
|
|
508
|
+
goTo(): Promise<void>;
|
|
509
|
+
}
|
|
510
|
+
|
|
511
|
+
declare class Dashboard implements PageObject {
|
|
512
|
+
readonly page: Page;
|
|
513
|
+
readonly dataSharingConsentBanner: Locator;
|
|
514
|
+
readonly dataSharingAgreeButton: Locator;
|
|
515
|
+
readonly dataSharingNotAtTheMomentButton: Locator;
|
|
516
|
+
readonly dataSharingTermsAgreementLabel: Locator;
|
|
517
|
+
readonly dataSharingSettingsLink: Locator;
|
|
518
|
+
readonly dataSharingAcceptMessageText: Locator;
|
|
519
|
+
readonly dataSharingNotAtTheMomentMessageText: Locator;
|
|
520
|
+
constructor(page: Page);
|
|
521
|
+
goTo(): Promise<void>;
|
|
522
|
+
}
|
|
523
|
+
|
|
501
524
|
interface AdministrationPageTypes {
|
|
502
525
|
AdminProductDetail: ProductDetail;
|
|
503
526
|
AdminOrderDetail: OrderDetail;
|
|
@@ -505,6 +528,8 @@ interface AdministrationPageTypes {
|
|
|
505
528
|
AdminFirstRunWizard: FirstRunWizard;
|
|
506
529
|
AdminFlowBuilderCreate: FlowBuilderCreate;
|
|
507
530
|
AdminFlowBuilderListing: FlowBuilderListing;
|
|
531
|
+
AdminDataSharing: DataSharing;
|
|
532
|
+
AdminDashboard: Dashboard;
|
|
508
533
|
}
|
|
509
534
|
declare const AdminPageObjects: {
|
|
510
535
|
ProductDetail: typeof ProductDetail;
|
|
@@ -513,6 +538,8 @@ declare const AdminPageObjects: {
|
|
|
513
538
|
FirstRunWizard: typeof FirstRunWizard;
|
|
514
539
|
FlowBuilderCreate: typeof FlowBuilderCreate;
|
|
515
540
|
FlowBuilderListing: typeof FlowBuilderListing;
|
|
541
|
+
Dashboard: typeof Dashboard;
|
|
542
|
+
DataSharing: typeof DataSharing;
|
|
516
543
|
};
|
|
517
544
|
|
|
518
545
|
interface DataFixtureTypes {
|
|
@@ -556,6 +583,8 @@ declare const getOrderTransactionId: (orderId: string, adminApiContext: AdminApi
|
|
|
556
583
|
}>;
|
|
557
584
|
declare const getMediaId: (fileName: string, adminApiContext: AdminApiContext) => Promise<string>;
|
|
558
585
|
declare function extractIdFromUrl(url: string): string | null;
|
|
586
|
+
type OrderStatus = 'cancel' | 'complete' | 'reopen' | 'process';
|
|
587
|
+
declare const setOrderStatus: (orderId: string, orderStatus: OrderStatus, adminApiContext: AdminApiContext) => Promise<APIResponse>;
|
|
559
588
|
|
|
560
589
|
declare const isSaaSInstance: (adminApiContext: AdminApiContext) => Promise<boolean>;
|
|
561
590
|
|
|
@@ -597,4 +626,4 @@ declare const test: _playwright_test.TestType<_playwright_test.PlaywrightTestArg
|
|
|
597
626
|
ValidateAccessibility: (pageName: string, assertViolations?: boolean | undefined, createReport?: boolean | undefined, ruleTags?: string[] | undefined, outputDir?: string | undefined) => () => Promise<void>;
|
|
598
627
|
}, _playwright_test.PlaywrightWorkerArgs & _playwright_test.PlaywrightWorkerOptions & HelperFixtureTypes & FixtureTypes>;
|
|
599
628
|
|
|
600
|
-
export { AdminPageObjects, type FixtureTypes, type PageObject, StorefrontPageObjects, type Task, createRandomImage, extractIdFromUrl, getCountryId, getCurrency, getDefaultShippingMethodId, getFlowId, getLanguageData, getMediaId, getOrderTransactionId, getPaymentMethodId, getSalutationId, getSnippetSetId, getStateMachineId, getStateMachineStateId, getTaxId, getThemeId, isSaaSInstance, test };
|
|
629
|
+
export { AdminPageObjects, type FixtureTypes, type PageObject, StorefrontPageObjects, type Task, createRandomImage, extractIdFromUrl, getCountryId, getCurrency, getDefaultShippingMethodId, getFlowId, getLanguageData, getMediaId, getOrderTransactionId, getPaymentMethodId, getSalutationId, getSnippetSetId, getStateMachineId, getStateMachineStateId, getTaxId, getThemeId, isSaaSInstance, setOrderStatus, test };
|
package/dist/index.d.ts
CHANGED
|
@@ -498,6 +498,29 @@ declare class FlowBuilderListing implements PageObject {
|
|
|
498
498
|
goTo(): Promise<void>;
|
|
499
499
|
}
|
|
500
500
|
|
|
501
|
+
declare class DataSharing implements PageObject {
|
|
502
|
+
readonly page: Page;
|
|
503
|
+
readonly dataSharingSuccessMessageLabel: Locator;
|
|
504
|
+
readonly dataSharingAgreeButton: Locator;
|
|
505
|
+
readonly dataSharingDisableButton: Locator;
|
|
506
|
+
readonly dataSharingTermsAgreementLabel: Locator;
|
|
507
|
+
constructor(page: Page);
|
|
508
|
+
goTo(): Promise<void>;
|
|
509
|
+
}
|
|
510
|
+
|
|
511
|
+
declare class Dashboard implements PageObject {
|
|
512
|
+
readonly page: Page;
|
|
513
|
+
readonly dataSharingConsentBanner: Locator;
|
|
514
|
+
readonly dataSharingAgreeButton: Locator;
|
|
515
|
+
readonly dataSharingNotAtTheMomentButton: Locator;
|
|
516
|
+
readonly dataSharingTermsAgreementLabel: Locator;
|
|
517
|
+
readonly dataSharingSettingsLink: Locator;
|
|
518
|
+
readonly dataSharingAcceptMessageText: Locator;
|
|
519
|
+
readonly dataSharingNotAtTheMomentMessageText: Locator;
|
|
520
|
+
constructor(page: Page);
|
|
521
|
+
goTo(): Promise<void>;
|
|
522
|
+
}
|
|
523
|
+
|
|
501
524
|
interface AdministrationPageTypes {
|
|
502
525
|
AdminProductDetail: ProductDetail;
|
|
503
526
|
AdminOrderDetail: OrderDetail;
|
|
@@ -505,6 +528,8 @@ interface AdministrationPageTypes {
|
|
|
505
528
|
AdminFirstRunWizard: FirstRunWizard;
|
|
506
529
|
AdminFlowBuilderCreate: FlowBuilderCreate;
|
|
507
530
|
AdminFlowBuilderListing: FlowBuilderListing;
|
|
531
|
+
AdminDataSharing: DataSharing;
|
|
532
|
+
AdminDashboard: Dashboard;
|
|
508
533
|
}
|
|
509
534
|
declare const AdminPageObjects: {
|
|
510
535
|
ProductDetail: typeof ProductDetail;
|
|
@@ -513,6 +538,8 @@ declare const AdminPageObjects: {
|
|
|
513
538
|
FirstRunWizard: typeof FirstRunWizard;
|
|
514
539
|
FlowBuilderCreate: typeof FlowBuilderCreate;
|
|
515
540
|
FlowBuilderListing: typeof FlowBuilderListing;
|
|
541
|
+
Dashboard: typeof Dashboard;
|
|
542
|
+
DataSharing: typeof DataSharing;
|
|
516
543
|
};
|
|
517
544
|
|
|
518
545
|
interface DataFixtureTypes {
|
|
@@ -556,6 +583,8 @@ declare const getOrderTransactionId: (orderId: string, adminApiContext: AdminApi
|
|
|
556
583
|
}>;
|
|
557
584
|
declare const getMediaId: (fileName: string, adminApiContext: AdminApiContext) => Promise<string>;
|
|
558
585
|
declare function extractIdFromUrl(url: string): string | null;
|
|
586
|
+
type OrderStatus = 'cancel' | 'complete' | 'reopen' | 'process';
|
|
587
|
+
declare const setOrderStatus: (orderId: string, orderStatus: OrderStatus, adminApiContext: AdminApiContext) => Promise<APIResponse>;
|
|
559
588
|
|
|
560
589
|
declare const isSaaSInstance: (adminApiContext: AdminApiContext) => Promise<boolean>;
|
|
561
590
|
|
|
@@ -597,4 +626,4 @@ declare const test: _playwright_test.TestType<_playwright_test.PlaywrightTestArg
|
|
|
597
626
|
ValidateAccessibility: (pageName: string, assertViolations?: boolean | undefined, createReport?: boolean | undefined, ruleTags?: string[] | undefined, outputDir?: string | undefined) => () => Promise<void>;
|
|
598
627
|
}, _playwright_test.PlaywrightWorkerArgs & _playwright_test.PlaywrightWorkerOptions & HelperFixtureTypes & FixtureTypes>;
|
|
599
628
|
|
|
600
|
-
export { AdminPageObjects, type FixtureTypes, type PageObject, StorefrontPageObjects, type Task, createRandomImage, extractIdFromUrl, getCountryId, getCurrency, getDefaultShippingMethodId, getFlowId, getLanguageData, getMediaId, getOrderTransactionId, getPaymentMethodId, getSalutationId, getSnippetSetId, getStateMachineId, getStateMachineStateId, getTaxId, getThemeId, isSaaSInstance, test };
|
|
629
|
+
export { AdminPageObjects, type FixtureTypes, type PageObject, StorefrontPageObjects, type Task, createRandomImage, extractIdFromUrl, getCountryId, getCurrency, getDefaultShippingMethodId, getFlowId, getLanguageData, getMediaId, getOrderTransactionId, getPaymentMethodId, getSalutationId, getSnippetSetId, getStateMachineId, getStateMachineStateId, getTaxId, getThemeId, isSaaSInstance, setOrderStatus, test };
|
package/dist/index.mjs
CHANGED
|
@@ -196,6 +196,9 @@ function extractIdFromUrl(url) {
|
|
|
196
196
|
const segments = url.split("/");
|
|
197
197
|
return segments.length > 0 ? segments[segments.length - 1] : null;
|
|
198
198
|
}
|
|
199
|
+
const setOrderStatus = async (orderId, orderStatus, adminApiContext) => {
|
|
200
|
+
return await adminApiContext.post(`./_action/order/${orderId}/state/${orderStatus}`);
|
|
201
|
+
};
|
|
199
202
|
|
|
200
203
|
const test$a = test$c.extend({
|
|
201
204
|
SalesChannelBaseConfig: [
|
|
@@ -417,16 +420,16 @@ const test$a = test$c.extend({
|
|
|
417
420
|
]
|
|
418
421
|
});
|
|
419
422
|
|
|
420
|
-
var __defProp$
|
|
421
|
-
var __defNormalProp$
|
|
422
|
-
var __publicField$
|
|
423
|
-
__defNormalProp$
|
|
423
|
+
var __defProp$q = Object.defineProperty;
|
|
424
|
+
var __defNormalProp$q = (obj, key, value) => key in obj ? __defProp$q(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
425
|
+
var __publicField$q = (obj, key, value) => {
|
|
426
|
+
__defNormalProp$q(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
424
427
|
return value;
|
|
425
428
|
};
|
|
426
429
|
const _AdminApiContext = class _AdminApiContext {
|
|
427
430
|
constructor(context, options) {
|
|
428
|
-
__publicField$
|
|
429
|
-
__publicField$
|
|
431
|
+
__publicField$q(this, "context");
|
|
432
|
+
__publicField$q(this, "options");
|
|
430
433
|
this.context = context;
|
|
431
434
|
this.options = options;
|
|
432
435
|
}
|
|
@@ -518,7 +521,7 @@ const _AdminApiContext = class _AdminApiContext {
|
|
|
518
521
|
return this.context.head(url, options);
|
|
519
522
|
}
|
|
520
523
|
};
|
|
521
|
-
__publicField$
|
|
524
|
+
__publicField$q(_AdminApiContext, "defaultOptions", {
|
|
522
525
|
app_url: process.env["APP_URL"],
|
|
523
526
|
client_id: process.env["SHOPWARE_ACCESS_KEY_ID"],
|
|
524
527
|
client_secret: process.env["SHOPWARE_SECRET_ACCESS_KEY"],
|
|
@@ -528,16 +531,16 @@ __publicField$o(_AdminApiContext, "defaultOptions", {
|
|
|
528
531
|
});
|
|
529
532
|
let AdminApiContext = _AdminApiContext;
|
|
530
533
|
|
|
531
|
-
var __defProp$
|
|
532
|
-
var __defNormalProp$
|
|
533
|
-
var __publicField$
|
|
534
|
-
__defNormalProp$
|
|
534
|
+
var __defProp$p = Object.defineProperty;
|
|
535
|
+
var __defNormalProp$p = (obj, key, value) => key in obj ? __defProp$p(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
536
|
+
var __publicField$p = (obj, key, value) => {
|
|
537
|
+
__defNormalProp$p(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
535
538
|
return value;
|
|
536
539
|
};
|
|
537
540
|
const _StoreApiContext = class _StoreApiContext {
|
|
538
541
|
constructor(context, options) {
|
|
539
|
-
__publicField$
|
|
540
|
-
__publicField$
|
|
542
|
+
__publicField$p(this, "context");
|
|
543
|
+
__publicField$p(this, "options");
|
|
541
544
|
this.context = context;
|
|
542
545
|
this.options = options;
|
|
543
546
|
}
|
|
@@ -596,7 +599,7 @@ const _StoreApiContext = class _StoreApiContext {
|
|
|
596
599
|
return this.context.head(url, options);
|
|
597
600
|
}
|
|
598
601
|
};
|
|
599
|
-
__publicField$
|
|
602
|
+
__publicField$p(_StoreApiContext, "defaultOptions", {
|
|
600
603
|
app_url: process.env["APP_URL"],
|
|
601
604
|
ignoreHTTPSErrors: true
|
|
602
605
|
});
|
|
@@ -688,17 +691,17 @@ const test$8 = test$c.extend({
|
|
|
688
691
|
}
|
|
689
692
|
});
|
|
690
693
|
|
|
691
|
-
var __defProp$
|
|
692
|
-
var __defNormalProp$
|
|
693
|
-
var __publicField$
|
|
694
|
-
__defNormalProp$
|
|
694
|
+
var __defProp$o = Object.defineProperty;
|
|
695
|
+
var __defNormalProp$o = (obj, key, value) => key in obj ? __defProp$o(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
696
|
+
var __publicField$o = (obj, key, value) => {
|
|
697
|
+
__defNormalProp$o(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
695
698
|
return value;
|
|
696
699
|
};
|
|
697
700
|
class Actor {
|
|
698
701
|
constructor(name, page) {
|
|
699
|
-
__publicField$
|
|
700
|
-
__publicField$
|
|
701
|
-
__publicField$
|
|
702
|
+
__publicField$o(this, "page");
|
|
703
|
+
__publicField$o(this, "name");
|
|
704
|
+
__publicField$o(this, "expects", expect);
|
|
702
705
|
this.name = name;
|
|
703
706
|
this.page = page;
|
|
704
707
|
}
|
|
@@ -738,16 +741,16 @@ const test$7 = test$c.extend({
|
|
|
738
741
|
}
|
|
739
742
|
});
|
|
740
743
|
|
|
741
|
-
var __defProp$
|
|
742
|
-
var __defNormalProp$
|
|
743
|
-
var __publicField$
|
|
744
|
-
__defNormalProp$
|
|
744
|
+
var __defProp$n = Object.defineProperty;
|
|
745
|
+
var __defNormalProp$n = (obj, key, value) => key in obj ? __defProp$n(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
746
|
+
var __publicField$n = (obj, key, value) => {
|
|
747
|
+
__defNormalProp$n(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
745
748
|
return value;
|
|
746
749
|
};
|
|
747
750
|
class IdProvider {
|
|
748
751
|
constructor(workerIndex, seed) {
|
|
749
|
-
__publicField$
|
|
750
|
-
__publicField$
|
|
752
|
+
__publicField$n(this, "workerIndex");
|
|
753
|
+
__publicField$n(this, "seed");
|
|
751
754
|
this.workerIndex = workerIndex;
|
|
752
755
|
this.seed = seed;
|
|
753
756
|
}
|
|
@@ -787,16 +790,16 @@ const test$6 = test$c.extend({
|
|
|
787
790
|
]
|
|
788
791
|
});
|
|
789
792
|
|
|
790
|
-
var __defProp$
|
|
791
|
-
var __defNormalProp$
|
|
792
|
-
var __publicField$
|
|
793
|
-
__defNormalProp$
|
|
793
|
+
var __defProp$m = Object.defineProperty;
|
|
794
|
+
var __defNormalProp$m = (obj, key, value) => key in obj ? __defProp$m(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
795
|
+
var __publicField$m = (obj, key, value) => {
|
|
796
|
+
__defNormalProp$m(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
794
797
|
return value;
|
|
795
798
|
};
|
|
796
799
|
class Home {
|
|
797
800
|
constructor(page) {
|
|
798
801
|
this.page = page;
|
|
799
|
-
__publicField$
|
|
802
|
+
__publicField$m(this, "productImages");
|
|
800
803
|
this.productImages = page.locator(".product-image-link");
|
|
801
804
|
}
|
|
802
805
|
async goTo() {
|
|
@@ -804,25 +807,25 @@ class Home {
|
|
|
804
807
|
}
|
|
805
808
|
}
|
|
806
809
|
|
|
807
|
-
var __defProp$
|
|
808
|
-
var __defNormalProp$
|
|
809
|
-
var __publicField$
|
|
810
|
-
__defNormalProp$
|
|
810
|
+
var __defProp$l = Object.defineProperty;
|
|
811
|
+
var __defNormalProp$l = (obj, key, value) => key in obj ? __defProp$l(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
812
|
+
var __publicField$l = (obj, key, value) => {
|
|
813
|
+
__defNormalProp$l(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
811
814
|
return value;
|
|
812
815
|
};
|
|
813
816
|
let ProductDetail$1 = class ProductDetail {
|
|
814
817
|
constructor(page, productData) {
|
|
815
818
|
this.page = page;
|
|
816
819
|
this.productData = productData;
|
|
817
|
-
__publicField$
|
|
818
|
-
__publicField$
|
|
819
|
-
__publicField$
|
|
820
|
-
__publicField$
|
|
821
|
-
__publicField$
|
|
822
|
-
__publicField$
|
|
823
|
-
__publicField$
|
|
824
|
-
__publicField$
|
|
825
|
-
__publicField$
|
|
820
|
+
__publicField$l(this, "addToCartButton");
|
|
821
|
+
__publicField$l(this, "offCanvasCartTitle");
|
|
822
|
+
__publicField$l(this, "offCanvasCart");
|
|
823
|
+
__publicField$l(this, "offCanvasCartGoToCheckoutButton");
|
|
824
|
+
__publicField$l(this, "productSingleImage");
|
|
825
|
+
__publicField$l(this, "offCanvasLineItemImages");
|
|
826
|
+
__publicField$l(this, "quantitySelect");
|
|
827
|
+
__publicField$l(this, "offCanvasSummaryTotalPrice");
|
|
828
|
+
__publicField$l(this, "offCanvas");
|
|
826
829
|
this.addToCartButton = page.getByRole("button", { name: "Add to shopping cart" });
|
|
827
830
|
this.offCanvasCartTitle = page.getByText("Shopping cart", { exact: true });
|
|
828
831
|
this.offCanvasCart = page.getByRole("dialog");
|
|
@@ -843,19 +846,19 @@ let ProductDetail$1 = class ProductDetail {
|
|
|
843
846
|
}
|
|
844
847
|
};
|
|
845
848
|
|
|
846
|
-
var __defProp$
|
|
847
|
-
var __defNormalProp$
|
|
848
|
-
var __publicField$
|
|
849
|
-
__defNormalProp$
|
|
849
|
+
var __defProp$k = Object.defineProperty;
|
|
850
|
+
var __defNormalProp$k = (obj, key, value) => key in obj ? __defProp$k(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
851
|
+
var __publicField$k = (obj, key, value) => {
|
|
852
|
+
__defNormalProp$k(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
850
853
|
return value;
|
|
851
854
|
};
|
|
852
855
|
class Category {
|
|
853
856
|
constructor(page, CategoryData) {
|
|
854
857
|
this.page = page;
|
|
855
|
-
__publicField$
|
|
856
|
-
__publicField$
|
|
857
|
-
__publicField$
|
|
858
|
-
__publicField$
|
|
858
|
+
__publicField$k(this, "categoryData");
|
|
859
|
+
__publicField$k(this, "sortingSelect");
|
|
860
|
+
__publicField$k(this, "firstProductBuyButton");
|
|
861
|
+
__publicField$k(this, "noProductsFoundAlert");
|
|
859
862
|
this.categoryData = CategoryData;
|
|
860
863
|
this.sortingSelect = page.getByLabel("Sorting");
|
|
861
864
|
this.firstProductBuyButton = page.getByRole("button", { name: "Add to shopping cart" }).first();
|
|
@@ -867,23 +870,23 @@ class Category {
|
|
|
867
870
|
}
|
|
868
871
|
}
|
|
869
872
|
|
|
870
|
-
var __defProp$
|
|
871
|
-
var __defNormalProp$
|
|
872
|
-
var __publicField$
|
|
873
|
-
__defNormalProp$
|
|
873
|
+
var __defProp$j = Object.defineProperty;
|
|
874
|
+
var __defNormalProp$j = (obj, key, value) => key in obj ? __defProp$j(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
875
|
+
var __publicField$j = (obj, key, value) => {
|
|
876
|
+
__defNormalProp$j(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
874
877
|
return value;
|
|
875
878
|
};
|
|
876
879
|
class CheckoutCart {
|
|
877
880
|
constructor(page) {
|
|
878
881
|
this.page = page;
|
|
879
|
-
__publicField$
|
|
880
|
-
__publicField$
|
|
881
|
-
__publicField$
|
|
882
|
-
__publicField$
|
|
883
|
-
__publicField$
|
|
884
|
-
__publicField$
|
|
885
|
-
__publicField$
|
|
886
|
-
__publicField$
|
|
882
|
+
__publicField$j(this, "headline");
|
|
883
|
+
__publicField$j(this, "goToCheckoutButton");
|
|
884
|
+
__publicField$j(this, "enterDiscountInput");
|
|
885
|
+
__publicField$j(this, "grandTotalPrice");
|
|
886
|
+
__publicField$j(this, "emptyCartAlert");
|
|
887
|
+
__publicField$j(this, "stockReachedAlert");
|
|
888
|
+
__publicField$j(this, "cartLineItemImages");
|
|
889
|
+
__publicField$j(this, "unitPriceInfo");
|
|
887
890
|
this.headline = page.getByRole("heading", { name: "Shopping cart" });
|
|
888
891
|
this.goToCheckoutButton = page.getByRole("link", { name: "Go to checkout" });
|
|
889
892
|
this.enterDiscountInput = page.getByLabel("Discount code");
|
|
@@ -898,35 +901,35 @@ class CheckoutCart {
|
|
|
898
901
|
}
|
|
899
902
|
}
|
|
900
903
|
|
|
901
|
-
var __defProp$
|
|
902
|
-
var __defNormalProp$
|
|
903
|
-
var __publicField$
|
|
904
|
-
__defNormalProp$
|
|
904
|
+
var __defProp$i = Object.defineProperty;
|
|
905
|
+
var __defNormalProp$i = (obj, key, value) => key in obj ? __defProp$i(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
906
|
+
var __publicField$i = (obj, key, value) => {
|
|
907
|
+
__defNormalProp$i(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
905
908
|
return value;
|
|
906
909
|
};
|
|
907
910
|
class CheckoutConfirm {
|
|
908
911
|
constructor(page) {
|
|
909
912
|
this.page = page;
|
|
910
|
-
__publicField$
|
|
911
|
-
__publicField$
|
|
912
|
-
__publicField$
|
|
913
|
-
__publicField$
|
|
914
|
-
__publicField$
|
|
913
|
+
__publicField$i(this, "headline");
|
|
914
|
+
__publicField$i(this, "termsAndConditionsCheckbox");
|
|
915
|
+
__publicField$i(this, "immediateAccessToDigitalProductCheckbox");
|
|
916
|
+
__publicField$i(this, "grandTotalPrice");
|
|
917
|
+
__publicField$i(this, "submitOrderButton");
|
|
915
918
|
/**
|
|
916
919
|
* Payment options
|
|
917
920
|
*/
|
|
918
|
-
__publicField$
|
|
919
|
-
__publicField$
|
|
920
|
-
__publicField$
|
|
921
|
+
__publicField$i(this, "paymentCashOnDelivery");
|
|
922
|
+
__publicField$i(this, "paymentPaidInAdvance");
|
|
923
|
+
__publicField$i(this, "paymentInvoice");
|
|
921
924
|
/**
|
|
922
925
|
* Shipping options
|
|
923
926
|
*/
|
|
924
|
-
__publicField$
|
|
925
|
-
__publicField$
|
|
927
|
+
__publicField$i(this, "shippingStandard");
|
|
928
|
+
__publicField$i(this, "shippingExpress");
|
|
926
929
|
/**
|
|
927
930
|
* Product details
|
|
928
931
|
*/
|
|
929
|
-
__publicField$
|
|
932
|
+
__publicField$i(this, "cartLineItemImages");
|
|
930
933
|
this.headline = page.getByRole("heading", { name: "Complete order" });
|
|
931
934
|
this.termsAndConditionsCheckbox = page.getByLabel("I have read and accepted the general terms and conditions.");
|
|
932
935
|
this.immediateAccessToDigitalProductCheckbox = page.getByLabel("I want immediate access to the digital content and I acknowledge that thereby I waive my right to cancel.");
|
|
@@ -944,20 +947,20 @@ class CheckoutConfirm {
|
|
|
944
947
|
}
|
|
945
948
|
}
|
|
946
949
|
|
|
947
|
-
var __defProp$
|
|
948
|
-
var __defNormalProp$
|
|
949
|
-
var __publicField$
|
|
950
|
-
__defNormalProp$
|
|
950
|
+
var __defProp$h = Object.defineProperty;
|
|
951
|
+
var __defNormalProp$h = (obj, key, value) => key in obj ? __defProp$h(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
952
|
+
var __publicField$h = (obj, key, value) => {
|
|
953
|
+
__defNormalProp$h(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
951
954
|
return value;
|
|
952
955
|
};
|
|
953
956
|
class CheckoutFinish {
|
|
954
957
|
constructor(page) {
|
|
955
958
|
this.page = page;
|
|
956
|
-
__publicField$
|
|
957
|
-
__publicField$
|
|
958
|
-
__publicField$
|
|
959
|
-
__publicField$
|
|
960
|
-
__publicField$
|
|
959
|
+
__publicField$h(this, "headline");
|
|
960
|
+
__publicField$h(this, "orderNumberText");
|
|
961
|
+
__publicField$h(this, "grandTotalPrice");
|
|
962
|
+
__publicField$h(this, "cartLineItemImages");
|
|
963
|
+
__publicField$h(this, "orderNumberRegex", /Your order number: #(\d+)/);
|
|
961
964
|
this.headline = page.getByRole("heading", { name: "Thank you for your order" });
|
|
962
965
|
this.orderNumberText = page.getByText(this.orderNumberRegex);
|
|
963
966
|
this.grandTotalPrice = page.locator('dt:has-text("Grand total") + dd');
|
|
@@ -985,16 +988,16 @@ class CheckoutFinish {
|
|
|
985
988
|
}
|
|
986
989
|
}
|
|
987
990
|
|
|
988
|
-
var __defProp$
|
|
989
|
-
var __defNormalProp$
|
|
990
|
-
var __publicField$
|
|
991
|
-
__defNormalProp$
|
|
991
|
+
var __defProp$g = Object.defineProperty;
|
|
992
|
+
var __defNormalProp$g = (obj, key, value) => key in obj ? __defProp$g(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
993
|
+
var __publicField$g = (obj, key, value) => {
|
|
994
|
+
__defNormalProp$g(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
992
995
|
return value;
|
|
993
996
|
};
|
|
994
997
|
class CheckoutRegister {
|
|
995
998
|
constructor(page) {
|
|
996
999
|
this.page = page;
|
|
997
|
-
__publicField$
|
|
1000
|
+
__publicField$g(this, "cartLineItemImages");
|
|
998
1001
|
this.cartLineItemImages = page.locator(".line-item-img-link");
|
|
999
1002
|
}
|
|
1000
1003
|
async goTo() {
|
|
@@ -1002,22 +1005,22 @@ class CheckoutRegister {
|
|
|
1002
1005
|
}
|
|
1003
1006
|
}
|
|
1004
1007
|
|
|
1005
|
-
var __defProp$
|
|
1006
|
-
var __defNormalProp$
|
|
1007
|
-
var __publicField$
|
|
1008
|
-
__defNormalProp$
|
|
1008
|
+
var __defProp$f = Object.defineProperty;
|
|
1009
|
+
var __defNormalProp$f = (obj, key, value) => key in obj ? __defProp$f(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1010
|
+
var __publicField$f = (obj, key, value) => {
|
|
1011
|
+
__defNormalProp$f(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
1009
1012
|
return value;
|
|
1010
1013
|
};
|
|
1011
1014
|
class Account {
|
|
1012
1015
|
constructor(page) {
|
|
1013
1016
|
this.page = page;
|
|
1014
|
-
__publicField$
|
|
1015
|
-
__publicField$
|
|
1016
|
-
__publicField$
|
|
1017
|
-
__publicField$
|
|
1018
|
-
__publicField$
|
|
1019
|
-
__publicField$
|
|
1020
|
-
__publicField$
|
|
1017
|
+
__publicField$f(this, "headline");
|
|
1018
|
+
__publicField$f(this, "personalDataCardTitle");
|
|
1019
|
+
__publicField$f(this, "paymentMethodCardTitle");
|
|
1020
|
+
__publicField$f(this, "billingAddressCardTitle");
|
|
1021
|
+
__publicField$f(this, "shippingAddressCardTitle");
|
|
1022
|
+
__publicField$f(this, "newsletterCheckbox");
|
|
1023
|
+
__publicField$f(this, "newsletterRegistrationSuccessMessage");
|
|
1021
1024
|
this.headline = page.getByRole("heading", { name: "Overview" });
|
|
1022
1025
|
this.personalDataCardTitle = page.getByRole("heading", { name: "Personal data" });
|
|
1023
1026
|
this.paymentMethodCardTitle = page.getByRole("heading", { name: "Default payment method" });
|
|
@@ -1031,31 +1034,31 @@ class Account {
|
|
|
1031
1034
|
}
|
|
1032
1035
|
}
|
|
1033
1036
|
|
|
1034
|
-
var __defProp$
|
|
1035
|
-
var __defNormalProp$
|
|
1036
|
-
var __publicField$
|
|
1037
|
-
__defNormalProp$
|
|
1037
|
+
var __defProp$e = Object.defineProperty;
|
|
1038
|
+
var __defNormalProp$e = (obj, key, value) => key in obj ? __defProp$e(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1039
|
+
var __publicField$e = (obj, key, value) => {
|
|
1040
|
+
__defNormalProp$e(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
1038
1041
|
return value;
|
|
1039
1042
|
};
|
|
1040
1043
|
class AccountLogin {
|
|
1041
1044
|
constructor(page) {
|
|
1042
1045
|
this.page = page;
|
|
1043
|
-
__publicField$
|
|
1044
|
-
__publicField$
|
|
1045
|
-
__publicField$
|
|
1046
|
-
__publicField$
|
|
1047
|
-
__publicField$
|
|
1046
|
+
__publicField$e(this, "emailInput");
|
|
1047
|
+
__publicField$e(this, "passwordInput");
|
|
1048
|
+
__publicField$e(this, "loginButton");
|
|
1049
|
+
__publicField$e(this, "logoutLink");
|
|
1050
|
+
__publicField$e(this, "successAlert");
|
|
1048
1051
|
// Inputs for registration
|
|
1049
|
-
__publicField$
|
|
1050
|
-
__publicField$
|
|
1051
|
-
__publicField$
|
|
1052
|
-
__publicField$
|
|
1053
|
-
__publicField$
|
|
1054
|
-
__publicField$
|
|
1055
|
-
__publicField$
|
|
1056
|
-
__publicField$
|
|
1057
|
-
__publicField$
|
|
1058
|
-
__publicField$
|
|
1052
|
+
__publicField$e(this, "personalFormArea");
|
|
1053
|
+
__publicField$e(this, "billingAddressFormArea");
|
|
1054
|
+
__publicField$e(this, "firstNameInput");
|
|
1055
|
+
__publicField$e(this, "lastNameInput");
|
|
1056
|
+
__publicField$e(this, "registerEmailInput");
|
|
1057
|
+
__publicField$e(this, "registerPasswordInput");
|
|
1058
|
+
__publicField$e(this, "streetAddressInput");
|
|
1059
|
+
__publicField$e(this, "cityInput");
|
|
1060
|
+
__publicField$e(this, "countryInput");
|
|
1061
|
+
__publicField$e(this, "registerButton");
|
|
1059
1062
|
this.emailInput = page.getByLabel("Your email address");
|
|
1060
1063
|
this.passwordInput = page.getByLabel("Your password");
|
|
1061
1064
|
this.loginButton = page.getByRole("button", { name: "Log in" });
|
|
@@ -1078,29 +1081,29 @@ class AccountLogin {
|
|
|
1078
1081
|
}
|
|
1079
1082
|
}
|
|
1080
1083
|
|
|
1081
|
-
var __defProp$
|
|
1082
|
-
var __defNormalProp$
|
|
1083
|
-
var __publicField$
|
|
1084
|
-
__defNormalProp$
|
|
1084
|
+
var __defProp$d = Object.defineProperty;
|
|
1085
|
+
var __defNormalProp$d = (obj, key, value) => key in obj ? __defProp$d(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1086
|
+
var __publicField$d = (obj, key, value) => {
|
|
1087
|
+
__defNormalProp$d(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
1085
1088
|
return value;
|
|
1086
1089
|
};
|
|
1087
1090
|
class AccountProfile {
|
|
1088
1091
|
constructor(page) {
|
|
1089
1092
|
this.page = page;
|
|
1090
|
-
__publicField$
|
|
1091
|
-
__publicField$
|
|
1092
|
-
__publicField$
|
|
1093
|
-
__publicField$
|
|
1094
|
-
__publicField$
|
|
1095
|
-
__publicField$
|
|
1096
|
-
__publicField$
|
|
1097
|
-
__publicField$
|
|
1098
|
-
__publicField$
|
|
1099
|
-
__publicField$
|
|
1100
|
-
__publicField$
|
|
1101
|
-
__publicField$
|
|
1102
|
-
__publicField$
|
|
1103
|
-
__publicField$
|
|
1093
|
+
__publicField$d(this, "salutationSelect");
|
|
1094
|
+
__publicField$d(this, "firstNameInput");
|
|
1095
|
+
__publicField$d(this, "lastNameInput");
|
|
1096
|
+
__publicField$d(this, "saveProfileButton");
|
|
1097
|
+
__publicField$d(this, "changeEmailButton");
|
|
1098
|
+
__publicField$d(this, "emailAddressInput");
|
|
1099
|
+
__publicField$d(this, "emailAddressConfirmInput");
|
|
1100
|
+
__publicField$d(this, "emailConfirmPasswordInput");
|
|
1101
|
+
__publicField$d(this, "saveEmailAddressButton");
|
|
1102
|
+
__publicField$d(this, "changePasswordButton");
|
|
1103
|
+
__publicField$d(this, "newPasswordInput");
|
|
1104
|
+
__publicField$d(this, "newPasswordConfirmInput");
|
|
1105
|
+
__publicField$d(this, "currentPasswordInput");
|
|
1106
|
+
__publicField$d(this, "saveNewPasswordButton");
|
|
1104
1107
|
this.salutationSelect = page.getByLabel("Salutation");
|
|
1105
1108
|
this.firstNameInput = page.getByPlaceholder("Enter first name...");
|
|
1106
1109
|
this.lastNameInput = page.getByPlaceholder("Enter last name...");
|
|
@@ -1121,18 +1124,18 @@ class AccountProfile {
|
|
|
1121
1124
|
}
|
|
1122
1125
|
}
|
|
1123
1126
|
|
|
1124
|
-
var __defProp$
|
|
1125
|
-
var __defNormalProp$
|
|
1126
|
-
var __publicField$
|
|
1127
|
-
__defNormalProp$
|
|
1127
|
+
var __defProp$c = Object.defineProperty;
|
|
1128
|
+
var __defNormalProp$c = (obj, key, value) => key in obj ? __defProp$c(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1129
|
+
var __publicField$c = (obj, key, value) => {
|
|
1130
|
+
__defNormalProp$c(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
1128
1131
|
return value;
|
|
1129
1132
|
};
|
|
1130
1133
|
class AccountOrder {
|
|
1131
1134
|
constructor(page) {
|
|
1132
1135
|
this.page = page;
|
|
1133
|
-
__publicField$
|
|
1134
|
-
__publicField$
|
|
1135
|
-
__publicField$
|
|
1136
|
+
__publicField$c(this, "cartLineItemImages");
|
|
1137
|
+
__publicField$c(this, "orderExpandButton");
|
|
1138
|
+
__publicField$c(this, "digitalProductDownloadButton");
|
|
1136
1139
|
this.orderExpandButton = page.getByRole("button", { name: "Expand" }).first();
|
|
1137
1140
|
this.cartLineItemImages = page.locator(".line-item-img-link");
|
|
1138
1141
|
this.digitalProductDownloadButton = page.getByRole("link", { name: "Download" }).first();
|
|
@@ -1142,20 +1145,20 @@ class AccountOrder {
|
|
|
1142
1145
|
}
|
|
1143
1146
|
}
|
|
1144
1147
|
|
|
1145
|
-
var __defProp$
|
|
1146
|
-
var __defNormalProp$
|
|
1147
|
-
var __publicField$
|
|
1148
|
-
__defNormalProp$
|
|
1148
|
+
var __defProp$b = Object.defineProperty;
|
|
1149
|
+
var __defNormalProp$b = (obj, key, value) => key in obj ? __defProp$b(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1150
|
+
var __publicField$b = (obj, key, value) => {
|
|
1151
|
+
__defNormalProp$b(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
1149
1152
|
return value;
|
|
1150
1153
|
};
|
|
1151
1154
|
class AccountAddresses {
|
|
1152
1155
|
constructor(page) {
|
|
1153
1156
|
this.page = page;
|
|
1154
|
-
__publicField$
|
|
1155
|
-
__publicField$
|
|
1156
|
-
__publicField$
|
|
1157
|
-
__publicField$
|
|
1158
|
-
__publicField$
|
|
1157
|
+
__publicField$b(this, "addNewAddressButton");
|
|
1158
|
+
__publicField$b(this, "editBillingAddressButton");
|
|
1159
|
+
__publicField$b(this, "editShippingAddressButton");
|
|
1160
|
+
__publicField$b(this, "useDefaultBillingAddressButton");
|
|
1161
|
+
__publicField$b(this, "useDefaultShippingAddressButton");
|
|
1159
1162
|
this.addNewAddressButton = page.getByRole("link", { name: "Add new address" });
|
|
1160
1163
|
this.editBillingAddressButton = page.getByRole("link", { name: "Edit address" }).first();
|
|
1161
1164
|
this.editShippingAddressButton = page.getByRole("link", { name: "Edit address" }).nth(1);
|
|
@@ -1167,19 +1170,19 @@ class AccountAddresses {
|
|
|
1167
1170
|
}
|
|
1168
1171
|
}
|
|
1169
1172
|
|
|
1170
|
-
var __defProp$
|
|
1171
|
-
var __defNormalProp$
|
|
1172
|
-
var __publicField$
|
|
1173
|
-
__defNormalProp$
|
|
1173
|
+
var __defProp$a = Object.defineProperty;
|
|
1174
|
+
var __defNormalProp$a = (obj, key, value) => key in obj ? __defProp$a(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1175
|
+
var __publicField$a = (obj, key, value) => {
|
|
1176
|
+
__defNormalProp$a(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
1174
1177
|
return value;
|
|
1175
1178
|
};
|
|
1176
1179
|
class AccountPayment {
|
|
1177
1180
|
constructor(page) {
|
|
1178
1181
|
this.page = page;
|
|
1179
|
-
__publicField$
|
|
1180
|
-
__publicField$
|
|
1181
|
-
__publicField$
|
|
1182
|
-
__publicField$
|
|
1182
|
+
__publicField$a(this, "cashOnDeliveryOption");
|
|
1183
|
+
__publicField$a(this, "paidInAdvanceOption");
|
|
1184
|
+
__publicField$a(this, "invoiceOption");
|
|
1185
|
+
__publicField$a(this, "changeDefaultPaymentButton");
|
|
1183
1186
|
this.cashOnDeliveryOption = page.getByLabel("Cash on delivery");
|
|
1184
1187
|
this.paidInAdvanceOption = page.getByLabel("Paid in advance");
|
|
1185
1188
|
this.invoiceOption = page.getByLabel("Invoice");
|
|
@@ -1190,16 +1193,16 @@ class AccountPayment {
|
|
|
1190
1193
|
}
|
|
1191
1194
|
}
|
|
1192
1195
|
|
|
1193
|
-
var __defProp$
|
|
1194
|
-
var __defNormalProp$
|
|
1195
|
-
var __publicField$
|
|
1196
|
-
__defNormalProp$
|
|
1196
|
+
var __defProp$9 = Object.defineProperty;
|
|
1197
|
+
var __defNormalProp$9 = (obj, key, value) => key in obj ? __defProp$9(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1198
|
+
var __publicField$9 = (obj, key, value) => {
|
|
1199
|
+
__defNormalProp$9(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
1197
1200
|
return value;
|
|
1198
1201
|
};
|
|
1199
1202
|
class Search {
|
|
1200
1203
|
constructor(page) {
|
|
1201
1204
|
this.page = page;
|
|
1202
|
-
__publicField$
|
|
1205
|
+
__publicField$9(this, "productImages");
|
|
1203
1206
|
this.productImages = page.locator(".product-image-link");
|
|
1204
1207
|
}
|
|
1205
1208
|
async goTo() {
|
|
@@ -1208,16 +1211,16 @@ class Search {
|
|
|
1208
1211
|
}
|
|
1209
1212
|
}
|
|
1210
1213
|
|
|
1211
|
-
var __defProp$
|
|
1212
|
-
var __defNormalProp$
|
|
1213
|
-
var __publicField$
|
|
1214
|
-
__defNormalProp$
|
|
1214
|
+
var __defProp$8 = Object.defineProperty;
|
|
1215
|
+
var __defNormalProp$8 = (obj, key, value) => key in obj ? __defProp$8(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1216
|
+
var __publicField$8 = (obj, key, value) => {
|
|
1217
|
+
__defNormalProp$8(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
1215
1218
|
return value;
|
|
1216
1219
|
};
|
|
1217
1220
|
class SearchSuggest {
|
|
1218
1221
|
constructor(page) {
|
|
1219
1222
|
this.page = page;
|
|
1220
|
-
__publicField$
|
|
1223
|
+
__publicField$8(this, "searchSuggestLineItemImages");
|
|
1221
1224
|
this.searchSuggestLineItemImages = page.locator(".search-suggest-product-image-container");
|
|
1222
1225
|
}
|
|
1223
1226
|
async goTo() {
|
|
@@ -1291,10 +1294,10 @@ const test$5 = test$c.extend({
|
|
|
1291
1294
|
}
|
|
1292
1295
|
});
|
|
1293
1296
|
|
|
1294
|
-
var __defProp$
|
|
1295
|
-
var __defNormalProp$
|
|
1296
|
-
var __publicField$
|
|
1297
|
-
__defNormalProp$
|
|
1297
|
+
var __defProp$7 = Object.defineProperty;
|
|
1298
|
+
var __defNormalProp$7 = (obj, key, value) => key in obj ? __defProp$7(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1299
|
+
var __publicField$7 = (obj, key, value) => {
|
|
1300
|
+
__defNormalProp$7(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
1298
1301
|
return value;
|
|
1299
1302
|
};
|
|
1300
1303
|
class ProductDetail {
|
|
@@ -1303,40 +1306,40 @@ class ProductDetail {
|
|
|
1303
1306
|
/**
|
|
1304
1307
|
* Save interactions
|
|
1305
1308
|
*/
|
|
1306
|
-
__publicField$
|
|
1307
|
-
__publicField$
|
|
1308
|
-
__publicField$
|
|
1309
|
+
__publicField$7(this, "savePhysicalProductButton");
|
|
1310
|
+
__publicField$7(this, "saveButtonLoadingSpinner");
|
|
1311
|
+
__publicField$7(this, "saveButtonCheckMark");
|
|
1309
1312
|
/**
|
|
1310
1313
|
* Media Upload interactions
|
|
1311
1314
|
*/
|
|
1312
|
-
__publicField$
|
|
1313
|
-
__publicField$
|
|
1314
|
-
__publicField$
|
|
1315
|
+
__publicField$7(this, "uploadMediaButton");
|
|
1316
|
+
__publicField$7(this, "coverImage");
|
|
1317
|
+
__publicField$7(this, "productImage");
|
|
1315
1318
|
/**
|
|
1316
1319
|
* Tabs
|
|
1317
1320
|
*/
|
|
1318
|
-
__publicField$
|
|
1321
|
+
__publicField$7(this, "variantsTabLink");
|
|
1319
1322
|
/**
|
|
1320
1323
|
* Variants Generation
|
|
1321
1324
|
*/
|
|
1322
|
-
__publicField$
|
|
1323
|
-
__publicField$
|
|
1324
|
-
__publicField$
|
|
1325
|
-
__publicField$
|
|
1326
|
-
__publicField$
|
|
1325
|
+
__publicField$7(this, "generateVariantsButton");
|
|
1326
|
+
__publicField$7(this, "variantsModal");
|
|
1327
|
+
__publicField$7(this, "variantsModalHeadline");
|
|
1328
|
+
__publicField$7(this, "variantsNextButton");
|
|
1329
|
+
__publicField$7(this, "variantsSaveButton");
|
|
1327
1330
|
/**
|
|
1328
1331
|
* Property Selection
|
|
1329
1332
|
*/
|
|
1330
|
-
__publicField$
|
|
1331
|
-
__publicField$
|
|
1332
|
-
__publicField$
|
|
1333
|
-
__publicField$
|
|
1334
|
-
__publicField$
|
|
1335
|
-
__publicField$
|
|
1336
|
-
__publicField$
|
|
1337
|
-
__publicField$
|
|
1338
|
-
__publicField$
|
|
1339
|
-
__publicField$
|
|
1333
|
+
__publicField$7(this, "propertyGroupColor");
|
|
1334
|
+
__publicField$7(this, "propertyGroupSize");
|
|
1335
|
+
__publicField$7(this, "propertyOptionGrid");
|
|
1336
|
+
__publicField$7(this, "propertyOptionColorBlue");
|
|
1337
|
+
__publicField$7(this, "propertyOptionColorRed");
|
|
1338
|
+
__publicField$7(this, "propertyOptionColorGreen");
|
|
1339
|
+
__publicField$7(this, "propertyOptionSizeSmall");
|
|
1340
|
+
__publicField$7(this, "propertyOptionSizeMedium");
|
|
1341
|
+
__publicField$7(this, "propertyOptionSizeLarge");
|
|
1342
|
+
__publicField$7(this, "productData");
|
|
1340
1343
|
this.productData = productData;
|
|
1341
1344
|
this.savePhysicalProductButton = page.getByRole("button", { name: "Save" });
|
|
1342
1345
|
this.saveButtonCheckMark = page.locator(".icon--regular-checkmark-xs");
|
|
@@ -1368,18 +1371,18 @@ class ProductDetail {
|
|
|
1368
1371
|
}
|
|
1369
1372
|
}
|
|
1370
1373
|
|
|
1371
|
-
var __defProp$
|
|
1372
|
-
var __defNormalProp$
|
|
1373
|
-
var __publicField$
|
|
1374
|
-
__defNormalProp$
|
|
1374
|
+
var __defProp$6 = Object.defineProperty;
|
|
1375
|
+
var __defNormalProp$6 = (obj, key, value) => key in obj ? __defProp$6(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1376
|
+
var __publicField$6 = (obj, key, value) => {
|
|
1377
|
+
__defNormalProp$6(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
1375
1378
|
return value;
|
|
1376
1379
|
};
|
|
1377
1380
|
class OrderDetail {
|
|
1378
1381
|
constructor(page, orderData) {
|
|
1379
1382
|
this.page = page;
|
|
1380
|
-
__publicField$
|
|
1381
|
-
__publicField$
|
|
1382
|
-
__publicField$
|
|
1383
|
+
__publicField$6(this, "dataGridContextButton");
|
|
1384
|
+
__publicField$6(this, "orderTag");
|
|
1385
|
+
__publicField$6(this, "orderData");
|
|
1383
1386
|
this.orderData = orderData;
|
|
1384
1387
|
this.dataGridContextButton = page.locator(".sw-data-grid__actions-menu").and(page.getByRole("button"));
|
|
1385
1388
|
this.orderTag = page.locator(".sw-select-selection-list__item");
|
|
@@ -1389,20 +1392,20 @@ class OrderDetail {
|
|
|
1389
1392
|
}
|
|
1390
1393
|
}
|
|
1391
1394
|
|
|
1392
|
-
var __defProp$
|
|
1393
|
-
var __defNormalProp$
|
|
1394
|
-
var __publicField$
|
|
1395
|
-
__defNormalProp$
|
|
1395
|
+
var __defProp$5 = Object.defineProperty;
|
|
1396
|
+
var __defNormalProp$5 = (obj, key, value) => key in obj ? __defProp$5(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1397
|
+
var __publicField$5 = (obj, key, value) => {
|
|
1398
|
+
__defNormalProp$5(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
1396
1399
|
return value;
|
|
1397
1400
|
};
|
|
1398
1401
|
class CustomerDetail {
|
|
1399
1402
|
constructor(page, customer) {
|
|
1400
1403
|
this.page = page;
|
|
1401
|
-
__publicField$
|
|
1402
|
-
__publicField$
|
|
1403
|
-
__publicField$
|
|
1404
|
-
__publicField$
|
|
1405
|
-
__publicField$
|
|
1404
|
+
__publicField$5(this, "customerId");
|
|
1405
|
+
__publicField$5(this, "customer");
|
|
1406
|
+
__publicField$5(this, "editButton");
|
|
1407
|
+
__publicField$5(this, "generalTab");
|
|
1408
|
+
__publicField$5(this, "accountCard");
|
|
1406
1409
|
this.customerId = customer.id;
|
|
1407
1410
|
this.customer = customer;
|
|
1408
1411
|
this.editButton = page.getByRole("button", { name: "Edit" });
|
|
@@ -1414,53 +1417,53 @@ class CustomerDetail {
|
|
|
1414
1417
|
}
|
|
1415
1418
|
}
|
|
1416
1419
|
|
|
1417
|
-
var __defProp$
|
|
1418
|
-
var __defNormalProp$
|
|
1419
|
-
var __publicField$
|
|
1420
|
-
__defNormalProp$
|
|
1420
|
+
var __defProp$4 = Object.defineProperty;
|
|
1421
|
+
var __defNormalProp$4 = (obj, key, value) => key in obj ? __defProp$4(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1422
|
+
var __publicField$4 = (obj, key, value) => {
|
|
1423
|
+
__defNormalProp$4(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
1421
1424
|
return value;
|
|
1422
1425
|
};
|
|
1423
1426
|
class FirstRunWizard {
|
|
1424
1427
|
constructor(page) {
|
|
1425
1428
|
this.page = page;
|
|
1426
|
-
__publicField$
|
|
1427
|
-
__publicField$
|
|
1428
|
-
__publicField$
|
|
1429
|
-
__publicField$
|
|
1430
|
-
__publicField$
|
|
1431
|
-
__publicField$
|
|
1432
|
-
__publicField$
|
|
1433
|
-
__publicField$
|
|
1434
|
-
__publicField$
|
|
1435
|
-
__publicField$
|
|
1436
|
-
__publicField$
|
|
1437
|
-
__publicField$
|
|
1438
|
-
__publicField$
|
|
1439
|
-
__publicField$
|
|
1440
|
-
__publicField$
|
|
1441
|
-
__publicField$
|
|
1442
|
-
__publicField$
|
|
1443
|
-
__publicField$
|
|
1444
|
-
__publicField$
|
|
1445
|
-
__publicField$
|
|
1446
|
-
__publicField$
|
|
1447
|
-
__publicField$
|
|
1448
|
-
__publicField$
|
|
1449
|
-
__publicField$
|
|
1450
|
-
__publicField$
|
|
1451
|
-
__publicField$
|
|
1452
|
-
__publicField$
|
|
1453
|
-
__publicField$
|
|
1454
|
-
__publicField$
|
|
1455
|
-
__publicField$
|
|
1456
|
-
__publicField$
|
|
1457
|
-
__publicField$
|
|
1458
|
-
__publicField$
|
|
1459
|
-
__publicField$
|
|
1460
|
-
__publicField$
|
|
1461
|
-
__publicField$
|
|
1462
|
-
__publicField$
|
|
1463
|
-
__publicField$
|
|
1429
|
+
__publicField$4(this, "nextButton");
|
|
1430
|
+
__publicField$4(this, "configureLaterButton");
|
|
1431
|
+
__publicField$4(this, "skipButton");
|
|
1432
|
+
__publicField$4(this, "finishButton");
|
|
1433
|
+
__publicField$4(this, "backButton");
|
|
1434
|
+
__publicField$4(this, "smtpServerButton");
|
|
1435
|
+
__publicField$4(this, "dataImportHeader");
|
|
1436
|
+
__publicField$4(this, "installLanguagePackButton");
|
|
1437
|
+
__publicField$4(this, "installDemoDataButton");
|
|
1438
|
+
__publicField$4(this, "installMigrationAssistantButton");
|
|
1439
|
+
__publicField$4(this, "defaultValuesHeader");
|
|
1440
|
+
__publicField$4(this, "mailerConfigurationHeader");
|
|
1441
|
+
__publicField$4(this, "payPalSetupHeader");
|
|
1442
|
+
__publicField$4(this, "extensionsHeader");
|
|
1443
|
+
__publicField$4(this, "shopwareAccountHeader");
|
|
1444
|
+
__publicField$4(this, "shopwareStoreHeader");
|
|
1445
|
+
__publicField$4(this, "doneHeader");
|
|
1446
|
+
__publicField$4(this, "frwSuccessText");
|
|
1447
|
+
__publicField$4(this, "welcomeText");
|
|
1448
|
+
__publicField$4(this, "pluginCardInfo");
|
|
1449
|
+
__publicField$4(this, "dataImportCard");
|
|
1450
|
+
__publicField$4(this, "salesChannelSelectionList");
|
|
1451
|
+
__publicField$4(this, "salesChannelSelectionMultiSelect");
|
|
1452
|
+
__publicField$4(this, "smtpServerTitle");
|
|
1453
|
+
__publicField$4(this, "smtpServerFields");
|
|
1454
|
+
__publicField$4(this, "payPalPaymethods");
|
|
1455
|
+
__publicField$4(this, "payPalInfoCard");
|
|
1456
|
+
__publicField$4(this, "emailAddressInputField");
|
|
1457
|
+
__publicField$4(this, "passwordInputField");
|
|
1458
|
+
__publicField$4(this, "forgotPasswordLink");
|
|
1459
|
+
__publicField$4(this, "extensionStoreHeading");
|
|
1460
|
+
__publicField$4(this, "documentationLink");
|
|
1461
|
+
__publicField$4(this, "forumLink");
|
|
1462
|
+
__publicField$4(this, "roadmapLink");
|
|
1463
|
+
__publicField$4(this, "germanRegionSelector");
|
|
1464
|
+
__publicField$4(this, "toolsSelector");
|
|
1465
|
+
__publicField$4(this, "recommendationHeader");
|
|
1466
|
+
__publicField$4(this, "toolsRecommendedPlugin");
|
|
1464
1467
|
this.nextButton = page.getByText("Next", { exact: true });
|
|
1465
1468
|
this.configureLaterButton = page.getByText("Configure later", { exact: true });
|
|
1466
1469
|
this.skipButton = page.getByText("Skip", { exact: true });
|
|
@@ -1505,17 +1508,17 @@ class FirstRunWizard {
|
|
|
1505
1508
|
}
|
|
1506
1509
|
}
|
|
1507
1510
|
|
|
1508
|
-
var __defProp$
|
|
1509
|
-
var __defNormalProp$
|
|
1510
|
-
var __publicField$
|
|
1511
|
-
__defNormalProp$
|
|
1511
|
+
var __defProp$3 = Object.defineProperty;
|
|
1512
|
+
var __defNormalProp$3 = (obj, key, value) => key in obj ? __defProp$3(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1513
|
+
var __publicField$3 = (obj, key, value) => {
|
|
1514
|
+
__defNormalProp$3(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
1512
1515
|
return value;
|
|
1513
1516
|
};
|
|
1514
1517
|
class FlowBuilderCreate {
|
|
1515
1518
|
constructor(page) {
|
|
1516
1519
|
this.page = page;
|
|
1517
|
-
__publicField$
|
|
1518
|
-
__publicField$
|
|
1520
|
+
__publicField$3(this, "saveButton");
|
|
1521
|
+
__publicField$3(this, "header");
|
|
1519
1522
|
this.saveButton = page.locator(".sw-flow-detail__save");
|
|
1520
1523
|
this.header = page.locator("h2");
|
|
1521
1524
|
}
|
|
@@ -1524,23 +1527,23 @@ class FlowBuilderCreate {
|
|
|
1524
1527
|
}
|
|
1525
1528
|
}
|
|
1526
1529
|
|
|
1527
|
-
var __defProp = Object.defineProperty;
|
|
1528
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1529
|
-
var __publicField = (obj, key, value) => {
|
|
1530
|
-
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
1530
|
+
var __defProp$2 = Object.defineProperty;
|
|
1531
|
+
var __defNormalProp$2 = (obj, key, value) => key in obj ? __defProp$2(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1532
|
+
var __publicField$2 = (obj, key, value) => {
|
|
1533
|
+
__defNormalProp$2(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
1531
1534
|
return value;
|
|
1532
1535
|
};
|
|
1533
1536
|
class FlowBuilderListing {
|
|
1534
1537
|
constructor(page) {
|
|
1535
1538
|
this.page = page;
|
|
1536
|
-
__publicField(this, "firstFlowName");
|
|
1537
|
-
__publicField(this, "firstFlowContextButton");
|
|
1538
|
-
__publicField(this, "flowContextMenu");
|
|
1539
|
-
__publicField(this, "contextMenuDownload");
|
|
1540
|
-
__publicField(this, "flowDownloadModal");
|
|
1541
|
-
__publicField(this, "downloadFlowButton");
|
|
1542
|
-
__publicField(this, "successAlert");
|
|
1543
|
-
__publicField(this, "successAlertMessage");
|
|
1539
|
+
__publicField$2(this, "firstFlowName");
|
|
1540
|
+
__publicField$2(this, "firstFlowContextButton");
|
|
1541
|
+
__publicField$2(this, "flowContextMenu");
|
|
1542
|
+
__publicField$2(this, "contextMenuDownload");
|
|
1543
|
+
__publicField$2(this, "flowDownloadModal");
|
|
1544
|
+
__publicField$2(this, "downloadFlowButton");
|
|
1545
|
+
__publicField$2(this, "successAlert");
|
|
1546
|
+
__publicField$2(this, "successAlertMessage");
|
|
1544
1547
|
this.firstFlowName = page.locator(".sw-data-grid__cell--name a").first();
|
|
1545
1548
|
this.firstFlowContextButton = page.locator(".sw-data-grid__actions-menu").first();
|
|
1546
1549
|
this.flowContextMenu = page.locator(".sw-context-menu__content");
|
|
@@ -1555,13 +1558,67 @@ class FlowBuilderListing {
|
|
|
1555
1558
|
}
|
|
1556
1559
|
}
|
|
1557
1560
|
|
|
1561
|
+
var __defProp$1 = Object.defineProperty;
|
|
1562
|
+
var __defNormalProp$1 = (obj, key, value) => key in obj ? __defProp$1(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1563
|
+
var __publicField$1 = (obj, key, value) => {
|
|
1564
|
+
__defNormalProp$1(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
1565
|
+
return value;
|
|
1566
|
+
};
|
|
1567
|
+
class DataSharing {
|
|
1568
|
+
constructor(page) {
|
|
1569
|
+
this.page = page;
|
|
1570
|
+
__publicField$1(this, "dataSharingSuccessMessageLabel");
|
|
1571
|
+
__publicField$1(this, "dataSharingAgreeButton");
|
|
1572
|
+
__publicField$1(this, "dataSharingDisableButton");
|
|
1573
|
+
__publicField$1(this, "dataSharingTermsAgreementLabel");
|
|
1574
|
+
this.dataSharingAgreeButton = page.getByRole("button", { name: "Agree" });
|
|
1575
|
+
this.dataSharingDisableButton = page.getByRole("button", { name: "Disable data sharing" });
|
|
1576
|
+
this.dataSharingSuccessMessageLabel = page.getByText("You are sharing data with us", { exact: true });
|
|
1577
|
+
this.dataSharingTermsAgreementLabel = page.getByText('By clicking "Agree", you confirm that you are authorized to enter into this agreement on behalf of your company.');
|
|
1578
|
+
}
|
|
1579
|
+
async goTo() {
|
|
1580
|
+
await this.page.goto("#/sw/settings/usage/data/index/general");
|
|
1581
|
+
}
|
|
1582
|
+
}
|
|
1583
|
+
|
|
1584
|
+
var __defProp = Object.defineProperty;
|
|
1585
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1586
|
+
var __publicField = (obj, key, value) => {
|
|
1587
|
+
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
1588
|
+
return value;
|
|
1589
|
+
};
|
|
1590
|
+
class Dashboard {
|
|
1591
|
+
constructor(page) {
|
|
1592
|
+
this.page = page;
|
|
1593
|
+
__publicField(this, "dataSharingConsentBanner");
|
|
1594
|
+
__publicField(this, "dataSharingAgreeButton");
|
|
1595
|
+
__publicField(this, "dataSharingNotAtTheMomentButton");
|
|
1596
|
+
__publicField(this, "dataSharingTermsAgreementLabel");
|
|
1597
|
+
__publicField(this, "dataSharingSettingsLink");
|
|
1598
|
+
__publicField(this, "dataSharingAcceptMessageText");
|
|
1599
|
+
__publicField(this, "dataSharingNotAtTheMomentMessageText");
|
|
1600
|
+
this.dataSharingConsentBanner = page.locator(".sw-usage-data-consent-banner");
|
|
1601
|
+
this.dataSharingAgreeButton = page.getByRole("button", { name: "Agree" });
|
|
1602
|
+
this.dataSharingNotAtTheMomentButton = page.getByRole("button", { name: "Not at the moment" });
|
|
1603
|
+
this.dataSharingSettingsLink = page.locator(".sw-usage-data-consent-banner-reject-accept-message").getByRole("link");
|
|
1604
|
+
this.dataSharingAcceptMessageText = page.getByText("Thank you for your participation!");
|
|
1605
|
+
this.dataSharingNotAtTheMomentMessageText = page.getByText("You can at any time enter into the agreement and thus contribute to and profit from the constant evolution of our services");
|
|
1606
|
+
this.dataSharingTermsAgreementLabel = page.getByText('By clicking "Agree", you confirm that you are authorized to enter into this agreement on behalf of your company.');
|
|
1607
|
+
}
|
|
1608
|
+
async goTo() {
|
|
1609
|
+
await this.page.goto("#/sw/dashboard/index");
|
|
1610
|
+
}
|
|
1611
|
+
}
|
|
1612
|
+
|
|
1558
1613
|
const AdminPageObjects = {
|
|
1559
1614
|
ProductDetail,
|
|
1560
1615
|
OrderDetail,
|
|
1561
1616
|
CustomerDetail,
|
|
1562
1617
|
FirstRunWizard,
|
|
1563
1618
|
FlowBuilderCreate,
|
|
1564
|
-
FlowBuilderListing
|
|
1619
|
+
FlowBuilderListing,
|
|
1620
|
+
Dashboard,
|
|
1621
|
+
DataSharing
|
|
1565
1622
|
};
|
|
1566
1623
|
const test$4 = test$c.extend({
|
|
1567
1624
|
AdminProductDetail: async ({ AdminPage, ProductData }, use) => {
|
|
@@ -1581,6 +1638,12 @@ const test$4 = test$c.extend({
|
|
|
1581
1638
|
},
|
|
1582
1639
|
AdminFlowBuilderListing: async ({ AdminPage }, use) => {
|
|
1583
1640
|
await use(new FlowBuilderListing(AdminPage));
|
|
1641
|
+
},
|
|
1642
|
+
AdminDataSharing: async ({ AdminPage }, use) => {
|
|
1643
|
+
await use(new DataSharing(AdminPage));
|
|
1644
|
+
},
|
|
1645
|
+
AdminDashboard: async ({ AdminPage }, use) => {
|
|
1646
|
+
await use(new Dashboard(AdminPage));
|
|
1584
1647
|
}
|
|
1585
1648
|
});
|
|
1586
1649
|
|
|
@@ -2456,4 +2519,4 @@ const test = mergeTests(
|
|
|
2456
2519
|
test$1
|
|
2457
2520
|
);
|
|
2458
2521
|
|
|
2459
|
-
export { AdminPageObjects, StorefrontPageObjects, createRandomImage, extractIdFromUrl, getCountryId, getCurrency, getDefaultShippingMethodId, getFlowId, getLanguageData, getMediaId, getOrderTransactionId, getPaymentMethodId, getSalutationId, getSnippetSetId, getStateMachineId, getStateMachineStateId, getTaxId, getThemeId, isSaaSInstance, test };
|
|
2522
|
+
export { AdminPageObjects, StorefrontPageObjects, createRandomImage, extractIdFromUrl, getCountryId, getCurrency, getDefaultShippingMethodId, getFlowId, getLanguageData, getMediaId, getOrderTransactionId, getPaymentMethodId, getSalutationId, getSnippetSetId, getStateMachineId, getStateMachineStateId, getTaxId, getThemeId, isSaaSInstance, setOrderStatus, test };
|