@shopware-ag/acceptance-test-suite 2.7.0 → 2.8.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 +22 -1
- package/dist/index.d.ts +22 -1
- package/dist/index.mjs +495 -375
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { test as test$
|
|
1
|
+
import { test as test$e, expect, request, mergeTests } from '@playwright/test';
|
|
2
2
|
export * from '@playwright/test';
|
|
3
3
|
import { Image } from 'image-js';
|
|
4
4
|
import crypto from 'crypto';
|
|
@@ -225,7 +225,7 @@ const getPromotionWithDiscount = async (promotionId, adminApiContext) => {
|
|
|
225
225
|
return promotion[0];
|
|
226
226
|
};
|
|
227
227
|
|
|
228
|
-
const test$
|
|
228
|
+
const test$c = test$e.extend({
|
|
229
229
|
SalesChannelBaseConfig: [
|
|
230
230
|
async ({ AdminApiContext }, use) => {
|
|
231
231
|
const requests = {
|
|
@@ -370,16 +370,16 @@ const test$b = test$d.extend({
|
|
|
370
370
|
]
|
|
371
371
|
});
|
|
372
372
|
|
|
373
|
-
var __defProp$
|
|
374
|
-
var __defNormalProp$
|
|
375
|
-
var __publicField$
|
|
376
|
-
__defNormalProp$
|
|
373
|
+
var __defProp$u = Object.defineProperty;
|
|
374
|
+
var __defNormalProp$u = (obj, key, value) => key in obj ? __defProp$u(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
375
|
+
var __publicField$u = (obj, key, value) => {
|
|
376
|
+
__defNormalProp$u(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
377
377
|
return value;
|
|
378
378
|
};
|
|
379
379
|
const _AdminApiContext = class _AdminApiContext {
|
|
380
380
|
constructor(context, options) {
|
|
381
|
-
__publicField$
|
|
382
|
-
__publicField$
|
|
381
|
+
__publicField$u(this, "context");
|
|
382
|
+
__publicField$u(this, "options");
|
|
383
383
|
this.context = context;
|
|
384
384
|
this.options = options;
|
|
385
385
|
}
|
|
@@ -471,7 +471,7 @@ const _AdminApiContext = class _AdminApiContext {
|
|
|
471
471
|
return this.context.head(url, options);
|
|
472
472
|
}
|
|
473
473
|
};
|
|
474
|
-
__publicField$
|
|
474
|
+
__publicField$u(_AdminApiContext, "defaultOptions", {
|
|
475
475
|
app_url: process.env["APP_URL"],
|
|
476
476
|
client_id: process.env["SHOPWARE_ACCESS_KEY_ID"],
|
|
477
477
|
client_secret: process.env["SHOPWARE_SECRET_ACCESS_KEY"],
|
|
@@ -481,16 +481,16 @@ __publicField$t(_AdminApiContext, "defaultOptions", {
|
|
|
481
481
|
});
|
|
482
482
|
let AdminApiContext = _AdminApiContext;
|
|
483
483
|
|
|
484
|
-
var __defProp$
|
|
485
|
-
var __defNormalProp$
|
|
486
|
-
var __publicField$
|
|
487
|
-
__defNormalProp$
|
|
484
|
+
var __defProp$t = Object.defineProperty;
|
|
485
|
+
var __defNormalProp$t = (obj, key, value) => key in obj ? __defProp$t(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
486
|
+
var __publicField$t = (obj, key, value) => {
|
|
487
|
+
__defNormalProp$t(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
488
488
|
return value;
|
|
489
489
|
};
|
|
490
490
|
const _StoreApiContext = class _StoreApiContext {
|
|
491
491
|
constructor(context, options) {
|
|
492
|
-
__publicField$
|
|
493
|
-
__publicField$
|
|
492
|
+
__publicField$t(this, "context");
|
|
493
|
+
__publicField$t(this, "options");
|
|
494
494
|
this.context = context;
|
|
495
495
|
this.options = options;
|
|
496
496
|
}
|
|
@@ -549,21 +549,21 @@ const _StoreApiContext = class _StoreApiContext {
|
|
|
549
549
|
return this.context.head(url, options);
|
|
550
550
|
}
|
|
551
551
|
};
|
|
552
|
-
__publicField$
|
|
552
|
+
__publicField$t(_StoreApiContext, "defaultOptions", {
|
|
553
553
|
app_url: process.env["APP_URL"],
|
|
554
554
|
ignoreHTTPSErrors: true
|
|
555
555
|
});
|
|
556
556
|
let StoreApiContext = _StoreApiContext;
|
|
557
557
|
|
|
558
|
-
var __defProp$
|
|
559
|
-
var __defNormalProp$
|
|
560
|
-
var __publicField$
|
|
561
|
-
__defNormalProp$
|
|
558
|
+
var __defProp$s = Object.defineProperty;
|
|
559
|
+
var __defNormalProp$s = (obj, key, value) => key in obj ? __defProp$s(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
560
|
+
var __publicField$s = (obj, key, value) => {
|
|
561
|
+
__defNormalProp$s(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
562
562
|
return value;
|
|
563
563
|
};
|
|
564
564
|
class MailpitApiContext {
|
|
565
565
|
constructor(context) {
|
|
566
|
-
__publicField$
|
|
566
|
+
__publicField$s(this, "context");
|
|
567
567
|
this.context = context;
|
|
568
568
|
}
|
|
569
569
|
/**
|
|
@@ -665,7 +665,7 @@ class MailpitApiContext {
|
|
|
665
665
|
}
|
|
666
666
|
}
|
|
667
667
|
|
|
668
|
-
const test$
|
|
668
|
+
const test$b = test$e.extend({
|
|
669
669
|
AdminApiContext: [
|
|
670
670
|
async ({}, use) => {
|
|
671
671
|
const adminApiContext = await AdminApiContext.create();
|
|
@@ -748,7 +748,7 @@ const isThemeCompiled = async (context, storefrontUrl) => {
|
|
|
748
748
|
return false;
|
|
749
749
|
};
|
|
750
750
|
|
|
751
|
-
const test$
|
|
751
|
+
const test$a = test$e.extend({
|
|
752
752
|
AdminPage: async ({ IdProvider, AdminApiContext, SalesChannelBaseConfig, browser }, use) => {
|
|
753
753
|
const context = await browser.newContext({
|
|
754
754
|
baseURL: SalesChannelBaseConfig.adminUrl,
|
|
@@ -824,7 +824,7 @@ const test$9 = test$d.extend({
|
|
|
824
824
|
const page = await context.newPage();
|
|
825
825
|
const isSaasInstance = await isSaaSInstance(AdminApiContext);
|
|
826
826
|
if (!await isThemeCompiled(AdminApiContext, DefaultSalesChannel.url)) {
|
|
827
|
-
test$
|
|
827
|
+
test$e.slow();
|
|
828
828
|
await AdminApiContext.post(
|
|
829
829
|
`./_action/theme/${SalesChannelBaseConfig.defaultThemeId}/assign/${salesChannel.id}`
|
|
830
830
|
);
|
|
@@ -841,27 +841,27 @@ const test$9 = test$d.extend({
|
|
|
841
841
|
}
|
|
842
842
|
});
|
|
843
843
|
|
|
844
|
-
var __defProp$
|
|
845
|
-
var __defNormalProp$
|
|
846
|
-
var __publicField$
|
|
847
|
-
__defNormalProp$
|
|
844
|
+
var __defProp$r = Object.defineProperty;
|
|
845
|
+
var __defNormalProp$r = (obj, key, value) => key in obj ? __defProp$r(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
846
|
+
var __publicField$r = (obj, key, value) => {
|
|
847
|
+
__defNormalProp$r(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
848
848
|
return value;
|
|
849
849
|
};
|
|
850
850
|
class Actor {
|
|
851
851
|
constructor(name, page) {
|
|
852
|
-
__publicField$
|
|
853
|
-
__publicField$
|
|
854
|
-
__publicField$
|
|
852
|
+
__publicField$r(this, "page");
|
|
853
|
+
__publicField$r(this, "name");
|
|
854
|
+
__publicField$r(this, "expects", expect);
|
|
855
855
|
this.name = name;
|
|
856
856
|
this.page = page;
|
|
857
857
|
}
|
|
858
858
|
async attemptsTo(task) {
|
|
859
859
|
const stepTitle = `${this.name} attempts to ${this.camelCaseToLowerCase(task.name)}`;
|
|
860
|
-
await test$
|
|
860
|
+
await test$e.step(stepTitle, async () => await task());
|
|
861
861
|
}
|
|
862
862
|
async goesTo(url) {
|
|
863
863
|
const stepTitle = `${this.name} navigates to "${url}"`;
|
|
864
|
-
await test$
|
|
864
|
+
await test$e.step(stepTitle, async () => {
|
|
865
865
|
await this.page.goto(url);
|
|
866
866
|
await this.page.addStyleTag({
|
|
867
867
|
content: `
|
|
@@ -880,7 +880,7 @@ class Actor {
|
|
|
880
880
|
}
|
|
881
881
|
}
|
|
882
882
|
|
|
883
|
-
const test$
|
|
883
|
+
const test$9 = test$e.extend({
|
|
884
884
|
ShopCustomer: async ({ StorefrontPage }, use) => {
|
|
885
885
|
const shopCustomer = new Actor("Shop customer", StorefrontPage);
|
|
886
886
|
await use(shopCustomer);
|
|
@@ -900,31 +900,31 @@ function createRandomImage(width = 800, height = 600) {
|
|
|
900
900
|
return new Image(width, height, buffer);
|
|
901
901
|
}
|
|
902
902
|
|
|
903
|
-
var __defProp$
|
|
904
|
-
var __defNormalProp$
|
|
905
|
-
var __publicField$
|
|
906
|
-
__defNormalProp$
|
|
903
|
+
var __defProp$q = Object.defineProperty;
|
|
904
|
+
var __defNormalProp$q = (obj, key, value) => key in obj ? __defProp$q(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
905
|
+
var __publicField$q = (obj, key, value) => {
|
|
906
|
+
__defNormalProp$q(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
907
907
|
return value;
|
|
908
908
|
};
|
|
909
909
|
class TestDataService {
|
|
910
910
|
constructor(AdminApiClient, IdProvider, options) {
|
|
911
|
-
__publicField$
|
|
912
|
-
__publicField$
|
|
913
|
-
__publicField$
|
|
914
|
-
__publicField$
|
|
915
|
-
__publicField$
|
|
916
|
-
__publicField$
|
|
917
|
-
__publicField$
|
|
918
|
-
__publicField$
|
|
919
|
-
__publicField$
|
|
920
|
-
__publicField$
|
|
921
|
-
__publicField$
|
|
911
|
+
__publicField$q(this, "AdminApiClient");
|
|
912
|
+
__publicField$q(this, "IdProvider");
|
|
913
|
+
__publicField$q(this, "namePrefix", "Test-");
|
|
914
|
+
__publicField$q(this, "nameSuffix", "");
|
|
915
|
+
__publicField$q(this, "defaultSalesChannel");
|
|
916
|
+
__publicField$q(this, "defaultTaxId");
|
|
917
|
+
__publicField$q(this, "defaultCurrencyId");
|
|
918
|
+
__publicField$q(this, "defaultCategoryId");
|
|
919
|
+
__publicField$q(this, "defaultLanguageId");
|
|
920
|
+
__publicField$q(this, "defaultCountryId");
|
|
921
|
+
__publicField$q(this, "defaultCustomerGroupId");
|
|
922
922
|
/**
|
|
923
923
|
* Configures if an automated cleanup of the data should be executed.
|
|
924
924
|
*
|
|
925
925
|
* @private
|
|
926
926
|
*/
|
|
927
|
-
__publicField$
|
|
927
|
+
__publicField$q(this, "shouldCleanUp", true);
|
|
928
928
|
/**
|
|
929
929
|
* Configuration of higher priority entities for the cleanup operation.
|
|
930
930
|
* These entities will be deleted before others.
|
|
@@ -932,13 +932,13 @@ class TestDataService {
|
|
|
932
932
|
*
|
|
933
933
|
* @private
|
|
934
934
|
*/
|
|
935
|
-
__publicField$
|
|
935
|
+
__publicField$q(this, "highPriorityEntities", ["order", "product"]);
|
|
936
936
|
/**
|
|
937
937
|
* A registry of all created records.
|
|
938
938
|
*
|
|
939
939
|
* @private
|
|
940
940
|
*/
|
|
941
|
-
__publicField$
|
|
941
|
+
__publicField$q(this, "createdRecords", []);
|
|
942
942
|
this.AdminApiClient = AdminApiClient;
|
|
943
943
|
this.IdProvider = IdProvider;
|
|
944
944
|
this.defaultSalesChannel = options.defaultSalesChannel;
|
|
@@ -2038,7 +2038,7 @@ class TestDataService {
|
|
|
2038
2038
|
}
|
|
2039
2039
|
}
|
|
2040
2040
|
|
|
2041
|
-
const test$
|
|
2041
|
+
const test$8 = test$e.extend({
|
|
2042
2042
|
TestDataService: async ({ AdminApiContext, IdProvider, DefaultSalesChannel, SalesChannelBaseConfig }, use) => {
|
|
2043
2043
|
const DataService = new TestDataService(AdminApiContext, IdProvider, {
|
|
2044
2044
|
defaultSalesChannel: DefaultSalesChannel.salesChannel,
|
|
@@ -2054,16 +2054,16 @@ const test$7 = test$d.extend({
|
|
|
2054
2054
|
}
|
|
2055
2055
|
});
|
|
2056
2056
|
|
|
2057
|
-
var __defProp$
|
|
2058
|
-
var __defNormalProp$
|
|
2059
|
-
var __publicField$
|
|
2060
|
-
__defNormalProp$
|
|
2057
|
+
var __defProp$p = Object.defineProperty;
|
|
2058
|
+
var __defNormalProp$p = (obj, key, value) => key in obj ? __defProp$p(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2059
|
+
var __publicField$p = (obj, key, value) => {
|
|
2060
|
+
__defNormalProp$p(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
2061
2061
|
return value;
|
|
2062
2062
|
};
|
|
2063
2063
|
class IdProvider {
|
|
2064
2064
|
constructor(workerIndex, seed) {
|
|
2065
|
-
__publicField$
|
|
2066
|
-
__publicField$
|
|
2065
|
+
__publicField$p(this, "workerIndex");
|
|
2066
|
+
__publicField$p(this, "seed");
|
|
2067
2067
|
this.workerIndex = workerIndex;
|
|
2068
2068
|
this.seed = seed;
|
|
2069
2069
|
}
|
|
@@ -2092,7 +2092,7 @@ class IdProvider {
|
|
|
2092
2092
|
}
|
|
2093
2093
|
}
|
|
2094
2094
|
|
|
2095
|
-
const test$
|
|
2095
|
+
const test$7 = test$e.extend({
|
|
2096
2096
|
IdProvider: [
|
|
2097
2097
|
async ({}, use, workerInfo) => {
|
|
2098
2098
|
const seed = process.env.SHOPWARE_ACCESS_KEY_ID || process.env.SHOPWARE_ADMIN_PASSWORD || "test-suite";
|
|
@@ -2104,7 +2104,7 @@ const test$6 = test$d.extend({
|
|
|
2104
2104
|
SaaSInstanceSetup: [
|
|
2105
2105
|
async ({ AdminApiContext: context }, use) => {
|
|
2106
2106
|
const SetupInstance = async function SetupInstance2() {
|
|
2107
|
-
await test$
|
|
2107
|
+
await test$7.skip(!await isSaaSInstance(context), "Skipping SaaS setup, could not detect SaaS instance");
|
|
2108
2108
|
expect(context.options.admin_username, "setup requires admin user credentials").toEqual(expect.any(String));
|
|
2109
2109
|
expect(context.options.admin_password, "setup requires admin user credentials").toEqual(expect.any(String));
|
|
2110
2110
|
const instanceStatusResponse = await context.get("./instance/status");
|
|
@@ -2125,16 +2125,16 @@ const test$6 = test$d.extend({
|
|
|
2125
2125
|
]
|
|
2126
2126
|
});
|
|
2127
2127
|
|
|
2128
|
-
var __defProp$
|
|
2129
|
-
var __defNormalProp$
|
|
2130
|
-
var __publicField$
|
|
2131
|
-
__defNormalProp$
|
|
2128
|
+
var __defProp$o = Object.defineProperty;
|
|
2129
|
+
var __defNormalProp$o = (obj, key, value) => key in obj ? __defProp$o(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2130
|
+
var __publicField$o = (obj, key, value) => {
|
|
2131
|
+
__defNormalProp$o(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
2132
2132
|
return value;
|
|
2133
2133
|
};
|
|
2134
2134
|
class Home {
|
|
2135
2135
|
constructor(page) {
|
|
2136
2136
|
this.page = page;
|
|
2137
|
-
__publicField$
|
|
2137
|
+
__publicField$o(this, "productImages");
|
|
2138
2138
|
this.productImages = page.locator(".product-image-link");
|
|
2139
2139
|
}
|
|
2140
2140
|
url() {
|
|
@@ -2142,25 +2142,25 @@ class Home {
|
|
|
2142
2142
|
}
|
|
2143
2143
|
}
|
|
2144
2144
|
|
|
2145
|
-
var __defProp$
|
|
2146
|
-
var __defNormalProp$
|
|
2147
|
-
var __publicField$
|
|
2148
|
-
__defNormalProp$
|
|
2145
|
+
var __defProp$n = Object.defineProperty;
|
|
2146
|
+
var __defNormalProp$n = (obj, key, value) => key in obj ? __defProp$n(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2147
|
+
var __publicField$n = (obj, key, value) => {
|
|
2148
|
+
__defNormalProp$n(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
2149
2149
|
return value;
|
|
2150
2150
|
};
|
|
2151
2151
|
let ProductDetail$1 = class ProductDetail {
|
|
2152
2152
|
constructor(page) {
|
|
2153
2153
|
this.page = page;
|
|
2154
|
-
__publicField$
|
|
2155
|
-
__publicField$
|
|
2156
|
-
__publicField$
|
|
2157
|
-
__publicField$
|
|
2158
|
-
__publicField$
|
|
2159
|
-
__publicField$
|
|
2160
|
-
__publicField$
|
|
2161
|
-
__publicField$
|
|
2162
|
-
__publicField$
|
|
2163
|
-
__publicField$
|
|
2154
|
+
__publicField$n(this, "addToCartButton");
|
|
2155
|
+
__publicField$n(this, "quantitySelect");
|
|
2156
|
+
__publicField$n(this, "productSingleImage");
|
|
2157
|
+
__publicField$n(this, "productSinglePrice");
|
|
2158
|
+
__publicField$n(this, "offCanvasCartTitle");
|
|
2159
|
+
__publicField$n(this, "offCanvasCart");
|
|
2160
|
+
__publicField$n(this, "offCanvasCartGoToCheckoutButton");
|
|
2161
|
+
__publicField$n(this, "offCanvasLineItemImages");
|
|
2162
|
+
__publicField$n(this, "offCanvasSummaryTotalPrice");
|
|
2163
|
+
__publicField$n(this, "offCanvas");
|
|
2164
2164
|
this.addToCartButton = page.getByRole("button", { name: "Add to shopping cart" });
|
|
2165
2165
|
this.quantitySelect = page.getByLabel("Quantity", { exact: true });
|
|
2166
2166
|
this.productSingleImage = page.locator(".gallery-slider-single-image");
|
|
@@ -2181,18 +2181,18 @@ let ProductDetail$1 = class ProductDetail {
|
|
|
2181
2181
|
}
|
|
2182
2182
|
};
|
|
2183
2183
|
|
|
2184
|
-
var __defProp$
|
|
2185
|
-
var __defNormalProp$
|
|
2186
|
-
var __publicField$
|
|
2187
|
-
__defNormalProp$
|
|
2184
|
+
var __defProp$m = Object.defineProperty;
|
|
2185
|
+
var __defNormalProp$m = (obj, key, value) => key in obj ? __defProp$m(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2186
|
+
var __publicField$m = (obj, key, value) => {
|
|
2187
|
+
__defNormalProp$m(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
2188
2188
|
return value;
|
|
2189
2189
|
};
|
|
2190
2190
|
class Category {
|
|
2191
2191
|
constructor(page) {
|
|
2192
2192
|
this.page = page;
|
|
2193
|
-
__publicField$
|
|
2194
|
-
__publicField$
|
|
2195
|
-
__publicField$
|
|
2193
|
+
__publicField$m(this, "sortingSelect");
|
|
2194
|
+
__publicField$m(this, "firstProductBuyButton");
|
|
2195
|
+
__publicField$m(this, "noProductsFoundAlert");
|
|
2196
2196
|
this.sortingSelect = page.getByLabel("Sorting");
|
|
2197
2197
|
this.firstProductBuyButton = page.getByRole("button", { name: "Add to shopping cart" }).first();
|
|
2198
2198
|
this.noProductsFoundAlert = page.getByText("No products found.");
|
|
@@ -2202,23 +2202,23 @@ class Category {
|
|
|
2202
2202
|
}
|
|
2203
2203
|
}
|
|
2204
2204
|
|
|
2205
|
-
var __defProp$
|
|
2206
|
-
var __defNormalProp$
|
|
2207
|
-
var __publicField$
|
|
2208
|
-
__defNormalProp$
|
|
2205
|
+
var __defProp$l = Object.defineProperty;
|
|
2206
|
+
var __defNormalProp$l = (obj, key, value) => key in obj ? __defProp$l(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2207
|
+
var __publicField$l = (obj, key, value) => {
|
|
2208
|
+
__defNormalProp$l(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
2209
2209
|
return value;
|
|
2210
2210
|
};
|
|
2211
2211
|
class CheckoutCart {
|
|
2212
2212
|
constructor(page) {
|
|
2213
2213
|
this.page = page;
|
|
2214
|
-
__publicField$
|
|
2215
|
-
__publicField$
|
|
2216
|
-
__publicField$
|
|
2217
|
-
__publicField$
|
|
2218
|
-
__publicField$
|
|
2219
|
-
__publicField$
|
|
2220
|
-
__publicField$
|
|
2221
|
-
__publicField$
|
|
2214
|
+
__publicField$l(this, "headline");
|
|
2215
|
+
__publicField$l(this, "goToCheckoutButton");
|
|
2216
|
+
__publicField$l(this, "enterDiscountInput");
|
|
2217
|
+
__publicField$l(this, "grandTotalPrice");
|
|
2218
|
+
__publicField$l(this, "emptyCartAlert");
|
|
2219
|
+
__publicField$l(this, "stockReachedAlert");
|
|
2220
|
+
__publicField$l(this, "cartLineItemImages");
|
|
2221
|
+
__publicField$l(this, "unitPriceInfo");
|
|
2222
2222
|
this.headline = page.getByRole("heading", { name: "Shopping cart" });
|
|
2223
2223
|
this.goToCheckoutButton = page.getByRole("link", { name: "Go to checkout" });
|
|
2224
2224
|
this.enterDiscountInput = page.getByLabel("Discount code");
|
|
@@ -2233,35 +2233,35 @@ class CheckoutCart {
|
|
|
2233
2233
|
}
|
|
2234
2234
|
}
|
|
2235
2235
|
|
|
2236
|
-
var __defProp$
|
|
2237
|
-
var __defNormalProp$
|
|
2238
|
-
var __publicField$
|
|
2239
|
-
__defNormalProp$
|
|
2236
|
+
var __defProp$k = Object.defineProperty;
|
|
2237
|
+
var __defNormalProp$k = (obj, key, value) => key in obj ? __defProp$k(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2238
|
+
var __publicField$k = (obj, key, value) => {
|
|
2239
|
+
__defNormalProp$k(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
2240
2240
|
return value;
|
|
2241
2241
|
};
|
|
2242
2242
|
class CheckoutConfirm {
|
|
2243
2243
|
constructor(page) {
|
|
2244
2244
|
this.page = page;
|
|
2245
|
-
__publicField$
|
|
2246
|
-
__publicField$
|
|
2247
|
-
__publicField$
|
|
2248
|
-
__publicField$
|
|
2249
|
-
__publicField$
|
|
2245
|
+
__publicField$k(this, "headline");
|
|
2246
|
+
__publicField$k(this, "termsAndConditionsCheckbox");
|
|
2247
|
+
__publicField$k(this, "immediateAccessToDigitalProductCheckbox");
|
|
2248
|
+
__publicField$k(this, "grandTotalPrice");
|
|
2249
|
+
__publicField$k(this, "submitOrderButton");
|
|
2250
2250
|
/**
|
|
2251
2251
|
* Payment options
|
|
2252
2252
|
*/
|
|
2253
|
-
__publicField$
|
|
2254
|
-
__publicField$
|
|
2255
|
-
__publicField$
|
|
2253
|
+
__publicField$k(this, "paymentCashOnDelivery");
|
|
2254
|
+
__publicField$k(this, "paymentPaidInAdvance");
|
|
2255
|
+
__publicField$k(this, "paymentInvoice");
|
|
2256
2256
|
/**
|
|
2257
2257
|
* Shipping options
|
|
2258
2258
|
*/
|
|
2259
|
-
__publicField$
|
|
2260
|
-
__publicField$
|
|
2259
|
+
__publicField$k(this, "shippingStandard");
|
|
2260
|
+
__publicField$k(this, "shippingExpress");
|
|
2261
2261
|
/**
|
|
2262
2262
|
* Product details
|
|
2263
2263
|
*/
|
|
2264
|
-
__publicField$
|
|
2264
|
+
__publicField$k(this, "cartLineItemImages");
|
|
2265
2265
|
this.headline = page.getByRole("heading", { name: "Complete order" });
|
|
2266
2266
|
this.termsAndConditionsCheckbox = page.getByLabel("I have read and accepted the general terms and conditions.");
|
|
2267
2267
|
this.immediateAccessToDigitalProductCheckbox = page.getByLabel("I want immediate access to the digital content and I acknowledge that thereby I waive my right to cancel.");
|
|
@@ -2279,20 +2279,20 @@ class CheckoutConfirm {
|
|
|
2279
2279
|
}
|
|
2280
2280
|
}
|
|
2281
2281
|
|
|
2282
|
-
var __defProp$
|
|
2283
|
-
var __defNormalProp$
|
|
2284
|
-
var __publicField$
|
|
2285
|
-
__defNormalProp$
|
|
2282
|
+
var __defProp$j = Object.defineProperty;
|
|
2283
|
+
var __defNormalProp$j = (obj, key, value) => key in obj ? __defProp$j(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2284
|
+
var __publicField$j = (obj, key, value) => {
|
|
2285
|
+
__defNormalProp$j(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
2286
2286
|
return value;
|
|
2287
2287
|
};
|
|
2288
2288
|
class CheckoutFinish {
|
|
2289
2289
|
constructor(page) {
|
|
2290
2290
|
this.page = page;
|
|
2291
|
-
__publicField$
|
|
2292
|
-
__publicField$
|
|
2293
|
-
__publicField$
|
|
2294
|
-
__publicField$
|
|
2295
|
-
__publicField$
|
|
2291
|
+
__publicField$j(this, "headline");
|
|
2292
|
+
__publicField$j(this, "orderNumberText");
|
|
2293
|
+
__publicField$j(this, "grandTotalPrice");
|
|
2294
|
+
__publicField$j(this, "cartLineItemImages");
|
|
2295
|
+
__publicField$j(this, "orderNumberRegex", /Your order number: #(\d+)/);
|
|
2296
2296
|
this.headline = page.getByRole("heading", { name: "Thank you for your order" });
|
|
2297
2297
|
this.orderNumberText = page.getByText(this.orderNumberRegex);
|
|
2298
2298
|
this.grandTotalPrice = page.locator('dt:has-text("Grand total") + dd');
|
|
@@ -2320,16 +2320,16 @@ class CheckoutFinish {
|
|
|
2320
2320
|
}
|
|
2321
2321
|
}
|
|
2322
2322
|
|
|
2323
|
-
var __defProp$
|
|
2324
|
-
var __defNormalProp$
|
|
2325
|
-
var __publicField$
|
|
2326
|
-
__defNormalProp$
|
|
2323
|
+
var __defProp$i = Object.defineProperty;
|
|
2324
|
+
var __defNormalProp$i = (obj, key, value) => key in obj ? __defProp$i(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2325
|
+
var __publicField$i = (obj, key, value) => {
|
|
2326
|
+
__defNormalProp$i(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
2327
2327
|
return value;
|
|
2328
2328
|
};
|
|
2329
2329
|
class CheckoutRegister {
|
|
2330
2330
|
constructor(page) {
|
|
2331
2331
|
this.page = page;
|
|
2332
|
-
__publicField$
|
|
2332
|
+
__publicField$i(this, "cartLineItemImages");
|
|
2333
2333
|
this.cartLineItemImages = page.locator(".line-item-img-link");
|
|
2334
2334
|
}
|
|
2335
2335
|
url() {
|
|
@@ -2337,22 +2337,22 @@ class CheckoutRegister {
|
|
|
2337
2337
|
}
|
|
2338
2338
|
}
|
|
2339
2339
|
|
|
2340
|
-
var __defProp$
|
|
2341
|
-
var __defNormalProp$
|
|
2342
|
-
var __publicField$
|
|
2343
|
-
__defNormalProp$
|
|
2340
|
+
var __defProp$h = Object.defineProperty;
|
|
2341
|
+
var __defNormalProp$h = (obj, key, value) => key in obj ? __defProp$h(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2342
|
+
var __publicField$h = (obj, key, value) => {
|
|
2343
|
+
__defNormalProp$h(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
2344
2344
|
return value;
|
|
2345
2345
|
};
|
|
2346
2346
|
class Account {
|
|
2347
2347
|
constructor(page) {
|
|
2348
2348
|
this.page = page;
|
|
2349
|
-
__publicField$
|
|
2350
|
-
__publicField$
|
|
2351
|
-
__publicField$
|
|
2352
|
-
__publicField$
|
|
2353
|
-
__publicField$
|
|
2354
|
-
__publicField$
|
|
2355
|
-
__publicField$
|
|
2349
|
+
__publicField$h(this, "headline");
|
|
2350
|
+
__publicField$h(this, "personalDataCardTitle");
|
|
2351
|
+
__publicField$h(this, "paymentMethodCardTitle");
|
|
2352
|
+
__publicField$h(this, "billingAddressCardTitle");
|
|
2353
|
+
__publicField$h(this, "shippingAddressCardTitle");
|
|
2354
|
+
__publicField$h(this, "newsletterCheckbox");
|
|
2355
|
+
__publicField$h(this, "newsletterRegistrationSuccessMessage");
|
|
2356
2356
|
this.headline = page.getByRole("heading", { name: "Overview" });
|
|
2357
2357
|
this.personalDataCardTitle = page.getByRole("heading", { name: "Personal data" });
|
|
2358
2358
|
this.paymentMethodCardTitle = page.getByRole("heading", { name: "Default payment method" });
|
|
@@ -2366,31 +2366,31 @@ class Account {
|
|
|
2366
2366
|
}
|
|
2367
2367
|
}
|
|
2368
2368
|
|
|
2369
|
-
var __defProp$
|
|
2370
|
-
var __defNormalProp$
|
|
2371
|
-
var __publicField$
|
|
2372
|
-
__defNormalProp$
|
|
2369
|
+
var __defProp$g = Object.defineProperty;
|
|
2370
|
+
var __defNormalProp$g = (obj, key, value) => key in obj ? __defProp$g(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2371
|
+
var __publicField$g = (obj, key, value) => {
|
|
2372
|
+
__defNormalProp$g(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
2373
2373
|
return value;
|
|
2374
2374
|
};
|
|
2375
2375
|
class AccountLogin {
|
|
2376
2376
|
constructor(page) {
|
|
2377
2377
|
this.page = page;
|
|
2378
|
-
__publicField$
|
|
2379
|
-
__publicField$
|
|
2380
|
-
__publicField$
|
|
2381
|
-
__publicField$
|
|
2382
|
-
__publicField$
|
|
2378
|
+
__publicField$g(this, "emailInput");
|
|
2379
|
+
__publicField$g(this, "passwordInput");
|
|
2380
|
+
__publicField$g(this, "loginButton");
|
|
2381
|
+
__publicField$g(this, "logoutLink");
|
|
2382
|
+
__publicField$g(this, "successAlert");
|
|
2383
2383
|
// Inputs for registration
|
|
2384
|
-
__publicField$
|
|
2385
|
-
__publicField$
|
|
2386
|
-
__publicField$
|
|
2387
|
-
__publicField$
|
|
2388
|
-
__publicField$
|
|
2389
|
-
__publicField$
|
|
2390
|
-
__publicField$
|
|
2391
|
-
__publicField$
|
|
2392
|
-
__publicField$
|
|
2393
|
-
__publicField$
|
|
2384
|
+
__publicField$g(this, "personalFormArea");
|
|
2385
|
+
__publicField$g(this, "billingAddressFormArea");
|
|
2386
|
+
__publicField$g(this, "firstNameInput");
|
|
2387
|
+
__publicField$g(this, "lastNameInput");
|
|
2388
|
+
__publicField$g(this, "registerEmailInput");
|
|
2389
|
+
__publicField$g(this, "registerPasswordInput");
|
|
2390
|
+
__publicField$g(this, "streetAddressInput");
|
|
2391
|
+
__publicField$g(this, "cityInput");
|
|
2392
|
+
__publicField$g(this, "countryInput");
|
|
2393
|
+
__publicField$g(this, "registerButton");
|
|
2394
2394
|
this.emailInput = page.getByLabel("Your email address");
|
|
2395
2395
|
this.passwordInput = page.getByLabel("Your password");
|
|
2396
2396
|
this.loginButton = page.getByRole("button", { name: "Log in" });
|
|
@@ -2413,29 +2413,29 @@ class AccountLogin {
|
|
|
2413
2413
|
}
|
|
2414
2414
|
}
|
|
2415
2415
|
|
|
2416
|
-
var __defProp$
|
|
2417
|
-
var __defNormalProp$
|
|
2418
|
-
var __publicField$
|
|
2419
|
-
__defNormalProp$
|
|
2416
|
+
var __defProp$f = Object.defineProperty;
|
|
2417
|
+
var __defNormalProp$f = (obj, key, value) => key in obj ? __defProp$f(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2418
|
+
var __publicField$f = (obj, key, value) => {
|
|
2419
|
+
__defNormalProp$f(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
2420
2420
|
return value;
|
|
2421
2421
|
};
|
|
2422
2422
|
class AccountProfile {
|
|
2423
2423
|
constructor(page) {
|
|
2424
2424
|
this.page = page;
|
|
2425
|
-
__publicField$
|
|
2426
|
-
__publicField$
|
|
2427
|
-
__publicField$
|
|
2428
|
-
__publicField$
|
|
2429
|
-
__publicField$
|
|
2430
|
-
__publicField$
|
|
2431
|
-
__publicField$
|
|
2432
|
-
__publicField$
|
|
2433
|
-
__publicField$
|
|
2434
|
-
__publicField$
|
|
2435
|
-
__publicField$
|
|
2436
|
-
__publicField$
|
|
2437
|
-
__publicField$
|
|
2438
|
-
__publicField$
|
|
2425
|
+
__publicField$f(this, "salutationSelect");
|
|
2426
|
+
__publicField$f(this, "firstNameInput");
|
|
2427
|
+
__publicField$f(this, "lastNameInput");
|
|
2428
|
+
__publicField$f(this, "saveProfileButton");
|
|
2429
|
+
__publicField$f(this, "changeEmailButton");
|
|
2430
|
+
__publicField$f(this, "emailAddressInput");
|
|
2431
|
+
__publicField$f(this, "emailAddressConfirmInput");
|
|
2432
|
+
__publicField$f(this, "emailConfirmPasswordInput");
|
|
2433
|
+
__publicField$f(this, "saveEmailAddressButton");
|
|
2434
|
+
__publicField$f(this, "changePasswordButton");
|
|
2435
|
+
__publicField$f(this, "newPasswordInput");
|
|
2436
|
+
__publicField$f(this, "newPasswordConfirmInput");
|
|
2437
|
+
__publicField$f(this, "currentPasswordInput");
|
|
2438
|
+
__publicField$f(this, "saveNewPasswordButton");
|
|
2439
2439
|
this.salutationSelect = page.getByLabel("Salutation");
|
|
2440
2440
|
this.firstNameInput = page.getByPlaceholder("Enter first name...");
|
|
2441
2441
|
this.lastNameInput = page.getByPlaceholder("Enter last name...");
|
|
@@ -2456,18 +2456,18 @@ class AccountProfile {
|
|
|
2456
2456
|
}
|
|
2457
2457
|
}
|
|
2458
2458
|
|
|
2459
|
-
var __defProp$
|
|
2460
|
-
var __defNormalProp$
|
|
2461
|
-
var __publicField$
|
|
2462
|
-
__defNormalProp$
|
|
2459
|
+
var __defProp$e = Object.defineProperty;
|
|
2460
|
+
var __defNormalProp$e = (obj, key, value) => key in obj ? __defProp$e(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2461
|
+
var __publicField$e = (obj, key, value) => {
|
|
2462
|
+
__defNormalProp$e(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
2463
2463
|
return value;
|
|
2464
2464
|
};
|
|
2465
2465
|
class AccountOrder {
|
|
2466
2466
|
constructor(page) {
|
|
2467
2467
|
this.page = page;
|
|
2468
|
-
__publicField$
|
|
2469
|
-
__publicField$
|
|
2470
|
-
__publicField$
|
|
2468
|
+
__publicField$e(this, "cartLineItemImages");
|
|
2469
|
+
__publicField$e(this, "orderExpandButton");
|
|
2470
|
+
__publicField$e(this, "digitalProductDownloadButton");
|
|
2471
2471
|
this.orderExpandButton = page.getByRole("button", { name: "Expand" }).first();
|
|
2472
2472
|
this.cartLineItemImages = page.locator(".line-item-img-link");
|
|
2473
2473
|
this.digitalProductDownloadButton = page.getByRole("link", { name: "Download" }).first();
|
|
@@ -2477,20 +2477,20 @@ class AccountOrder {
|
|
|
2477
2477
|
}
|
|
2478
2478
|
}
|
|
2479
2479
|
|
|
2480
|
-
var __defProp$
|
|
2481
|
-
var __defNormalProp$
|
|
2482
|
-
var __publicField$
|
|
2483
|
-
__defNormalProp$
|
|
2480
|
+
var __defProp$d = Object.defineProperty;
|
|
2481
|
+
var __defNormalProp$d = (obj, key, value) => key in obj ? __defProp$d(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2482
|
+
var __publicField$d = (obj, key, value) => {
|
|
2483
|
+
__defNormalProp$d(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
2484
2484
|
return value;
|
|
2485
2485
|
};
|
|
2486
2486
|
class AccountAddresses {
|
|
2487
2487
|
constructor(page) {
|
|
2488
2488
|
this.page = page;
|
|
2489
|
-
__publicField$
|
|
2490
|
-
__publicField$
|
|
2491
|
-
__publicField$
|
|
2492
|
-
__publicField$
|
|
2493
|
-
__publicField$
|
|
2489
|
+
__publicField$d(this, "addNewAddressButton");
|
|
2490
|
+
__publicField$d(this, "editBillingAddressButton");
|
|
2491
|
+
__publicField$d(this, "editShippingAddressButton");
|
|
2492
|
+
__publicField$d(this, "useDefaultBillingAddressButton");
|
|
2493
|
+
__publicField$d(this, "useDefaultShippingAddressButton");
|
|
2494
2494
|
this.addNewAddressButton = page.getByRole("link", { name: "Add new address" });
|
|
2495
2495
|
this.editBillingAddressButton = page.getByRole("link", { name: "Edit address" }).first();
|
|
2496
2496
|
this.editShippingAddressButton = page.getByRole("link", { name: "Edit address" }).nth(1);
|
|
@@ -2502,19 +2502,19 @@ class AccountAddresses {
|
|
|
2502
2502
|
}
|
|
2503
2503
|
}
|
|
2504
2504
|
|
|
2505
|
-
var __defProp$
|
|
2506
|
-
var __defNormalProp$
|
|
2507
|
-
var __publicField$
|
|
2508
|
-
__defNormalProp$
|
|
2505
|
+
var __defProp$c = Object.defineProperty;
|
|
2506
|
+
var __defNormalProp$c = (obj, key, value) => key in obj ? __defProp$c(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2507
|
+
var __publicField$c = (obj, key, value) => {
|
|
2508
|
+
__defNormalProp$c(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
2509
2509
|
return value;
|
|
2510
2510
|
};
|
|
2511
2511
|
class AccountPayment {
|
|
2512
2512
|
constructor(page) {
|
|
2513
2513
|
this.page = page;
|
|
2514
|
-
__publicField$
|
|
2515
|
-
__publicField$
|
|
2516
|
-
__publicField$
|
|
2517
|
-
__publicField$
|
|
2514
|
+
__publicField$c(this, "cashOnDeliveryOption");
|
|
2515
|
+
__publicField$c(this, "paidInAdvanceOption");
|
|
2516
|
+
__publicField$c(this, "invoiceOption");
|
|
2517
|
+
__publicField$c(this, "changeDefaultPaymentButton");
|
|
2518
2518
|
this.cashOnDeliveryOption = page.getByLabel("Cash on delivery");
|
|
2519
2519
|
this.paidInAdvanceOption = page.getByLabel("Paid in advance");
|
|
2520
2520
|
this.invoiceOption = page.getByLabel("Invoice");
|
|
@@ -2525,17 +2525,17 @@ class AccountPayment {
|
|
|
2525
2525
|
}
|
|
2526
2526
|
}
|
|
2527
2527
|
|
|
2528
|
-
var __defProp$
|
|
2529
|
-
var __defNormalProp$
|
|
2530
|
-
var __publicField$
|
|
2531
|
-
__defNormalProp$
|
|
2528
|
+
var __defProp$b = Object.defineProperty;
|
|
2529
|
+
var __defNormalProp$b = (obj, key, value) => key in obj ? __defProp$b(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2530
|
+
var __publicField$b = (obj, key, value) => {
|
|
2531
|
+
__defNormalProp$b(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
2532
2532
|
return value;
|
|
2533
2533
|
};
|
|
2534
2534
|
class Search {
|
|
2535
2535
|
constructor(page) {
|
|
2536
2536
|
this.page = page;
|
|
2537
|
-
__publicField$
|
|
2538
|
-
__publicField$
|
|
2537
|
+
__publicField$b(this, "headline");
|
|
2538
|
+
__publicField$b(this, "productImages");
|
|
2539
2539
|
this.headline = page.locator("h1.search-headline");
|
|
2540
2540
|
this.productImages = page.locator(".product-image-link");
|
|
2541
2541
|
}
|
|
@@ -2544,16 +2544,16 @@ class Search {
|
|
|
2544
2544
|
}
|
|
2545
2545
|
}
|
|
2546
2546
|
|
|
2547
|
-
var __defProp$
|
|
2548
|
-
var __defNormalProp$
|
|
2549
|
-
var __publicField$
|
|
2550
|
-
__defNormalProp$
|
|
2547
|
+
var __defProp$a = Object.defineProperty;
|
|
2548
|
+
var __defNormalProp$a = (obj, key, value) => key in obj ? __defProp$a(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2549
|
+
var __publicField$a = (obj, key, value) => {
|
|
2550
|
+
__defNormalProp$a(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
2551
2551
|
return value;
|
|
2552
2552
|
};
|
|
2553
2553
|
class SearchSuggest {
|
|
2554
2554
|
constructor(page) {
|
|
2555
2555
|
this.page = page;
|
|
2556
|
-
__publicField$
|
|
2556
|
+
__publicField$a(this, "searchSuggestLineItemImages");
|
|
2557
2557
|
this.searchSuggestLineItemImages = page.locator(".search-suggest-product-image-container");
|
|
2558
2558
|
}
|
|
2559
2559
|
url(searchTerm) {
|
|
@@ -2578,7 +2578,7 @@ const StorefrontPageObjects = {
|
|
|
2578
2578
|
Search,
|
|
2579
2579
|
SearchSuggest
|
|
2580
2580
|
};
|
|
2581
|
-
const test$
|
|
2581
|
+
const test$6 = test$e.extend({
|
|
2582
2582
|
StorefrontHome: async ({ StorefrontPage }, use) => {
|
|
2583
2583
|
await use(new Home(StorefrontPage));
|
|
2584
2584
|
},
|
|
@@ -2626,10 +2626,10 @@ const test$5 = test$d.extend({
|
|
|
2626
2626
|
}
|
|
2627
2627
|
});
|
|
2628
2628
|
|
|
2629
|
-
var __defProp$
|
|
2630
|
-
var __defNormalProp$
|
|
2631
|
-
var __publicField$
|
|
2632
|
-
__defNormalProp$
|
|
2629
|
+
var __defProp$9 = Object.defineProperty;
|
|
2630
|
+
var __defNormalProp$9 = (obj, key, value) => key in obj ? __defProp$9(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2631
|
+
var __publicField$9 = (obj, key, value) => {
|
|
2632
|
+
__defNormalProp$9(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
2633
2633
|
return value;
|
|
2634
2634
|
};
|
|
2635
2635
|
class ProductDetail {
|
|
@@ -2638,39 +2638,39 @@ class ProductDetail {
|
|
|
2638
2638
|
/**
|
|
2639
2639
|
* Save interactions
|
|
2640
2640
|
*/
|
|
2641
|
-
__publicField$
|
|
2642
|
-
__publicField$
|
|
2643
|
-
__publicField$
|
|
2641
|
+
__publicField$9(this, "savePhysicalProductButton");
|
|
2642
|
+
__publicField$9(this, "saveButtonLoadingSpinner");
|
|
2643
|
+
__publicField$9(this, "saveButtonCheckMark");
|
|
2644
2644
|
/**
|
|
2645
2645
|
* Media Upload interactions
|
|
2646
2646
|
*/
|
|
2647
|
-
__publicField$
|
|
2648
|
-
__publicField$
|
|
2649
|
-
__publicField$
|
|
2647
|
+
__publicField$9(this, "uploadMediaButton");
|
|
2648
|
+
__publicField$9(this, "coverImage");
|
|
2649
|
+
__publicField$9(this, "productImage");
|
|
2650
2650
|
/**
|
|
2651
2651
|
* Tabs
|
|
2652
2652
|
*/
|
|
2653
|
-
__publicField$
|
|
2653
|
+
__publicField$9(this, "variantsTabLink");
|
|
2654
2654
|
/**
|
|
2655
2655
|
* Variants Generation
|
|
2656
2656
|
*/
|
|
2657
|
-
__publicField$
|
|
2658
|
-
__publicField$
|
|
2659
|
-
__publicField$
|
|
2660
|
-
__publicField$
|
|
2661
|
-
__publicField$
|
|
2657
|
+
__publicField$9(this, "generateVariantsButton");
|
|
2658
|
+
__publicField$9(this, "variantsModal");
|
|
2659
|
+
__publicField$9(this, "variantsModalHeadline");
|
|
2660
|
+
__publicField$9(this, "variantsNextButton");
|
|
2661
|
+
__publicField$9(this, "variantsSaveButton");
|
|
2662
2662
|
/**
|
|
2663
2663
|
* Property Selection
|
|
2664
2664
|
*/
|
|
2665
|
-
__publicField$
|
|
2666
|
-
__publicField$
|
|
2667
|
-
__publicField$
|
|
2668
|
-
__publicField$
|
|
2669
|
-
__publicField$
|
|
2670
|
-
__publicField$
|
|
2671
|
-
__publicField$
|
|
2672
|
-
__publicField$
|
|
2673
|
-
__publicField$
|
|
2665
|
+
__publicField$9(this, "propertyGroupColor");
|
|
2666
|
+
__publicField$9(this, "propertyGroupSize");
|
|
2667
|
+
__publicField$9(this, "propertyOptionGrid");
|
|
2668
|
+
__publicField$9(this, "propertyOptionColorBlue");
|
|
2669
|
+
__publicField$9(this, "propertyOptionColorRed");
|
|
2670
|
+
__publicField$9(this, "propertyOptionColorGreen");
|
|
2671
|
+
__publicField$9(this, "propertyOptionSizeSmall");
|
|
2672
|
+
__publicField$9(this, "propertyOptionSizeMedium");
|
|
2673
|
+
__publicField$9(this, "propertyOptionSizeLarge");
|
|
2674
2674
|
this.savePhysicalProductButton = page.getByRole("button", { name: "Save" });
|
|
2675
2675
|
this.saveButtonCheckMark = page.locator(".icon--regular-checkmark-xs");
|
|
2676
2676
|
this.saveButtonLoadingSpinner = page.locator("sw-loader");
|
|
@@ -2698,18 +2698,18 @@ class ProductDetail {
|
|
|
2698
2698
|
}
|
|
2699
2699
|
}
|
|
2700
2700
|
|
|
2701
|
-
var __defProp$
|
|
2702
|
-
var __defNormalProp$
|
|
2703
|
-
var __publicField$
|
|
2704
|
-
__defNormalProp$
|
|
2701
|
+
var __defProp$8 = Object.defineProperty;
|
|
2702
|
+
var __defNormalProp$8 = (obj, key, value) => key in obj ? __defProp$8(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2703
|
+
var __publicField$8 = (obj, key, value) => {
|
|
2704
|
+
__defNormalProp$8(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
2705
2705
|
return value;
|
|
2706
2706
|
};
|
|
2707
2707
|
class OrderDetail {
|
|
2708
2708
|
constructor(page) {
|
|
2709
2709
|
this.page = page;
|
|
2710
|
-
__publicField$
|
|
2711
|
-
__publicField$
|
|
2712
|
-
__publicField$
|
|
2710
|
+
__publicField$8(this, "saveButton");
|
|
2711
|
+
__publicField$8(this, "dataGridContextButton");
|
|
2712
|
+
__publicField$8(this, "orderTag");
|
|
2713
2713
|
this.saveButton = page.locator(".sw-order-detail__smart-bar-save-button");
|
|
2714
2714
|
this.dataGridContextButton = page.locator(".sw-data-grid__actions-menu").and(page.getByRole("button"));
|
|
2715
2715
|
this.orderTag = page.locator(".sw-select-selection-list__item");
|
|
@@ -2719,18 +2719,18 @@ class OrderDetail {
|
|
|
2719
2719
|
}
|
|
2720
2720
|
}
|
|
2721
2721
|
|
|
2722
|
-
var __defProp$
|
|
2723
|
-
var __defNormalProp$
|
|
2724
|
-
var __publicField$
|
|
2725
|
-
__defNormalProp$
|
|
2722
|
+
var __defProp$7 = Object.defineProperty;
|
|
2723
|
+
var __defNormalProp$7 = (obj, key, value) => key in obj ? __defProp$7(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2724
|
+
var __publicField$7 = (obj, key, value) => {
|
|
2725
|
+
__defNormalProp$7(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
2726
2726
|
return value;
|
|
2727
2727
|
};
|
|
2728
2728
|
class CustomerDetail {
|
|
2729
2729
|
constructor(page) {
|
|
2730
2730
|
this.page = page;
|
|
2731
|
-
__publicField$
|
|
2732
|
-
__publicField$
|
|
2733
|
-
__publicField$
|
|
2731
|
+
__publicField$7(this, "editButton");
|
|
2732
|
+
__publicField$7(this, "generalTab");
|
|
2733
|
+
__publicField$7(this, "accountCard");
|
|
2734
2734
|
this.editButton = page.getByRole("button", { name: "Edit" });
|
|
2735
2735
|
this.generalTab = page.getByRole("link", { name: "General" });
|
|
2736
2736
|
this.accountCard = page.locator(".sw-customer-card");
|
|
@@ -2740,53 +2740,53 @@ class CustomerDetail {
|
|
|
2740
2740
|
}
|
|
2741
2741
|
}
|
|
2742
2742
|
|
|
2743
|
-
var __defProp$
|
|
2744
|
-
var __defNormalProp$
|
|
2745
|
-
var __publicField$
|
|
2746
|
-
__defNormalProp$
|
|
2743
|
+
var __defProp$6 = Object.defineProperty;
|
|
2744
|
+
var __defNormalProp$6 = (obj, key, value) => key in obj ? __defProp$6(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2745
|
+
var __publicField$6 = (obj, key, value) => {
|
|
2746
|
+
__defNormalProp$6(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
2747
2747
|
return value;
|
|
2748
2748
|
};
|
|
2749
2749
|
class FirstRunWizard {
|
|
2750
2750
|
constructor(page) {
|
|
2751
2751
|
this.page = page;
|
|
2752
|
-
__publicField$
|
|
2753
|
-
__publicField$
|
|
2754
|
-
__publicField$
|
|
2755
|
-
__publicField$
|
|
2756
|
-
__publicField$
|
|
2757
|
-
__publicField$
|
|
2758
|
-
__publicField$
|
|
2759
|
-
__publicField$
|
|
2760
|
-
__publicField$
|
|
2761
|
-
__publicField$
|
|
2762
|
-
__publicField$
|
|
2763
|
-
__publicField$
|
|
2764
|
-
__publicField$
|
|
2765
|
-
__publicField$
|
|
2766
|
-
__publicField$
|
|
2767
|
-
__publicField$
|
|
2768
|
-
__publicField$
|
|
2769
|
-
__publicField$
|
|
2770
|
-
__publicField$
|
|
2771
|
-
__publicField$
|
|
2772
|
-
__publicField$
|
|
2773
|
-
__publicField$
|
|
2774
|
-
__publicField$
|
|
2775
|
-
__publicField$
|
|
2776
|
-
__publicField$
|
|
2777
|
-
__publicField$
|
|
2778
|
-
__publicField$
|
|
2779
|
-
__publicField$
|
|
2780
|
-
__publicField$
|
|
2781
|
-
__publicField$
|
|
2782
|
-
__publicField$
|
|
2783
|
-
__publicField$
|
|
2784
|
-
__publicField$
|
|
2785
|
-
__publicField$
|
|
2786
|
-
__publicField$
|
|
2787
|
-
__publicField$
|
|
2788
|
-
__publicField$
|
|
2789
|
-
__publicField$
|
|
2752
|
+
__publicField$6(this, "nextButton");
|
|
2753
|
+
__publicField$6(this, "configureLaterButton");
|
|
2754
|
+
__publicField$6(this, "skipButton");
|
|
2755
|
+
__publicField$6(this, "finishButton");
|
|
2756
|
+
__publicField$6(this, "backButton");
|
|
2757
|
+
__publicField$6(this, "smtpServerButton");
|
|
2758
|
+
__publicField$6(this, "dataImportHeader");
|
|
2759
|
+
__publicField$6(this, "installLanguagePackButton");
|
|
2760
|
+
__publicField$6(this, "installDemoDataButton");
|
|
2761
|
+
__publicField$6(this, "installMigrationAssistantButton");
|
|
2762
|
+
__publicField$6(this, "defaultValuesHeader");
|
|
2763
|
+
__publicField$6(this, "mailerConfigurationHeader");
|
|
2764
|
+
__publicField$6(this, "payPalSetupHeader");
|
|
2765
|
+
__publicField$6(this, "extensionsHeader");
|
|
2766
|
+
__publicField$6(this, "shopwareAccountHeader");
|
|
2767
|
+
__publicField$6(this, "shopwareStoreHeader");
|
|
2768
|
+
__publicField$6(this, "doneHeader");
|
|
2769
|
+
__publicField$6(this, "frwSuccessText");
|
|
2770
|
+
__publicField$6(this, "welcomeText");
|
|
2771
|
+
__publicField$6(this, "pluginCardInfo");
|
|
2772
|
+
__publicField$6(this, "dataImportCard");
|
|
2773
|
+
__publicField$6(this, "salesChannelSelectionList");
|
|
2774
|
+
__publicField$6(this, "salesChannelSelectionMultiSelect");
|
|
2775
|
+
__publicField$6(this, "smtpServerTitle");
|
|
2776
|
+
__publicField$6(this, "smtpServerFields");
|
|
2777
|
+
__publicField$6(this, "payPalPaymethods");
|
|
2778
|
+
__publicField$6(this, "payPalInfoCard");
|
|
2779
|
+
__publicField$6(this, "emailAddressInputField");
|
|
2780
|
+
__publicField$6(this, "passwordInputField");
|
|
2781
|
+
__publicField$6(this, "forgotPasswordLink");
|
|
2782
|
+
__publicField$6(this, "extensionStoreHeading");
|
|
2783
|
+
__publicField$6(this, "documentationLink");
|
|
2784
|
+
__publicField$6(this, "forumLink");
|
|
2785
|
+
__publicField$6(this, "roadmapLink");
|
|
2786
|
+
__publicField$6(this, "germanRegionSelector");
|
|
2787
|
+
__publicField$6(this, "toolsSelector");
|
|
2788
|
+
__publicField$6(this, "recommendationHeader");
|
|
2789
|
+
__publicField$6(this, "toolsRecommendedPlugin");
|
|
2790
2790
|
this.nextButton = page.getByText("Next", { exact: true });
|
|
2791
2791
|
this.configureLaterButton = page.getByText("Configure later", { exact: true });
|
|
2792
2792
|
this.skipButton = page.getByText("Skip", { exact: true });
|
|
@@ -2831,17 +2831,17 @@ class FirstRunWizard {
|
|
|
2831
2831
|
}
|
|
2832
2832
|
}
|
|
2833
2833
|
|
|
2834
|
-
var __defProp$
|
|
2835
|
-
var __defNormalProp$
|
|
2836
|
-
var __publicField$
|
|
2837
|
-
__defNormalProp$
|
|
2834
|
+
var __defProp$5 = Object.defineProperty;
|
|
2835
|
+
var __defNormalProp$5 = (obj, key, value) => key in obj ? __defProp$5(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2836
|
+
var __publicField$5 = (obj, key, value) => {
|
|
2837
|
+
__defNormalProp$5(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
2838
2838
|
return value;
|
|
2839
2839
|
};
|
|
2840
2840
|
class FlowBuilderCreate {
|
|
2841
2841
|
constructor(page) {
|
|
2842
2842
|
this.page = page;
|
|
2843
|
-
__publicField$
|
|
2844
|
-
__publicField$
|
|
2843
|
+
__publicField$5(this, "saveButton");
|
|
2844
|
+
__publicField$5(this, "header");
|
|
2845
2845
|
this.saveButton = page.locator(".sw-flow-detail__save");
|
|
2846
2846
|
this.header = page.locator("h2");
|
|
2847
2847
|
}
|
|
@@ -2850,24 +2850,24 @@ class FlowBuilderCreate {
|
|
|
2850
2850
|
}
|
|
2851
2851
|
}
|
|
2852
2852
|
|
|
2853
|
-
var __defProp$
|
|
2854
|
-
var __defNormalProp$
|
|
2855
|
-
var __publicField$
|
|
2856
|
-
__defNormalProp$
|
|
2853
|
+
var __defProp$4 = Object.defineProperty;
|
|
2854
|
+
var __defNormalProp$4 = (obj, key, value) => key in obj ? __defProp$4(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2855
|
+
var __publicField$4 = (obj, key, value) => {
|
|
2856
|
+
__defNormalProp$4(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
2857
2857
|
return value;
|
|
2858
2858
|
};
|
|
2859
2859
|
class FlowBuilderListing {
|
|
2860
2860
|
constructor(page) {
|
|
2861
2861
|
this.page = page;
|
|
2862
|
-
__publicField$
|
|
2863
|
-
__publicField$
|
|
2864
|
-
__publicField$
|
|
2865
|
-
__publicField$
|
|
2866
|
-
__publicField$
|
|
2867
|
-
__publicField$
|
|
2868
|
-
__publicField$
|
|
2869
|
-
__publicField$
|
|
2870
|
-
__publicField$
|
|
2862
|
+
__publicField$4(this, "createFlowButton");
|
|
2863
|
+
__publicField$4(this, "firstFlowName");
|
|
2864
|
+
__publicField$4(this, "firstFlowContextButton");
|
|
2865
|
+
__publicField$4(this, "flowContextMenu");
|
|
2866
|
+
__publicField$4(this, "contextMenuDownload");
|
|
2867
|
+
__publicField$4(this, "flowDownloadModal");
|
|
2868
|
+
__publicField$4(this, "downloadFlowButton");
|
|
2869
|
+
__publicField$4(this, "successAlert");
|
|
2870
|
+
__publicField$4(this, "successAlertMessage");
|
|
2871
2871
|
this.createFlowButton = page.locator(".sw-flow-list__create");
|
|
2872
2872
|
this.firstFlowName = page.locator(".sw-data-grid__cell--name a").first();
|
|
2873
2873
|
this.firstFlowContextButton = page.locator(".sw-data-grid__actions-menu").first();
|
|
@@ -2883,18 +2883,18 @@ class FlowBuilderListing {
|
|
|
2883
2883
|
}
|
|
2884
2884
|
}
|
|
2885
2885
|
|
|
2886
|
-
var __defProp$
|
|
2887
|
-
var __defNormalProp$
|
|
2888
|
-
var __publicField$
|
|
2889
|
-
__defNormalProp$
|
|
2886
|
+
var __defProp$3 = Object.defineProperty;
|
|
2887
|
+
var __defNormalProp$3 = (obj, key, value) => key in obj ? __defProp$3(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2888
|
+
var __publicField$3 = (obj, key, value) => {
|
|
2889
|
+
__defNormalProp$3(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
2890
2890
|
return value;
|
|
2891
2891
|
};
|
|
2892
2892
|
class FlowBuilderDetail {
|
|
2893
2893
|
constructor(page) {
|
|
2894
2894
|
this.page = page;
|
|
2895
|
-
__publicField$
|
|
2896
|
-
__publicField$
|
|
2897
|
-
__publicField$
|
|
2895
|
+
__publicField$3(this, "saveButton");
|
|
2896
|
+
__publicField$3(this, "generalTab");
|
|
2897
|
+
__publicField$3(this, "flowTab");
|
|
2898
2898
|
this.saveButton = page.locator(".sw-flow-detail__save");
|
|
2899
2899
|
this.generalTab = page.locator(".sw-flow-detail__tab-general");
|
|
2900
2900
|
this.flowTab = page.locator(".sw-flow-detail__tab-flow");
|
|
@@ -2904,20 +2904,20 @@ class FlowBuilderDetail {
|
|
|
2904
2904
|
}
|
|
2905
2905
|
}
|
|
2906
2906
|
|
|
2907
|
-
var __defProp$
|
|
2908
|
-
var __defNormalProp$
|
|
2909
|
-
var __publicField$
|
|
2910
|
-
__defNormalProp$
|
|
2907
|
+
var __defProp$2 = Object.defineProperty;
|
|
2908
|
+
var __defNormalProp$2 = (obj, key, value) => key in obj ? __defProp$2(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2909
|
+
var __publicField$2 = (obj, key, value) => {
|
|
2910
|
+
__defNormalProp$2(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
2911
2911
|
return value;
|
|
2912
2912
|
};
|
|
2913
2913
|
class DataSharing {
|
|
2914
2914
|
constructor(page) {
|
|
2915
2915
|
this.page = page;
|
|
2916
|
-
__publicField$
|
|
2917
|
-
__publicField$
|
|
2918
|
-
__publicField$
|
|
2919
|
-
__publicField$
|
|
2920
|
-
__publicField$
|
|
2916
|
+
__publicField$2(this, "dataConsentHeadline");
|
|
2917
|
+
__publicField$2(this, "dataSharingSuccessMessageLabel");
|
|
2918
|
+
__publicField$2(this, "dataSharingAgreeButton");
|
|
2919
|
+
__publicField$2(this, "dataSharingDisableButton");
|
|
2920
|
+
__publicField$2(this, "dataSharingTermsAgreementLabel");
|
|
2921
2921
|
this.dataConsentHeadline = page.locator("h3.sw-usage-data-consent-banner__content-headline");
|
|
2922
2922
|
this.dataSharingAgreeButton = page.getByRole("button", { name: "Agree" });
|
|
2923
2923
|
this.dataSharingDisableButton = page.getByRole("button", { name: "Disable data sharing" });
|
|
@@ -2929,23 +2929,23 @@ class DataSharing {
|
|
|
2929
2929
|
}
|
|
2930
2930
|
}
|
|
2931
2931
|
|
|
2932
|
-
var __defProp = Object.defineProperty;
|
|
2933
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2934
|
-
var __publicField = (obj, key, value) => {
|
|
2935
|
-
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
2932
|
+
var __defProp$1 = Object.defineProperty;
|
|
2933
|
+
var __defNormalProp$1 = (obj, key, value) => key in obj ? __defProp$1(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2934
|
+
var __publicField$1 = (obj, key, value) => {
|
|
2935
|
+
__defNormalProp$1(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
2936
2936
|
return value;
|
|
2937
2937
|
};
|
|
2938
2938
|
class Dashboard {
|
|
2939
2939
|
constructor(page) {
|
|
2940
2940
|
this.page = page;
|
|
2941
|
-
__publicField(this, "welcomeHeadline");
|
|
2942
|
-
__publicField(this, "dataSharingConsentBanner");
|
|
2943
|
-
__publicField(this, "dataSharingAgreeButton");
|
|
2944
|
-
__publicField(this, "dataSharingNotAtTheMomentButton");
|
|
2945
|
-
__publicField(this, "dataSharingTermsAgreementLabel");
|
|
2946
|
-
__publicField(this, "dataSharingSettingsLink");
|
|
2947
|
-
__publicField(this, "dataSharingAcceptMessageText");
|
|
2948
|
-
__publicField(this, "dataSharingNotAtTheMomentMessageText");
|
|
2941
|
+
__publicField$1(this, "welcomeHeadline");
|
|
2942
|
+
__publicField$1(this, "dataSharingConsentBanner");
|
|
2943
|
+
__publicField$1(this, "dataSharingAgreeButton");
|
|
2944
|
+
__publicField$1(this, "dataSharingNotAtTheMomentButton");
|
|
2945
|
+
__publicField$1(this, "dataSharingTermsAgreementLabel");
|
|
2946
|
+
__publicField$1(this, "dataSharingSettingsLink");
|
|
2947
|
+
__publicField$1(this, "dataSharingAcceptMessageText");
|
|
2948
|
+
__publicField$1(this, "dataSharingNotAtTheMomentMessageText");
|
|
2949
2949
|
this.welcomeHeadline = page.locator("h1.sw-dashboard-index__welcome-title");
|
|
2950
2950
|
this.dataSharingConsentBanner = page.locator(".sw-usage-data-consent-banner");
|
|
2951
2951
|
this.dataSharingAgreeButton = page.getByRole("button", { name: "Agree" });
|
|
@@ -2971,7 +2971,7 @@ const AdminPageObjects = {
|
|
|
2971
2971
|
Dashboard,
|
|
2972
2972
|
DataSharing
|
|
2973
2973
|
};
|
|
2974
|
-
const test$
|
|
2974
|
+
const test$5 = test$e.extend({
|
|
2975
2975
|
AdminProductDetail: async ({ AdminPage }, use) => {
|
|
2976
2976
|
await use(new ProductDetail(AdminPage));
|
|
2977
2977
|
},
|
|
@@ -3001,7 +3001,7 @@ const test$4 = test$d.extend({
|
|
|
3001
3001
|
}
|
|
3002
3002
|
});
|
|
3003
3003
|
|
|
3004
|
-
const ProductData = test$
|
|
3004
|
+
const ProductData = test$e.extend({
|
|
3005
3005
|
ProductData: async ({ IdProvider, SalesChannelBaseConfig, AdminApiContext, DefaultSalesChannel }, use) => {
|
|
3006
3006
|
const { id: productId, uuid: productUuid } = IdProvider.getIdPair();
|
|
3007
3007
|
const productName = `Product_test_${productId}`;
|
|
@@ -3050,7 +3050,7 @@ const ProductData = test$d.extend({
|
|
|
3050
3050
|
}
|
|
3051
3051
|
});
|
|
3052
3052
|
|
|
3053
|
-
const CategoryData = test$
|
|
3053
|
+
const CategoryData = test$e.extend({
|
|
3054
3054
|
CategoryData: async ({ IdProvider, AdminApiContext, DefaultSalesChannel, ProductData }, use) => {
|
|
3055
3055
|
const { id: categoryId, uuid: categoryUuid } = IdProvider.getIdPair();
|
|
3056
3056
|
const categoryName = `Category-${categoryId}`;
|
|
@@ -3077,7 +3077,7 @@ const CategoryData = test$d.extend({
|
|
|
3077
3077
|
}
|
|
3078
3078
|
});
|
|
3079
3079
|
|
|
3080
|
-
const DigitalProductData = test$
|
|
3080
|
+
const DigitalProductData = test$e.extend({
|
|
3081
3081
|
DigitalProductData: async ({ ProductData, IdProvider, AdminApiContext }, use) => {
|
|
3082
3082
|
const newMediaResource = await AdminApiContext.post("./media?_response", {
|
|
3083
3083
|
data: {
|
|
@@ -3132,7 +3132,7 @@ const DigitalProductData = test$d.extend({
|
|
|
3132
3132
|
}
|
|
3133
3133
|
});
|
|
3134
3134
|
|
|
3135
|
-
const PropertiesData = test$
|
|
3135
|
+
const PropertiesData = test$e.extend({
|
|
3136
3136
|
PropertiesData: async ({ AdminApiContext }, use) => {
|
|
3137
3137
|
const propertyGroupColorResponse = await AdminApiContext.post("property-group?_response=1", {
|
|
3138
3138
|
data: {
|
|
@@ -3182,7 +3182,7 @@ const PropertiesData = test$d.extend({
|
|
|
3182
3182
|
}
|
|
3183
3183
|
});
|
|
3184
3184
|
|
|
3185
|
-
const CartWithProductData = test$
|
|
3185
|
+
const CartWithProductData = test$e.extend({
|
|
3186
3186
|
CartWithProductData: async ({ StoreApiContext, DefaultSalesChannel, ProductData }, use) => {
|
|
3187
3187
|
await StoreApiContext.login(DefaultSalesChannel.customer);
|
|
3188
3188
|
const cartResponse = await StoreApiContext.post("checkout/cart", {
|
|
@@ -3208,7 +3208,7 @@ const CartWithProductData = test$d.extend({
|
|
|
3208
3208
|
}
|
|
3209
3209
|
});
|
|
3210
3210
|
|
|
3211
|
-
const PromotionWithCodeData = test$
|
|
3211
|
+
const PromotionWithCodeData = test$e.extend({
|
|
3212
3212
|
PromotionWithCodeData: async ({ AdminApiContext, DefaultSalesChannel, IdProvider }, use) => {
|
|
3213
3213
|
const promotionCode = `${IdProvider.getIdPair().id}`;
|
|
3214
3214
|
const promotionName = `Test Promotion ${promotionCode}`;
|
|
@@ -3250,7 +3250,7 @@ const PromotionWithCodeData = test$d.extend({
|
|
|
3250
3250
|
}
|
|
3251
3251
|
});
|
|
3252
3252
|
|
|
3253
|
-
const MediaData = test$
|
|
3253
|
+
const MediaData = test$e.extend({
|
|
3254
3254
|
MediaData: async ({ AdminApiContext, IdProvider }, use) => {
|
|
3255
3255
|
const imageId = IdProvider.getIdPair().id;
|
|
3256
3256
|
const imageFilePath = `./tmp/image-${imageId}.png`;
|
|
@@ -3297,7 +3297,7 @@ const MediaData = test$d.extend({
|
|
|
3297
3297
|
}
|
|
3298
3298
|
});
|
|
3299
3299
|
|
|
3300
|
-
const OrderData = test$
|
|
3300
|
+
const OrderData = test$e.extend({
|
|
3301
3301
|
OrderData: async ({ IdProvider, AdminApiContext, SalesChannelBaseConfig, DefaultSalesChannel, ProductData }, use) => {
|
|
3302
3302
|
const requests = {
|
|
3303
3303
|
currencyEUR: getCurrency("EUR", AdminApiContext),
|
|
@@ -3514,7 +3514,7 @@ const OrderData = test$d.extend({
|
|
|
3514
3514
|
}
|
|
3515
3515
|
});
|
|
3516
3516
|
|
|
3517
|
-
const TagData = test$
|
|
3517
|
+
const TagData = test$e.extend({
|
|
3518
3518
|
TagData: async ({ IdProvider, AdminApiContext }, use) => {
|
|
3519
3519
|
const tagUUID = IdProvider.getIdPair().uuid;
|
|
3520
3520
|
const tagId = IdProvider.getIdPair().id;
|
|
@@ -3533,7 +3533,7 @@ const TagData = test$d.extend({
|
|
|
3533
3533
|
}
|
|
3534
3534
|
});
|
|
3535
3535
|
|
|
3536
|
-
const test$
|
|
3536
|
+
const test$4 = mergeTests(
|
|
3537
3537
|
ProductData,
|
|
3538
3538
|
CategoryData,
|
|
3539
3539
|
DigitalProductData,
|
|
@@ -3545,7 +3545,7 @@ const test$3 = mergeTests(
|
|
|
3545
3545
|
TagData
|
|
3546
3546
|
);
|
|
3547
3547
|
|
|
3548
|
-
const SaveProduct = test$
|
|
3548
|
+
const SaveProduct = test$e.extend({
|
|
3549
3549
|
SaveProduct: async ({ ShopAdmin, AdminProductDetail }, use) => {
|
|
3550
3550
|
const task = () => {
|
|
3551
3551
|
return async function SaveProduct2() {
|
|
@@ -3563,11 +3563,28 @@ const SaveProduct = test$d.extend({
|
|
|
3563
3563
|
}
|
|
3564
3564
|
});
|
|
3565
3565
|
|
|
3566
|
-
const
|
|
3567
|
-
|
|
3566
|
+
const ExpectNotification = test$e.extend({
|
|
3567
|
+
ExpectNotification: async ({ ShopAdmin }, use) => {
|
|
3568
|
+
const task = (message, close = true) => {
|
|
3569
|
+
return async function ExpectNotification2() {
|
|
3570
|
+
const notification = ShopAdmin.page.locator(".sw-alert", { hasText: message });
|
|
3571
|
+
await ShopAdmin.expects(notification).toBeVisible();
|
|
3572
|
+
await ShopAdmin.expects(notification).toContainText(message);
|
|
3573
|
+
if (close) {
|
|
3574
|
+
await notification.locator(".sw-alert__close").click();
|
|
3575
|
+
}
|
|
3576
|
+
};
|
|
3577
|
+
};
|
|
3578
|
+
await use(task);
|
|
3579
|
+
}
|
|
3580
|
+
});
|
|
3581
|
+
|
|
3582
|
+
const test$3 = mergeTests(
|
|
3583
|
+
SaveProduct,
|
|
3584
|
+
ExpectNotification
|
|
3568
3585
|
);
|
|
3569
3586
|
|
|
3570
|
-
const Login = test$
|
|
3587
|
+
const Login = test$e.extend({
|
|
3571
3588
|
Login: async ({ ShopCustomer, DefaultSalesChannel, StorefrontAccountLogin, StorefrontAccount }, use) => {
|
|
3572
3589
|
const task = () => {
|
|
3573
3590
|
return async function Login2() {
|
|
@@ -3583,7 +3600,7 @@ const Login = test$d.extend({
|
|
|
3583
3600
|
}
|
|
3584
3601
|
});
|
|
3585
3602
|
|
|
3586
|
-
const Logout = test$
|
|
3603
|
+
const Logout = test$e.extend({
|
|
3587
3604
|
Logout: async ({ ShopCustomer, StorefrontAccountLogin }, use) => {
|
|
3588
3605
|
const task = () => {
|
|
3589
3606
|
return async function Logout2() {
|
|
@@ -3597,7 +3614,7 @@ const Logout = test$d.extend({
|
|
|
3597
3614
|
}
|
|
3598
3615
|
});
|
|
3599
3616
|
|
|
3600
|
-
const Register = test$
|
|
3617
|
+
const Register = test$e.extend({
|
|
3601
3618
|
Register: async ({ StorefrontAccountLogin, AdminApiContext }, use) => {
|
|
3602
3619
|
const registrationData = {
|
|
3603
3620
|
firstName: "Jeff",
|
|
@@ -3640,7 +3657,7 @@ const Register = test$d.extend({
|
|
|
3640
3657
|
}
|
|
3641
3658
|
});
|
|
3642
3659
|
|
|
3643
|
-
const AddProductToCart = test$
|
|
3660
|
+
const AddProductToCart = test$e.extend({
|
|
3644
3661
|
AddProductToCart: async ({ ShopCustomer, StorefrontProductDetail }, use) => {
|
|
3645
3662
|
const task = (ProductData, quantity = "1") => {
|
|
3646
3663
|
return async function AddProductToCart2() {
|
|
@@ -3654,7 +3671,7 @@ const AddProductToCart = test$d.extend({
|
|
|
3654
3671
|
}
|
|
3655
3672
|
});
|
|
3656
3673
|
|
|
3657
|
-
const ProceedFromProductToCheckout = test$
|
|
3674
|
+
const ProceedFromProductToCheckout = test$e.extend({
|
|
3658
3675
|
ProceedFromProductToCheckout: async ({ ShopCustomer, StorefrontProductDetail, StorefrontCheckoutConfirm }, use) => {
|
|
3659
3676
|
const task = () => {
|
|
3660
3677
|
return async function ProceedFromProductToCheckout2() {
|
|
@@ -3666,7 +3683,7 @@ const ProceedFromProductToCheckout = test$d.extend({
|
|
|
3666
3683
|
}
|
|
3667
3684
|
});
|
|
3668
3685
|
|
|
3669
|
-
const ProceedFromCartToCheckout = test$
|
|
3686
|
+
const ProceedFromCartToCheckout = test$e.extend({
|
|
3670
3687
|
ProceedFromCartToCheckout: async ({
|
|
3671
3688
|
ShopCustomer,
|
|
3672
3689
|
StorefrontCheckoutCart,
|
|
@@ -3682,7 +3699,7 @@ const ProceedFromCartToCheckout = test$d.extend({
|
|
|
3682
3699
|
}
|
|
3683
3700
|
});
|
|
3684
3701
|
|
|
3685
|
-
const ConfirmTermsAndConditions = test$
|
|
3702
|
+
const ConfirmTermsAndConditions = test$e.extend({
|
|
3686
3703
|
ConfirmTermsAndConditions: async ({ ShopCustomer, StorefrontCheckoutConfirm }, use) => {
|
|
3687
3704
|
const task = () => {
|
|
3688
3705
|
return async function ConfirmTermsAndConditions2() {
|
|
@@ -3694,7 +3711,7 @@ const ConfirmTermsAndConditions = test$d.extend({
|
|
|
3694
3711
|
}
|
|
3695
3712
|
});
|
|
3696
3713
|
|
|
3697
|
-
const SelectCashOnDeliveryPaymentOption = test$
|
|
3714
|
+
const SelectCashOnDeliveryPaymentOption = test$e.extend({
|
|
3698
3715
|
SelectCashOnDeliveryPaymentOption: async ({ ShopCustomer, StorefrontCheckoutConfirm }, use) => {
|
|
3699
3716
|
const task = () => {
|
|
3700
3717
|
return async function SelectCashOnDeliveryPaymentOption2() {
|
|
@@ -3706,7 +3723,7 @@ const SelectCashOnDeliveryPaymentOption = test$d.extend({
|
|
|
3706
3723
|
}
|
|
3707
3724
|
});
|
|
3708
3725
|
|
|
3709
|
-
const SelectInvoicePaymentOption = test$
|
|
3726
|
+
const SelectInvoicePaymentOption = test$e.extend({
|
|
3710
3727
|
SelectInvoicePaymentOption: async ({ ShopCustomer, StorefrontCheckoutConfirm }, use) => {
|
|
3711
3728
|
const task = () => {
|
|
3712
3729
|
return async function SelectInvoicePaymentOption2() {
|
|
@@ -3718,7 +3735,7 @@ const SelectInvoicePaymentOption = test$d.extend({
|
|
|
3718
3735
|
}
|
|
3719
3736
|
});
|
|
3720
3737
|
|
|
3721
|
-
const SelectPaidInAdvancePaymentOption = test$
|
|
3738
|
+
const SelectPaidInAdvancePaymentOption = test$e.extend({
|
|
3722
3739
|
SelectPaidInAdvancePaymentOption: async ({ ShopCustomer, StorefrontCheckoutConfirm }, use) => {
|
|
3723
3740
|
const task = () => {
|
|
3724
3741
|
return async function SelectPaidInAdvancePaymentOption2() {
|
|
@@ -3730,7 +3747,7 @@ const SelectPaidInAdvancePaymentOption = test$d.extend({
|
|
|
3730
3747
|
}
|
|
3731
3748
|
});
|
|
3732
3749
|
|
|
3733
|
-
const SelectStandardShippingOption = test$
|
|
3750
|
+
const SelectStandardShippingOption = test$e.extend({
|
|
3734
3751
|
SelectStandardShippingOption: async ({ ShopCustomer, StorefrontCheckoutConfirm }, use) => {
|
|
3735
3752
|
const task = () => {
|
|
3736
3753
|
return async function SelectStandardShippingOption2() {
|
|
@@ -3742,7 +3759,7 @@ const SelectStandardShippingOption = test$d.extend({
|
|
|
3742
3759
|
}
|
|
3743
3760
|
});
|
|
3744
3761
|
|
|
3745
|
-
const SelectExpressShippingOption = test$
|
|
3762
|
+
const SelectExpressShippingOption = test$e.extend({
|
|
3746
3763
|
SelectExpressShippingOption: async ({ ShopCustomer, StorefrontCheckoutConfirm }, use) => {
|
|
3747
3764
|
const task = () => {
|
|
3748
3765
|
return async function SelectExpressShippingOption2() {
|
|
@@ -3754,7 +3771,7 @@ const SelectExpressShippingOption = test$d.extend({
|
|
|
3754
3771
|
}
|
|
3755
3772
|
});
|
|
3756
3773
|
|
|
3757
|
-
const SubmitOrder = test$
|
|
3774
|
+
const SubmitOrder = test$e.extend({
|
|
3758
3775
|
SubmitOrder: async ({ ShopCustomer, StorefrontCheckoutConfirm, StorefrontCheckoutFinish }, use) => {
|
|
3759
3776
|
const task = () => {
|
|
3760
3777
|
return async function SubmitOrder2() {
|
|
@@ -3766,7 +3783,7 @@ const SubmitOrder = test$d.extend({
|
|
|
3766
3783
|
}
|
|
3767
3784
|
});
|
|
3768
3785
|
|
|
3769
|
-
const OpenSearchResultPage = test$
|
|
3786
|
+
const OpenSearchResultPage = test$e.extend({
|
|
3770
3787
|
OpenSearchResultPage: async ({ StorefrontSearch }, use) => {
|
|
3771
3788
|
const task = (searchTerm) => {
|
|
3772
3789
|
return async function OpenSearchResultPage2() {
|
|
@@ -3778,7 +3795,7 @@ const OpenSearchResultPage = test$d.extend({
|
|
|
3778
3795
|
}
|
|
3779
3796
|
});
|
|
3780
3797
|
|
|
3781
|
-
const OpenSearchSuggestPage = test$
|
|
3798
|
+
const OpenSearchSuggestPage = test$e.extend({
|
|
3782
3799
|
OpenSearchSuggestPage: async ({ StorefrontSearchSuggest }, use) => {
|
|
3783
3800
|
const task = (searchTerm) => {
|
|
3784
3801
|
return async function OpenSearchSuggestPage2() {
|
|
@@ -3790,7 +3807,7 @@ const OpenSearchSuggestPage = test$d.extend({
|
|
|
3790
3807
|
}
|
|
3791
3808
|
});
|
|
3792
3809
|
|
|
3793
|
-
const ValidateAccessibility = test$
|
|
3810
|
+
const ValidateAccessibility = test$e.extend({
|
|
3794
3811
|
ValidateAccessibility: async ({ ShopCustomer }, use) => {
|
|
3795
3812
|
const task = (pageName, assertViolations = true, createReport = true, ruleTags = ["wcag2a", "wcag2aa", "wcag2aaa", "wcag21a", "wcag21aa", "best-practice"], outputDir = "test-results/AccessibilityReports") => {
|
|
3796
3813
|
return async function ValidateAccessibility2() {
|
|
@@ -3819,7 +3836,7 @@ const ValidateAccessibility = test$d.extend({
|
|
|
3819
3836
|
}
|
|
3820
3837
|
});
|
|
3821
3838
|
|
|
3822
|
-
const test$
|
|
3839
|
+
const test$2 = mergeTests(
|
|
3823
3840
|
Login,
|
|
3824
3841
|
Logout,
|
|
3825
3842
|
Register,
|
|
@@ -3838,18 +3855,121 @@ const test$1 = mergeTests(
|
|
|
3838
3855
|
ValidateAccessibility
|
|
3839
3856
|
);
|
|
3840
3857
|
|
|
3858
|
+
var __defProp = Object.defineProperty;
|
|
3859
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3860
|
+
var __publicField = (obj, key, value) => {
|
|
3861
|
+
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
3862
|
+
return value;
|
|
3863
|
+
};
|
|
3864
|
+
class FeatureService {
|
|
3865
|
+
constructor(apiContext) {
|
|
3866
|
+
__publicField(this, "apiContext");
|
|
3867
|
+
__publicField(this, "features", {});
|
|
3868
|
+
__publicField(this, "resetFeatures", {});
|
|
3869
|
+
this.apiContext = apiContext;
|
|
3870
|
+
}
|
|
3871
|
+
async enable(name) {
|
|
3872
|
+
if (Array.isArray(name)) {
|
|
3873
|
+
for (const n of name) {
|
|
3874
|
+
await this.enable(n);
|
|
3875
|
+
}
|
|
3876
|
+
return;
|
|
3877
|
+
}
|
|
3878
|
+
await this.loadFeatures();
|
|
3879
|
+
if (!this.features[name]) {
|
|
3880
|
+
throw new Error(`Feature flag ${name} does not exist`);
|
|
3881
|
+
}
|
|
3882
|
+
if (this.features[name].active) {
|
|
3883
|
+
return;
|
|
3884
|
+
}
|
|
3885
|
+
if (!this.features[name].toggleable) {
|
|
3886
|
+
throw new Error(`Feature flag ${name} is not toggleable`);
|
|
3887
|
+
}
|
|
3888
|
+
const req = await this.apiContext.post(`_action/feature-flag/enable/${name}`);
|
|
3889
|
+
if (!req.ok()) {
|
|
3890
|
+
throw new Error(`Could not enable feature flag ${name}`);
|
|
3891
|
+
}
|
|
3892
|
+
this.features[name].active = true;
|
|
3893
|
+
if (this.resetFeatures[name] === void 0) {
|
|
3894
|
+
this.resetFeatures[name] = false;
|
|
3895
|
+
} else {
|
|
3896
|
+
delete this.resetFeatures[name];
|
|
3897
|
+
}
|
|
3898
|
+
}
|
|
3899
|
+
async disable(name) {
|
|
3900
|
+
if (Array.isArray(name)) {
|
|
3901
|
+
for (const n of name) {
|
|
3902
|
+
await this.disable(n);
|
|
3903
|
+
}
|
|
3904
|
+
return;
|
|
3905
|
+
}
|
|
3906
|
+
await this.loadFeatures();
|
|
3907
|
+
if (!this.features[name]) {
|
|
3908
|
+
throw new Error(`Feature flag ${name} does not exist`);
|
|
3909
|
+
}
|
|
3910
|
+
if (!this.features[name].active) {
|
|
3911
|
+
return;
|
|
3912
|
+
}
|
|
3913
|
+
if (!this.features[name].toggleable) {
|
|
3914
|
+
throw new Error(`Feature flag ${name} is not toggleable`);
|
|
3915
|
+
}
|
|
3916
|
+
const req = await this.apiContext.post(`_action/feature-flag/disable/${name}`);
|
|
3917
|
+
if (!req.ok()) {
|
|
3918
|
+
throw new Error(`Could not disable feature flag ${name}`);
|
|
3919
|
+
}
|
|
3920
|
+
this.features[name].active = false;
|
|
3921
|
+
if (this.resetFeatures[name] === void 0) {
|
|
3922
|
+
this.resetFeatures[name] = true;
|
|
3923
|
+
} else {
|
|
3924
|
+
delete this.resetFeatures[name];
|
|
3925
|
+
}
|
|
3926
|
+
}
|
|
3927
|
+
async isEnabled(name) {
|
|
3928
|
+
await this.loadFeatures();
|
|
3929
|
+
return this.features[name]?.active ?? false;
|
|
3930
|
+
}
|
|
3931
|
+
async loadFeatures() {
|
|
3932
|
+
if (Object.keys(this.features).length >= 0) {
|
|
3933
|
+
return;
|
|
3934
|
+
}
|
|
3935
|
+
const res = await this.apiContext.get("_action/feature-flag");
|
|
3936
|
+
if (!res.ok()) {
|
|
3937
|
+
throw new Error("Could not load feature flags");
|
|
3938
|
+
}
|
|
3939
|
+
this.features = await res.json();
|
|
3940
|
+
}
|
|
3941
|
+
async cleanup() {
|
|
3942
|
+
for (const [name, reset] of Object.entries(this.resetFeatures)) {
|
|
3943
|
+
if (reset) {
|
|
3944
|
+
await this.enable(name);
|
|
3945
|
+
} else {
|
|
3946
|
+
await this.disable(name);
|
|
3947
|
+
}
|
|
3948
|
+
}
|
|
3949
|
+
}
|
|
3950
|
+
}
|
|
3951
|
+
|
|
3952
|
+
const test$1 = test$e.extend({
|
|
3953
|
+
FeatureService: async ({ AdminApiContext }, use) => {
|
|
3954
|
+
const service = new FeatureService(AdminApiContext);
|
|
3955
|
+
await use(service);
|
|
3956
|
+
await service.cleanup();
|
|
3957
|
+
}
|
|
3958
|
+
});
|
|
3959
|
+
|
|
3841
3960
|
const test = mergeTests(
|
|
3842
|
-
test$
|
|
3961
|
+
test$7,
|
|
3962
|
+
test$c,
|
|
3843
3963
|
test$b,
|
|
3844
3964
|
test$a,
|
|
3845
3965
|
test$9,
|
|
3846
3966
|
test$8,
|
|
3847
|
-
test$
|
|
3967
|
+
test$1,
|
|
3968
|
+
test$6,
|
|
3848
3969
|
test$5,
|
|
3849
3970
|
test$4,
|
|
3850
3971
|
test$3,
|
|
3851
|
-
test$2
|
|
3852
|
-
test$1
|
|
3972
|
+
test$2
|
|
3853
3973
|
);
|
|
3854
3974
|
|
|
3855
3975
|
export { AdminPageObjects, StorefrontPageObjects, TestDataService, createRandomImage, extractIdFromUrl, getCountryId, getCurrency, getDefaultShippingMethodId, getFlowId, getLanguageData, getMediaId, getOrderTransactionId, getPaymentMethodId, getPromotionWithDiscount, getSalutationId, getSnippetSetId, getStateMachineId, getStateMachineStateId, getTaxId, getThemeId, isSaaSInstance, isThemeCompiled, setOrderStatus, test };
|