@shopware-ag/acceptance-test-suite 3.10.0 → 3.11.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 +101 -1
- package/dist/index.d.ts +101 -1
- package/dist/index.mjs +558 -352
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -385,16 +385,16 @@ const test$c = test$e.extend({
|
|
|
385
385
|
]
|
|
386
386
|
});
|
|
387
387
|
|
|
388
|
-
var __defProp$
|
|
389
|
-
var __defNormalProp$
|
|
390
|
-
var __publicField$
|
|
391
|
-
__defNormalProp$
|
|
388
|
+
var __defProp$z = Object.defineProperty;
|
|
389
|
+
var __defNormalProp$z = (obj, key, value) => key in obj ? __defProp$z(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
390
|
+
var __publicField$z = (obj, key, value) => {
|
|
391
|
+
__defNormalProp$z(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
392
392
|
return value;
|
|
393
393
|
};
|
|
394
394
|
const _AdminApiContext = class _AdminApiContext {
|
|
395
395
|
constructor(context, options) {
|
|
396
|
-
__publicField$
|
|
397
|
-
__publicField$
|
|
396
|
+
__publicField$z(this, "context");
|
|
397
|
+
__publicField$z(this, "options");
|
|
398
398
|
this.context = context;
|
|
399
399
|
this.options = options;
|
|
400
400
|
}
|
|
@@ -486,7 +486,7 @@ const _AdminApiContext = class _AdminApiContext {
|
|
|
486
486
|
return this.context.head(url, options);
|
|
487
487
|
}
|
|
488
488
|
};
|
|
489
|
-
__publicField$
|
|
489
|
+
__publicField$z(_AdminApiContext, "defaultOptions", {
|
|
490
490
|
app_url: process.env["APP_URL"],
|
|
491
491
|
client_id: process.env["SHOPWARE_ACCESS_KEY_ID"],
|
|
492
492
|
client_secret: process.env["SHOPWARE_SECRET_ACCESS_KEY"],
|
|
@@ -496,16 +496,16 @@ __publicField$v(_AdminApiContext, "defaultOptions", {
|
|
|
496
496
|
});
|
|
497
497
|
let AdminApiContext = _AdminApiContext;
|
|
498
498
|
|
|
499
|
-
var __defProp$
|
|
500
|
-
var __defNormalProp$
|
|
501
|
-
var __publicField$
|
|
502
|
-
__defNormalProp$
|
|
499
|
+
var __defProp$y = Object.defineProperty;
|
|
500
|
+
var __defNormalProp$y = (obj, key, value) => key in obj ? __defProp$y(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
501
|
+
var __publicField$y = (obj, key, value) => {
|
|
502
|
+
__defNormalProp$y(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
503
503
|
return value;
|
|
504
504
|
};
|
|
505
505
|
const _StoreApiContext = class _StoreApiContext {
|
|
506
506
|
constructor(context, options) {
|
|
507
|
-
__publicField$
|
|
508
|
-
__publicField$
|
|
507
|
+
__publicField$y(this, "context");
|
|
508
|
+
__publicField$y(this, "options");
|
|
509
509
|
this.context = context;
|
|
510
510
|
this.options = options;
|
|
511
511
|
}
|
|
@@ -564,21 +564,21 @@ const _StoreApiContext = class _StoreApiContext {
|
|
|
564
564
|
return this.context.head(url, options);
|
|
565
565
|
}
|
|
566
566
|
};
|
|
567
|
-
__publicField$
|
|
567
|
+
__publicField$y(_StoreApiContext, "defaultOptions", {
|
|
568
568
|
app_url: process.env["APP_URL"],
|
|
569
569
|
ignoreHTTPSErrors: true
|
|
570
570
|
});
|
|
571
571
|
let StoreApiContext = _StoreApiContext;
|
|
572
572
|
|
|
573
|
-
var __defProp$
|
|
574
|
-
var __defNormalProp$
|
|
575
|
-
var __publicField$
|
|
576
|
-
__defNormalProp$
|
|
573
|
+
var __defProp$x = Object.defineProperty;
|
|
574
|
+
var __defNormalProp$x = (obj, key, value) => key in obj ? __defProp$x(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
575
|
+
var __publicField$x = (obj, key, value) => {
|
|
576
|
+
__defNormalProp$x(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
577
577
|
return value;
|
|
578
578
|
};
|
|
579
579
|
class MailpitApiContext {
|
|
580
580
|
constructor(context) {
|
|
581
|
-
__publicField$
|
|
581
|
+
__publicField$x(this, "context");
|
|
582
582
|
this.context = context;
|
|
583
583
|
}
|
|
584
584
|
/**
|
|
@@ -866,17 +866,17 @@ const test$a = test$e.extend({
|
|
|
866
866
|
}
|
|
867
867
|
});
|
|
868
868
|
|
|
869
|
-
var __defProp$
|
|
870
|
-
var __defNormalProp$
|
|
871
|
-
var __publicField$
|
|
872
|
-
__defNormalProp$
|
|
869
|
+
var __defProp$w = Object.defineProperty;
|
|
870
|
+
var __defNormalProp$w = (obj, key, value) => key in obj ? __defProp$w(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
871
|
+
var __publicField$w = (obj, key, value) => {
|
|
872
|
+
__defNormalProp$w(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
873
873
|
return value;
|
|
874
874
|
};
|
|
875
875
|
class Actor {
|
|
876
876
|
constructor(name, page) {
|
|
877
|
-
__publicField$
|
|
878
|
-
__publicField$
|
|
879
|
-
__publicField$
|
|
877
|
+
__publicField$w(this, "page");
|
|
878
|
+
__publicField$w(this, "name");
|
|
879
|
+
__publicField$w(this, "expects", expect);
|
|
880
880
|
this.name = name;
|
|
881
881
|
this.page = page;
|
|
882
882
|
}
|
|
@@ -925,31 +925,31 @@ function createRandomImage(width = 800, height = 600) {
|
|
|
925
925
|
return new Image(width, height, buffer);
|
|
926
926
|
}
|
|
927
927
|
|
|
928
|
-
var __defProp$
|
|
929
|
-
var __defNormalProp$
|
|
930
|
-
var __publicField$
|
|
931
|
-
__defNormalProp$
|
|
928
|
+
var __defProp$v = Object.defineProperty;
|
|
929
|
+
var __defNormalProp$v = (obj, key, value) => key in obj ? __defProp$v(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
930
|
+
var __publicField$v = (obj, key, value) => {
|
|
931
|
+
__defNormalProp$v(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
932
932
|
return value;
|
|
933
933
|
};
|
|
934
934
|
class TestDataService {
|
|
935
935
|
constructor(AdminApiClient, IdProvider, options) {
|
|
936
|
-
__publicField$
|
|
937
|
-
__publicField$
|
|
938
|
-
__publicField$
|
|
939
|
-
__publicField$
|
|
940
|
-
__publicField$
|
|
941
|
-
__publicField$
|
|
942
|
-
__publicField$
|
|
943
|
-
__publicField$
|
|
944
|
-
__publicField$
|
|
945
|
-
__publicField$
|
|
946
|
-
__publicField$
|
|
936
|
+
__publicField$v(this, "AdminApiClient");
|
|
937
|
+
__publicField$v(this, "IdProvider");
|
|
938
|
+
__publicField$v(this, "namePrefix", "Test-");
|
|
939
|
+
__publicField$v(this, "nameSuffix", "");
|
|
940
|
+
__publicField$v(this, "defaultSalesChannel");
|
|
941
|
+
__publicField$v(this, "defaultTaxId");
|
|
942
|
+
__publicField$v(this, "defaultCurrencyId");
|
|
943
|
+
__publicField$v(this, "defaultCategoryId");
|
|
944
|
+
__publicField$v(this, "defaultLanguageId");
|
|
945
|
+
__publicField$v(this, "defaultCountryId");
|
|
946
|
+
__publicField$v(this, "defaultCustomerGroupId");
|
|
947
947
|
/**
|
|
948
948
|
* Configures if an automated cleanup of the data should be executed.
|
|
949
949
|
*
|
|
950
950
|
* @private
|
|
951
951
|
*/
|
|
952
|
-
__publicField$
|
|
952
|
+
__publicField$v(this, "shouldCleanUp", true);
|
|
953
953
|
/**
|
|
954
954
|
* Configuration of higher priority entities for the cleanup operation.
|
|
955
955
|
* These entities will be deleted before others.
|
|
@@ -957,19 +957,19 @@ class TestDataService {
|
|
|
957
957
|
*
|
|
958
958
|
* @private
|
|
959
959
|
*/
|
|
960
|
-
__publicField$
|
|
960
|
+
__publicField$v(this, "highPriorityEntities", ["order", "product"]);
|
|
961
961
|
/**
|
|
962
962
|
* A registry of all created records.
|
|
963
963
|
*
|
|
964
964
|
* @private
|
|
965
965
|
*/
|
|
966
|
-
__publicField$
|
|
966
|
+
__publicField$v(this, "createdRecords", []);
|
|
967
967
|
/**
|
|
968
968
|
* Function that generates combinations from n number of arrays
|
|
969
969
|
* with m number of elements in them.
|
|
970
970
|
* @param array
|
|
971
971
|
*/
|
|
972
|
-
__publicField$
|
|
972
|
+
__publicField$v(this, "combineAll", (array) => {
|
|
973
973
|
const result = [];
|
|
974
974
|
const max = array.length - 1;
|
|
975
975
|
const helper = (tmpArray, i) => {
|
|
@@ -1361,6 +1361,22 @@ class TestDataService {
|
|
|
1361
1361
|
this.addCreatedRecord("rule", rule.id);
|
|
1362
1362
|
return rule;
|
|
1363
1363
|
}
|
|
1364
|
+
/**
|
|
1365
|
+
* Creates a new basic page layout.
|
|
1366
|
+
*
|
|
1367
|
+
* @param cmsPageType - The type of the cms page layout (page/landingpage/product_detail/product_list).
|
|
1368
|
+
* @param overrides - Specific data overrides that will be applied to the cms page layout data struct.
|
|
1369
|
+
*/
|
|
1370
|
+
async createBasicPageLayout(cmsPageType, overrides = {}) {
|
|
1371
|
+
const basicLayout = this.getBasicCmsStruct(cmsPageType, overrides);
|
|
1372
|
+
const layoutResponse = await this.AdminApiClient.post("cms-page?_response=detail", {
|
|
1373
|
+
data: basicLayout
|
|
1374
|
+
});
|
|
1375
|
+
expect(layoutResponse.ok()).toBeTruthy();
|
|
1376
|
+
const { data: layout } = await layoutResponse.json();
|
|
1377
|
+
this.addCreatedRecord("cms_page", layout.id);
|
|
1378
|
+
return layout;
|
|
1379
|
+
}
|
|
1364
1380
|
/**
|
|
1365
1381
|
* Creates a payment method with one randomly generated image.
|
|
1366
1382
|
*
|
|
@@ -2353,6 +2369,16 @@ class TestDataService {
|
|
|
2353
2369
|
};
|
|
2354
2370
|
return Object.assign({}, basicPromotion, overrides);
|
|
2355
2371
|
}
|
|
2372
|
+
getBasicCmsStruct(cmsType, overrides) {
|
|
2373
|
+
const cmsPageUuid = this.IdProvider.getIdPair().uuid;
|
|
2374
|
+
const cmsPageName = `${this.namePrefix}Cms-${cmsPageUuid}${this.nameSuffix}`;
|
|
2375
|
+
const basicCmsPage = {
|
|
2376
|
+
id: cmsPageUuid,
|
|
2377
|
+
type: cmsType,
|
|
2378
|
+
name: cmsPageName
|
|
2379
|
+
};
|
|
2380
|
+
return Object.assign({}, basicCmsPage, overrides);
|
|
2381
|
+
}
|
|
2356
2382
|
}
|
|
2357
2383
|
|
|
2358
2384
|
const test$8 = test$e.extend({
|
|
@@ -2371,16 +2397,16 @@ const test$8 = test$e.extend({
|
|
|
2371
2397
|
}
|
|
2372
2398
|
});
|
|
2373
2399
|
|
|
2374
|
-
var __defProp$
|
|
2375
|
-
var __defNormalProp$
|
|
2376
|
-
var __publicField$
|
|
2377
|
-
__defNormalProp$
|
|
2400
|
+
var __defProp$u = Object.defineProperty;
|
|
2401
|
+
var __defNormalProp$u = (obj, key, value) => key in obj ? __defProp$u(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2402
|
+
var __publicField$u = (obj, key, value) => {
|
|
2403
|
+
__defNormalProp$u(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
2378
2404
|
return value;
|
|
2379
2405
|
};
|
|
2380
2406
|
class IdProvider {
|
|
2381
2407
|
constructor(workerIndex, seed) {
|
|
2382
|
-
__publicField$
|
|
2383
|
-
__publicField$
|
|
2408
|
+
__publicField$u(this, "workerIndex");
|
|
2409
|
+
__publicField$u(this, "seed");
|
|
2384
2410
|
this.workerIndex = workerIndex;
|
|
2385
2411
|
this.seed = seed;
|
|
2386
2412
|
}
|
|
@@ -2454,17 +2480,17 @@ const test$7 = test$e.extend({
|
|
|
2454
2480
|
]
|
|
2455
2481
|
});
|
|
2456
2482
|
|
|
2457
|
-
var __defProp$
|
|
2458
|
-
var __defNormalProp$
|
|
2459
|
-
var __publicField$
|
|
2460
|
-
__defNormalProp$
|
|
2483
|
+
var __defProp$t = Object.defineProperty;
|
|
2484
|
+
var __defNormalProp$t = (obj, key, value) => key in obj ? __defProp$t(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2485
|
+
var __publicField$t = (obj, key, value) => {
|
|
2486
|
+
__defNormalProp$t(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
2461
2487
|
return value;
|
|
2462
2488
|
};
|
|
2463
2489
|
class Home {
|
|
2464
2490
|
constructor(page) {
|
|
2465
2491
|
this.page = page;
|
|
2466
|
-
__publicField$
|
|
2467
|
-
__publicField$
|
|
2492
|
+
__publicField$t(this, "productImages");
|
|
2493
|
+
__publicField$t(this, "productListItems");
|
|
2468
2494
|
this.productImages = page.locator(".product-image-link");
|
|
2469
2495
|
this.productListItems = page.getByRole("listitem");
|
|
2470
2496
|
}
|
|
@@ -2473,26 +2499,26 @@ class Home {
|
|
|
2473
2499
|
}
|
|
2474
2500
|
}
|
|
2475
2501
|
|
|
2476
|
-
var __defProp$
|
|
2477
|
-
var __defNormalProp$
|
|
2478
|
-
var __publicField$
|
|
2479
|
-
__defNormalProp$
|
|
2502
|
+
var __defProp$s = Object.defineProperty;
|
|
2503
|
+
var __defNormalProp$s = (obj, key, value) => key in obj ? __defProp$s(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2504
|
+
var __publicField$s = (obj, key, value) => {
|
|
2505
|
+
__defNormalProp$s(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
2480
2506
|
return value;
|
|
2481
2507
|
};
|
|
2482
2508
|
let ProductDetail$1 = class ProductDetail {
|
|
2483
2509
|
constructor(page) {
|
|
2484
2510
|
this.page = page;
|
|
2485
|
-
__publicField$
|
|
2486
|
-
__publicField$
|
|
2487
|
-
__publicField$
|
|
2488
|
-
__publicField$
|
|
2489
|
-
__publicField$
|
|
2490
|
-
__publicField$
|
|
2491
|
-
__publicField$
|
|
2492
|
-
__publicField$
|
|
2493
|
-
__publicField$
|
|
2494
|
-
__publicField$
|
|
2495
|
-
__publicField$
|
|
2511
|
+
__publicField$s(this, "addToCartButton");
|
|
2512
|
+
__publicField$s(this, "quantitySelect");
|
|
2513
|
+
__publicField$s(this, "productSingleImage");
|
|
2514
|
+
__publicField$s(this, "productSinglePrice");
|
|
2515
|
+
__publicField$s(this, "productPriceRangesRow");
|
|
2516
|
+
__publicField$s(this, "offCanvasCartTitle");
|
|
2517
|
+
__publicField$s(this, "offCanvasCart");
|
|
2518
|
+
__publicField$s(this, "offCanvasCartGoToCheckoutButton");
|
|
2519
|
+
__publicField$s(this, "offCanvasLineItemImages");
|
|
2520
|
+
__publicField$s(this, "offCanvasSummaryTotalPrice");
|
|
2521
|
+
__publicField$s(this, "offCanvas");
|
|
2496
2522
|
this.addToCartButton = page.getByRole("button", { name: "Add to shopping cart" });
|
|
2497
2523
|
this.quantitySelect = page.getByLabel("Quantity", { exact: true });
|
|
2498
2524
|
this.productSingleImage = page.locator(".gallery-slider-single-image");
|
|
@@ -2514,18 +2540,18 @@ let ProductDetail$1 = class ProductDetail {
|
|
|
2514
2540
|
}
|
|
2515
2541
|
};
|
|
2516
2542
|
|
|
2517
|
-
var __defProp$
|
|
2518
|
-
var __defNormalProp$
|
|
2519
|
-
var __publicField$
|
|
2520
|
-
__defNormalProp$
|
|
2543
|
+
var __defProp$r = Object.defineProperty;
|
|
2544
|
+
var __defNormalProp$r = (obj, key, value) => key in obj ? __defProp$r(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2545
|
+
var __publicField$r = (obj, key, value) => {
|
|
2546
|
+
__defNormalProp$r(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
2521
2547
|
return value;
|
|
2522
2548
|
};
|
|
2523
2549
|
class Category {
|
|
2524
2550
|
constructor(page) {
|
|
2525
2551
|
this.page = page;
|
|
2526
|
-
__publicField$
|
|
2527
|
-
__publicField$
|
|
2528
|
-
__publicField$
|
|
2552
|
+
__publicField$r(this, "sortingSelect");
|
|
2553
|
+
__publicField$r(this, "firstProductBuyButton");
|
|
2554
|
+
__publicField$r(this, "noProductsFoundAlert");
|
|
2529
2555
|
this.sortingSelect = page.getByLabel("Sorting");
|
|
2530
2556
|
this.firstProductBuyButton = page.getByRole("button", { name: "Add to shopping cart" }).first();
|
|
2531
2557
|
this.noProductsFoundAlert = page.getByText("No products found.");
|
|
@@ -2535,24 +2561,24 @@ class Category {
|
|
|
2535
2561
|
}
|
|
2536
2562
|
}
|
|
2537
2563
|
|
|
2538
|
-
var __defProp$
|
|
2539
|
-
var __defNormalProp$
|
|
2540
|
-
var __publicField$
|
|
2541
|
-
__defNormalProp$
|
|
2564
|
+
var __defProp$q = Object.defineProperty;
|
|
2565
|
+
var __defNormalProp$q = (obj, key, value) => key in obj ? __defProp$q(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2566
|
+
var __publicField$q = (obj, key, value) => {
|
|
2567
|
+
__defNormalProp$q(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
2542
2568
|
return value;
|
|
2543
2569
|
};
|
|
2544
2570
|
class CheckoutCart {
|
|
2545
2571
|
constructor(page) {
|
|
2546
2572
|
this.page = page;
|
|
2547
|
-
__publicField$
|
|
2548
|
-
__publicField$
|
|
2549
|
-
__publicField$
|
|
2550
|
-
__publicField$
|
|
2551
|
-
__publicField$
|
|
2552
|
-
__publicField$
|
|
2553
|
-
__publicField$
|
|
2554
|
-
__publicField$
|
|
2555
|
-
__publicField$
|
|
2573
|
+
__publicField$q(this, "headline");
|
|
2574
|
+
__publicField$q(this, "goToCheckoutButton");
|
|
2575
|
+
__publicField$q(this, "enterDiscountInput");
|
|
2576
|
+
__publicField$q(this, "grandTotalPrice");
|
|
2577
|
+
__publicField$q(this, "emptyCartAlert");
|
|
2578
|
+
__publicField$q(this, "stockReachedAlert");
|
|
2579
|
+
__publicField$q(this, "cartLineItemImages");
|
|
2580
|
+
__publicField$q(this, "unitPriceInfo");
|
|
2581
|
+
__publicField$q(this, "cartQuantityNumber");
|
|
2556
2582
|
this.headline = page.getByRole("heading", { name: "Shopping cart" });
|
|
2557
2583
|
this.goToCheckoutButton = page.getByRole("link", { name: "Go to checkout" });
|
|
2558
2584
|
this.enterDiscountInput = page.getByLabel("Discount code");
|
|
@@ -2593,25 +2619,25 @@ class CheckoutCart {
|
|
|
2593
2619
|
}
|
|
2594
2620
|
}
|
|
2595
2621
|
|
|
2596
|
-
var __defProp$
|
|
2597
|
-
var __defNormalProp$
|
|
2598
|
-
var __publicField$
|
|
2599
|
-
__defNormalProp$
|
|
2622
|
+
var __defProp$p = Object.defineProperty;
|
|
2623
|
+
var __defNormalProp$p = (obj, key, value) => key in obj ? __defProp$p(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2624
|
+
var __publicField$p = (obj, key, value) => {
|
|
2625
|
+
__defNormalProp$p(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
2600
2626
|
return value;
|
|
2601
2627
|
};
|
|
2602
2628
|
class OffCanvasCart {
|
|
2603
2629
|
constructor(page) {
|
|
2604
2630
|
this.page = page;
|
|
2605
|
-
__publicField$
|
|
2606
|
-
__publicField$
|
|
2607
|
-
__publicField$
|
|
2608
|
-
__publicField$
|
|
2609
|
-
__publicField$
|
|
2610
|
-
__publicField$
|
|
2611
|
-
__publicField$
|
|
2612
|
-
__publicField$
|
|
2613
|
-
__publicField$
|
|
2614
|
-
__publicField$
|
|
2631
|
+
__publicField$p(this, "headline");
|
|
2632
|
+
__publicField$p(this, "itemCount");
|
|
2633
|
+
__publicField$p(this, "goToCheckoutButton");
|
|
2634
|
+
__publicField$p(this, "goToCartButton");
|
|
2635
|
+
__publicField$p(this, "continueShoppingButton");
|
|
2636
|
+
__publicField$p(this, "enterDiscountInput");
|
|
2637
|
+
__publicField$p(this, "submitDiscountButton");
|
|
2638
|
+
__publicField$p(this, "subTotalPrice");
|
|
2639
|
+
__publicField$p(this, "shippingCosts");
|
|
2640
|
+
__publicField$p(this, "cartQuantityNumber");
|
|
2615
2641
|
this.headline = page.getByRole("heading", { name: "Shopping cart" });
|
|
2616
2642
|
this.itemCount = page.locator(".offcanvas-cart-header-count");
|
|
2617
2643
|
this.goToCheckoutButton = page.getByRole("link", { name: "Go to checkout" });
|
|
@@ -2653,35 +2679,35 @@ class OffCanvasCart {
|
|
|
2653
2679
|
}
|
|
2654
2680
|
}
|
|
2655
2681
|
|
|
2656
|
-
var __defProp$
|
|
2657
|
-
var __defNormalProp$
|
|
2658
|
-
var __publicField$
|
|
2659
|
-
__defNormalProp$
|
|
2682
|
+
var __defProp$o = Object.defineProperty;
|
|
2683
|
+
var __defNormalProp$o = (obj, key, value) => key in obj ? __defProp$o(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2684
|
+
var __publicField$o = (obj, key, value) => {
|
|
2685
|
+
__defNormalProp$o(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
2660
2686
|
return value;
|
|
2661
2687
|
};
|
|
2662
2688
|
class CheckoutConfirm {
|
|
2663
2689
|
constructor(page) {
|
|
2664
2690
|
this.page = page;
|
|
2665
|
-
__publicField$
|
|
2666
|
-
__publicField$
|
|
2667
|
-
__publicField$
|
|
2668
|
-
__publicField$
|
|
2669
|
-
__publicField$
|
|
2691
|
+
__publicField$o(this, "headline");
|
|
2692
|
+
__publicField$o(this, "termsAndConditionsCheckbox");
|
|
2693
|
+
__publicField$o(this, "immediateAccessToDigitalProductCheckbox");
|
|
2694
|
+
__publicField$o(this, "grandTotalPrice");
|
|
2695
|
+
__publicField$o(this, "submitOrderButton");
|
|
2670
2696
|
/**
|
|
2671
2697
|
* Payment options
|
|
2672
2698
|
*/
|
|
2673
|
-
__publicField$
|
|
2674
|
-
__publicField$
|
|
2675
|
-
__publicField$
|
|
2699
|
+
__publicField$o(this, "paymentCashOnDelivery");
|
|
2700
|
+
__publicField$o(this, "paymentPaidInAdvance");
|
|
2701
|
+
__publicField$o(this, "paymentInvoice");
|
|
2676
2702
|
/**
|
|
2677
2703
|
* Shipping options
|
|
2678
2704
|
*/
|
|
2679
|
-
__publicField$
|
|
2680
|
-
__publicField$
|
|
2705
|
+
__publicField$o(this, "shippingStandard");
|
|
2706
|
+
__publicField$o(this, "shippingExpress");
|
|
2681
2707
|
/**
|
|
2682
2708
|
* Product details
|
|
2683
2709
|
*/
|
|
2684
|
-
__publicField$
|
|
2710
|
+
__publicField$o(this, "cartLineItemImages");
|
|
2685
2711
|
this.headline = page.getByRole("heading", { name: "Complete order" });
|
|
2686
2712
|
this.termsAndConditionsCheckbox = page.getByLabel("I have read and accepted the general terms and conditions.");
|
|
2687
2713
|
this.immediateAccessToDigitalProductCheckbox = page.getByLabel("I want immediate access to the digital content and I acknowledge that thereby I waive my right to cancel.");
|
|
@@ -2699,20 +2725,20 @@ class CheckoutConfirm {
|
|
|
2699
2725
|
}
|
|
2700
2726
|
}
|
|
2701
2727
|
|
|
2702
|
-
var __defProp$
|
|
2703
|
-
var __defNormalProp$
|
|
2704
|
-
var __publicField$
|
|
2705
|
-
__defNormalProp$
|
|
2728
|
+
var __defProp$n = Object.defineProperty;
|
|
2729
|
+
var __defNormalProp$n = (obj, key, value) => key in obj ? __defProp$n(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2730
|
+
var __publicField$n = (obj, key, value) => {
|
|
2731
|
+
__defNormalProp$n(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
2706
2732
|
return value;
|
|
2707
2733
|
};
|
|
2708
2734
|
class CheckoutFinish {
|
|
2709
2735
|
constructor(page) {
|
|
2710
2736
|
this.page = page;
|
|
2711
|
-
__publicField$
|
|
2712
|
-
__publicField$
|
|
2713
|
-
__publicField$
|
|
2714
|
-
__publicField$
|
|
2715
|
-
__publicField$
|
|
2737
|
+
__publicField$n(this, "headline");
|
|
2738
|
+
__publicField$n(this, "orderNumberText");
|
|
2739
|
+
__publicField$n(this, "grandTotalPrice");
|
|
2740
|
+
__publicField$n(this, "cartLineItemImages");
|
|
2741
|
+
__publicField$n(this, "orderNumberRegex", /Your order number: #(\d+)/);
|
|
2716
2742
|
this.headline = page.getByRole("heading", { name: "Thank you for your order" });
|
|
2717
2743
|
this.orderNumberText = page.getByText(this.orderNumberRegex);
|
|
2718
2744
|
this.grandTotalPrice = page.locator('dt:has-text("Grand total") + dd');
|
|
@@ -2740,16 +2766,16 @@ class CheckoutFinish {
|
|
|
2740
2766
|
}
|
|
2741
2767
|
}
|
|
2742
2768
|
|
|
2743
|
-
var __defProp$
|
|
2744
|
-
var __defNormalProp$
|
|
2745
|
-
var __publicField$
|
|
2746
|
-
__defNormalProp$
|
|
2769
|
+
var __defProp$m = Object.defineProperty;
|
|
2770
|
+
var __defNormalProp$m = (obj, key, value) => key in obj ? __defProp$m(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2771
|
+
var __publicField$m = (obj, key, value) => {
|
|
2772
|
+
__defNormalProp$m(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
2747
2773
|
return value;
|
|
2748
2774
|
};
|
|
2749
2775
|
class CheckoutRegister {
|
|
2750
2776
|
constructor(page) {
|
|
2751
2777
|
this.page = page;
|
|
2752
|
-
__publicField$
|
|
2778
|
+
__publicField$m(this, "cartLineItemImages");
|
|
2753
2779
|
this.cartLineItemImages = page.locator(".line-item-img-link");
|
|
2754
2780
|
}
|
|
2755
2781
|
url() {
|
|
@@ -2757,22 +2783,22 @@ class CheckoutRegister {
|
|
|
2757
2783
|
}
|
|
2758
2784
|
}
|
|
2759
2785
|
|
|
2760
|
-
var __defProp$
|
|
2761
|
-
var __defNormalProp$
|
|
2762
|
-
var __publicField$
|
|
2763
|
-
__defNormalProp$
|
|
2786
|
+
var __defProp$l = Object.defineProperty;
|
|
2787
|
+
var __defNormalProp$l = (obj, key, value) => key in obj ? __defProp$l(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2788
|
+
var __publicField$l = (obj, key, value) => {
|
|
2789
|
+
__defNormalProp$l(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
2764
2790
|
return value;
|
|
2765
2791
|
};
|
|
2766
2792
|
class Account {
|
|
2767
2793
|
constructor(page) {
|
|
2768
2794
|
this.page = page;
|
|
2769
|
-
__publicField$
|
|
2770
|
-
__publicField$
|
|
2771
|
-
__publicField$
|
|
2772
|
-
__publicField$
|
|
2773
|
-
__publicField$
|
|
2774
|
-
__publicField$
|
|
2775
|
-
__publicField$
|
|
2795
|
+
__publicField$l(this, "headline");
|
|
2796
|
+
__publicField$l(this, "personalDataCardTitle");
|
|
2797
|
+
__publicField$l(this, "paymentMethodCardTitle");
|
|
2798
|
+
__publicField$l(this, "billingAddressCardTitle");
|
|
2799
|
+
__publicField$l(this, "shippingAddressCardTitle");
|
|
2800
|
+
__publicField$l(this, "newsletterCheckbox");
|
|
2801
|
+
__publicField$l(this, "newsletterRegistrationSuccessMessage");
|
|
2776
2802
|
this.headline = page.getByRole("heading", { name: "Overview" });
|
|
2777
2803
|
this.personalDataCardTitle = page.getByRole("heading", { name: "Personal data" });
|
|
2778
2804
|
this.paymentMethodCardTitle = page.getByRole("heading", { name: "Default payment method" });
|
|
@@ -2786,32 +2812,32 @@ class Account {
|
|
|
2786
2812
|
}
|
|
2787
2813
|
}
|
|
2788
2814
|
|
|
2789
|
-
var __defProp$
|
|
2790
|
-
var __defNormalProp$
|
|
2791
|
-
var __publicField$
|
|
2792
|
-
__defNormalProp$
|
|
2815
|
+
var __defProp$k = Object.defineProperty;
|
|
2816
|
+
var __defNormalProp$k = (obj, key, value) => key in obj ? __defProp$k(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2817
|
+
var __publicField$k = (obj, key, value) => {
|
|
2818
|
+
__defNormalProp$k(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
2793
2819
|
return value;
|
|
2794
2820
|
};
|
|
2795
2821
|
class AccountLogin {
|
|
2796
2822
|
constructor(page) {
|
|
2797
2823
|
this.page = page;
|
|
2798
|
-
__publicField$
|
|
2799
|
-
__publicField$
|
|
2800
|
-
__publicField$
|
|
2801
|
-
__publicField$
|
|
2802
|
-
__publicField$
|
|
2824
|
+
__publicField$k(this, "emailInput");
|
|
2825
|
+
__publicField$k(this, "passwordInput");
|
|
2826
|
+
__publicField$k(this, "loginButton");
|
|
2827
|
+
__publicField$k(this, "logoutLink");
|
|
2828
|
+
__publicField$k(this, "successAlert");
|
|
2803
2829
|
// Inputs for registration
|
|
2804
|
-
__publicField$
|
|
2805
|
-
__publicField$
|
|
2806
|
-
__publicField$
|
|
2807
|
-
__publicField$
|
|
2808
|
-
__publicField$
|
|
2809
|
-
__publicField$
|
|
2810
|
-
__publicField$
|
|
2811
|
-
__publicField$
|
|
2812
|
-
__publicField$
|
|
2813
|
-
__publicField$
|
|
2814
|
-
__publicField$
|
|
2830
|
+
__publicField$k(this, "personalFormArea");
|
|
2831
|
+
__publicField$k(this, "billingAddressFormArea");
|
|
2832
|
+
__publicField$k(this, "firstNameInput");
|
|
2833
|
+
__publicField$k(this, "lastNameInput");
|
|
2834
|
+
__publicField$k(this, "registerEmailInput");
|
|
2835
|
+
__publicField$k(this, "registerPasswordInput");
|
|
2836
|
+
__publicField$k(this, "streetAddressInput");
|
|
2837
|
+
__publicField$k(this, "cityInput");
|
|
2838
|
+
__publicField$k(this, "countryInput");
|
|
2839
|
+
__publicField$k(this, "postalCodeInput");
|
|
2840
|
+
__publicField$k(this, "registerButton");
|
|
2815
2841
|
this.emailInput = page.getByLabel("Your email address");
|
|
2816
2842
|
this.passwordInput = page.getByLabel("Your password");
|
|
2817
2843
|
this.loginButton = page.getByRole("button", { name: "Log in" });
|
|
@@ -2835,29 +2861,29 @@ class AccountLogin {
|
|
|
2835
2861
|
}
|
|
2836
2862
|
}
|
|
2837
2863
|
|
|
2838
|
-
var __defProp$
|
|
2839
|
-
var __defNormalProp$
|
|
2840
|
-
var __publicField$
|
|
2841
|
-
__defNormalProp$
|
|
2864
|
+
var __defProp$j = Object.defineProperty;
|
|
2865
|
+
var __defNormalProp$j = (obj, key, value) => key in obj ? __defProp$j(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2866
|
+
var __publicField$j = (obj, key, value) => {
|
|
2867
|
+
__defNormalProp$j(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
2842
2868
|
return value;
|
|
2843
2869
|
};
|
|
2844
2870
|
class AccountProfile {
|
|
2845
2871
|
constructor(page) {
|
|
2846
2872
|
this.page = page;
|
|
2847
|
-
__publicField$
|
|
2848
|
-
__publicField$
|
|
2849
|
-
__publicField$
|
|
2850
|
-
__publicField$
|
|
2851
|
-
__publicField$
|
|
2852
|
-
__publicField$
|
|
2853
|
-
__publicField$
|
|
2854
|
-
__publicField$
|
|
2855
|
-
__publicField$
|
|
2856
|
-
__publicField$
|
|
2857
|
-
__publicField$
|
|
2858
|
-
__publicField$
|
|
2859
|
-
__publicField$
|
|
2860
|
-
__publicField$
|
|
2873
|
+
__publicField$j(this, "salutationSelect");
|
|
2874
|
+
__publicField$j(this, "firstNameInput");
|
|
2875
|
+
__publicField$j(this, "lastNameInput");
|
|
2876
|
+
__publicField$j(this, "saveProfileButton");
|
|
2877
|
+
__publicField$j(this, "changeEmailButton");
|
|
2878
|
+
__publicField$j(this, "emailAddressInput");
|
|
2879
|
+
__publicField$j(this, "emailAddressConfirmInput");
|
|
2880
|
+
__publicField$j(this, "emailConfirmPasswordInput");
|
|
2881
|
+
__publicField$j(this, "saveEmailAddressButton");
|
|
2882
|
+
__publicField$j(this, "changePasswordButton");
|
|
2883
|
+
__publicField$j(this, "newPasswordInput");
|
|
2884
|
+
__publicField$j(this, "newPasswordConfirmInput");
|
|
2885
|
+
__publicField$j(this, "currentPasswordInput");
|
|
2886
|
+
__publicField$j(this, "saveNewPasswordButton");
|
|
2861
2887
|
this.salutationSelect = page.getByLabel("Salutation");
|
|
2862
2888
|
this.firstNameInput = page.getByPlaceholder("Enter first name...");
|
|
2863
2889
|
this.lastNameInput = page.getByPlaceholder("Enter last name...");
|
|
@@ -2878,18 +2904,18 @@ class AccountProfile {
|
|
|
2878
2904
|
}
|
|
2879
2905
|
}
|
|
2880
2906
|
|
|
2881
|
-
var __defProp$
|
|
2882
|
-
var __defNormalProp$
|
|
2883
|
-
var __publicField$
|
|
2884
|
-
__defNormalProp$
|
|
2907
|
+
var __defProp$i = Object.defineProperty;
|
|
2908
|
+
var __defNormalProp$i = (obj, key, value) => key in obj ? __defProp$i(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2909
|
+
var __publicField$i = (obj, key, value) => {
|
|
2910
|
+
__defNormalProp$i(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
2885
2911
|
return value;
|
|
2886
2912
|
};
|
|
2887
2913
|
class AccountOrder {
|
|
2888
2914
|
constructor(page) {
|
|
2889
2915
|
this.page = page;
|
|
2890
|
-
__publicField$
|
|
2891
|
-
__publicField$
|
|
2892
|
-
__publicField$
|
|
2916
|
+
__publicField$i(this, "cartLineItemImages");
|
|
2917
|
+
__publicField$i(this, "orderExpandButton");
|
|
2918
|
+
__publicField$i(this, "digitalProductDownloadButton");
|
|
2893
2919
|
this.orderExpandButton = page.getByRole("button", { name: /Expand|Show details/ }).first();
|
|
2894
2920
|
this.cartLineItemImages = page.locator(".line-item-img-link");
|
|
2895
2921
|
this.digitalProductDownloadButton = page.getByRole("link", { name: "Download" }).first();
|
|
@@ -2899,20 +2925,20 @@ class AccountOrder {
|
|
|
2899
2925
|
}
|
|
2900
2926
|
}
|
|
2901
2927
|
|
|
2902
|
-
var __defProp$
|
|
2903
|
-
var __defNormalProp$
|
|
2904
|
-
var __publicField$
|
|
2905
|
-
__defNormalProp$
|
|
2928
|
+
var __defProp$h = Object.defineProperty;
|
|
2929
|
+
var __defNormalProp$h = (obj, key, value) => key in obj ? __defProp$h(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2930
|
+
var __publicField$h = (obj, key, value) => {
|
|
2931
|
+
__defNormalProp$h(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
2906
2932
|
return value;
|
|
2907
2933
|
};
|
|
2908
2934
|
class AccountAddresses {
|
|
2909
2935
|
constructor(page) {
|
|
2910
2936
|
this.page = page;
|
|
2911
|
-
__publicField$
|
|
2912
|
-
__publicField$
|
|
2913
|
-
__publicField$
|
|
2914
|
-
__publicField$
|
|
2915
|
-
__publicField$
|
|
2937
|
+
__publicField$h(this, "addNewAddressButton");
|
|
2938
|
+
__publicField$h(this, "editBillingAddressButton");
|
|
2939
|
+
__publicField$h(this, "editShippingAddressButton");
|
|
2940
|
+
__publicField$h(this, "useDefaultBillingAddressButton");
|
|
2941
|
+
__publicField$h(this, "useDefaultShippingAddressButton");
|
|
2916
2942
|
this.addNewAddressButton = page.getByRole("link", { name: /Add (new )?address/ });
|
|
2917
2943
|
this.editBillingAddressButton = page.getByRole("link", { name: "Edit address" }).first();
|
|
2918
2944
|
this.editShippingAddressButton = page.getByRole("link", { name: "Edit address" }).nth(1);
|
|
@@ -2924,19 +2950,19 @@ class AccountAddresses {
|
|
|
2924
2950
|
}
|
|
2925
2951
|
}
|
|
2926
2952
|
|
|
2927
|
-
var __defProp$
|
|
2928
|
-
var __defNormalProp$
|
|
2929
|
-
var __publicField$
|
|
2930
|
-
__defNormalProp$
|
|
2953
|
+
var __defProp$g = Object.defineProperty;
|
|
2954
|
+
var __defNormalProp$g = (obj, key, value) => key in obj ? __defProp$g(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2955
|
+
var __publicField$g = (obj, key, value) => {
|
|
2956
|
+
__defNormalProp$g(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
2931
2957
|
return value;
|
|
2932
2958
|
};
|
|
2933
2959
|
class AccountPayment {
|
|
2934
2960
|
constructor(page) {
|
|
2935
2961
|
this.page = page;
|
|
2936
|
-
__publicField$
|
|
2937
|
-
__publicField$
|
|
2938
|
-
__publicField$
|
|
2939
|
-
__publicField$
|
|
2962
|
+
__publicField$g(this, "cashOnDeliveryOption");
|
|
2963
|
+
__publicField$g(this, "paidInAdvanceOption");
|
|
2964
|
+
__publicField$g(this, "invoiceOption");
|
|
2965
|
+
__publicField$g(this, "changeDefaultPaymentButton");
|
|
2940
2966
|
this.cashOnDeliveryOption = page.getByLabel("Cash on delivery");
|
|
2941
2967
|
this.paidInAdvanceOption = page.getByLabel("Paid in advance");
|
|
2942
2968
|
this.invoiceOption = page.getByLabel("Invoice");
|
|
@@ -2947,17 +2973,17 @@ class AccountPayment {
|
|
|
2947
2973
|
}
|
|
2948
2974
|
}
|
|
2949
2975
|
|
|
2950
|
-
var __defProp$
|
|
2951
|
-
var __defNormalProp$
|
|
2952
|
-
var __publicField$
|
|
2953
|
-
__defNormalProp$
|
|
2976
|
+
var __defProp$f = Object.defineProperty;
|
|
2977
|
+
var __defNormalProp$f = (obj, key, value) => key in obj ? __defProp$f(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2978
|
+
var __publicField$f = (obj, key, value) => {
|
|
2979
|
+
__defNormalProp$f(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
2954
2980
|
return value;
|
|
2955
2981
|
};
|
|
2956
2982
|
class Search {
|
|
2957
2983
|
constructor(page) {
|
|
2958
2984
|
this.page = page;
|
|
2959
|
-
__publicField$
|
|
2960
|
-
__publicField$
|
|
2985
|
+
__publicField$f(this, "headline");
|
|
2986
|
+
__publicField$f(this, "productImages");
|
|
2961
2987
|
this.headline = page.locator("h1.search-headline");
|
|
2962
2988
|
this.productImages = page.locator(".product-image-link");
|
|
2963
2989
|
}
|
|
@@ -2966,16 +2992,16 @@ class Search {
|
|
|
2966
2992
|
}
|
|
2967
2993
|
}
|
|
2968
2994
|
|
|
2969
|
-
var __defProp$
|
|
2970
|
-
var __defNormalProp$
|
|
2971
|
-
var __publicField$
|
|
2972
|
-
__defNormalProp$
|
|
2995
|
+
var __defProp$e = Object.defineProperty;
|
|
2996
|
+
var __defNormalProp$e = (obj, key, value) => key in obj ? __defProp$e(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2997
|
+
var __publicField$e = (obj, key, value) => {
|
|
2998
|
+
__defNormalProp$e(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
2973
2999
|
return value;
|
|
2974
3000
|
};
|
|
2975
3001
|
class SearchSuggest {
|
|
2976
3002
|
constructor(page) {
|
|
2977
3003
|
this.page = page;
|
|
2978
|
-
__publicField$
|
|
3004
|
+
__publicField$e(this, "searchSuggestLineItemImages");
|
|
2979
3005
|
this.searchSuggestLineItemImages = page.locator(".search-suggest-product-image-container");
|
|
2980
3006
|
}
|
|
2981
3007
|
url(searchTerm) {
|
|
@@ -3052,10 +3078,10 @@ const test$6 = test$e.extend({
|
|
|
3052
3078
|
}
|
|
3053
3079
|
});
|
|
3054
3080
|
|
|
3055
|
-
var __defProp$
|
|
3056
|
-
var __defNormalProp$
|
|
3057
|
-
var __publicField$
|
|
3058
|
-
__defNormalProp$
|
|
3081
|
+
var __defProp$d = Object.defineProperty;
|
|
3082
|
+
var __defNormalProp$d = (obj, key, value) => key in obj ? __defProp$d(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3083
|
+
var __publicField$d = (obj, key, value) => {
|
|
3084
|
+
__defNormalProp$d(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
3059
3085
|
return value;
|
|
3060
3086
|
};
|
|
3061
3087
|
class ProductDetail {
|
|
@@ -3064,39 +3090,39 @@ class ProductDetail {
|
|
|
3064
3090
|
/**
|
|
3065
3091
|
* Save interactions
|
|
3066
3092
|
*/
|
|
3067
|
-
__publicField$
|
|
3068
|
-
__publicField$
|
|
3069
|
-
__publicField$
|
|
3093
|
+
__publicField$d(this, "savePhysicalProductButton");
|
|
3094
|
+
__publicField$d(this, "saveButtonLoadingSpinner");
|
|
3095
|
+
__publicField$d(this, "saveButtonCheckMark");
|
|
3070
3096
|
/**
|
|
3071
3097
|
* Media Upload interactions
|
|
3072
3098
|
*/
|
|
3073
|
-
__publicField$
|
|
3074
|
-
__publicField$
|
|
3075
|
-
__publicField$
|
|
3099
|
+
__publicField$d(this, "uploadMediaButton");
|
|
3100
|
+
__publicField$d(this, "coverImage");
|
|
3101
|
+
__publicField$d(this, "productImage");
|
|
3076
3102
|
/**
|
|
3077
3103
|
* Tabs
|
|
3078
3104
|
*/
|
|
3079
|
-
__publicField$
|
|
3105
|
+
__publicField$d(this, "variantsTabLink");
|
|
3080
3106
|
/**
|
|
3081
3107
|
* Variants Generation
|
|
3082
3108
|
*/
|
|
3083
|
-
__publicField$
|
|
3084
|
-
__publicField$
|
|
3085
|
-
__publicField$
|
|
3086
|
-
__publicField$
|
|
3087
|
-
__publicField$
|
|
3109
|
+
__publicField$d(this, "generateVariantsButton");
|
|
3110
|
+
__publicField$d(this, "variantsModal");
|
|
3111
|
+
__publicField$d(this, "variantsModalHeadline");
|
|
3112
|
+
__publicField$d(this, "variantsNextButton");
|
|
3113
|
+
__publicField$d(this, "variantsSaveButton");
|
|
3088
3114
|
/**
|
|
3089
3115
|
* Property Selection
|
|
3090
3116
|
*/
|
|
3091
|
-
__publicField$
|
|
3092
|
-
__publicField$
|
|
3093
|
-
__publicField$
|
|
3094
|
-
__publicField$
|
|
3095
|
-
__publicField$
|
|
3096
|
-
__publicField$
|
|
3097
|
-
__publicField$
|
|
3098
|
-
__publicField$
|
|
3099
|
-
__publicField$
|
|
3117
|
+
__publicField$d(this, "propertyGroupColor");
|
|
3118
|
+
__publicField$d(this, "propertyGroupSize");
|
|
3119
|
+
__publicField$d(this, "propertyOptionGrid");
|
|
3120
|
+
__publicField$d(this, "propertyOptionColorBlue");
|
|
3121
|
+
__publicField$d(this, "propertyOptionColorRed");
|
|
3122
|
+
__publicField$d(this, "propertyOptionColorGreen");
|
|
3123
|
+
__publicField$d(this, "propertyOptionSizeSmall");
|
|
3124
|
+
__publicField$d(this, "propertyOptionSizeMedium");
|
|
3125
|
+
__publicField$d(this, "propertyOptionSizeLarge");
|
|
3100
3126
|
this.savePhysicalProductButton = page.getByRole("button", { name: "Save" });
|
|
3101
3127
|
this.saveButtonCheckMark = page.locator(".icon--regular-checkmark-xs");
|
|
3102
3128
|
this.saveButtonLoadingSpinner = page.locator("sw-loader");
|
|
@@ -3124,18 +3150,18 @@ class ProductDetail {
|
|
|
3124
3150
|
}
|
|
3125
3151
|
}
|
|
3126
3152
|
|
|
3127
|
-
var __defProp$
|
|
3128
|
-
var __defNormalProp$
|
|
3129
|
-
var __publicField$
|
|
3130
|
-
__defNormalProp$
|
|
3153
|
+
var __defProp$c = Object.defineProperty;
|
|
3154
|
+
var __defNormalProp$c = (obj, key, value) => key in obj ? __defProp$c(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3155
|
+
var __publicField$c = (obj, key, value) => {
|
|
3156
|
+
__defNormalProp$c(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
3131
3157
|
return value;
|
|
3132
3158
|
};
|
|
3133
3159
|
class OrderDetail {
|
|
3134
3160
|
constructor(page) {
|
|
3135
3161
|
this.page = page;
|
|
3136
|
-
__publicField$
|
|
3137
|
-
__publicField$
|
|
3138
|
-
__publicField$
|
|
3162
|
+
__publicField$c(this, "saveButton");
|
|
3163
|
+
__publicField$c(this, "dataGridContextButton");
|
|
3164
|
+
__publicField$c(this, "orderTag");
|
|
3139
3165
|
this.saveButton = page.locator(".sw-order-detail__smart-bar-save-button");
|
|
3140
3166
|
this.dataGridContextButton = page.locator(".sw-data-grid__actions-menu").and(page.getByRole("button"));
|
|
3141
3167
|
this.orderTag = page.locator(".sw-select-selection-list__item");
|
|
@@ -3145,18 +3171,18 @@ class OrderDetail {
|
|
|
3145
3171
|
}
|
|
3146
3172
|
}
|
|
3147
3173
|
|
|
3148
|
-
var __defProp$
|
|
3149
|
-
var __defNormalProp$
|
|
3150
|
-
var __publicField$
|
|
3151
|
-
__defNormalProp$
|
|
3174
|
+
var __defProp$b = Object.defineProperty;
|
|
3175
|
+
var __defNormalProp$b = (obj, key, value) => key in obj ? __defProp$b(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3176
|
+
var __publicField$b = (obj, key, value) => {
|
|
3177
|
+
__defNormalProp$b(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
3152
3178
|
return value;
|
|
3153
3179
|
};
|
|
3154
3180
|
class CustomerDetail {
|
|
3155
3181
|
constructor(page) {
|
|
3156
3182
|
this.page = page;
|
|
3157
|
-
__publicField$
|
|
3158
|
-
__publicField$
|
|
3159
|
-
__publicField$
|
|
3183
|
+
__publicField$b(this, "editButton");
|
|
3184
|
+
__publicField$b(this, "generalTab");
|
|
3185
|
+
__publicField$b(this, "accountCard");
|
|
3160
3186
|
this.editButton = page.getByRole("button", { name: "Edit" });
|
|
3161
3187
|
this.generalTab = page.getByRole("link", { name: "General" });
|
|
3162
3188
|
this.accountCard = page.locator(".sw-customer-card");
|
|
@@ -3166,53 +3192,53 @@ class CustomerDetail {
|
|
|
3166
3192
|
}
|
|
3167
3193
|
}
|
|
3168
3194
|
|
|
3169
|
-
var __defProp$
|
|
3170
|
-
var __defNormalProp$
|
|
3171
|
-
var __publicField$
|
|
3172
|
-
__defNormalProp$
|
|
3195
|
+
var __defProp$a = Object.defineProperty;
|
|
3196
|
+
var __defNormalProp$a = (obj, key, value) => key in obj ? __defProp$a(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3197
|
+
var __publicField$a = (obj, key, value) => {
|
|
3198
|
+
__defNormalProp$a(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
3173
3199
|
return value;
|
|
3174
3200
|
};
|
|
3175
3201
|
class FirstRunWizard {
|
|
3176
3202
|
constructor(page) {
|
|
3177
3203
|
this.page = page;
|
|
3178
|
-
__publicField$
|
|
3179
|
-
__publicField$
|
|
3180
|
-
__publicField$
|
|
3181
|
-
__publicField$
|
|
3182
|
-
__publicField$
|
|
3183
|
-
__publicField$
|
|
3184
|
-
__publicField$
|
|
3185
|
-
__publicField$
|
|
3186
|
-
__publicField$
|
|
3187
|
-
__publicField$
|
|
3188
|
-
__publicField$
|
|
3189
|
-
__publicField$
|
|
3190
|
-
__publicField$
|
|
3191
|
-
__publicField$
|
|
3192
|
-
__publicField$
|
|
3193
|
-
__publicField$
|
|
3194
|
-
__publicField$
|
|
3195
|
-
__publicField$
|
|
3196
|
-
__publicField$
|
|
3197
|
-
__publicField$
|
|
3198
|
-
__publicField$
|
|
3199
|
-
__publicField$
|
|
3200
|
-
__publicField$
|
|
3201
|
-
__publicField$
|
|
3202
|
-
__publicField$
|
|
3203
|
-
__publicField$
|
|
3204
|
-
__publicField$
|
|
3205
|
-
__publicField$
|
|
3206
|
-
__publicField$
|
|
3207
|
-
__publicField$
|
|
3208
|
-
__publicField$
|
|
3209
|
-
__publicField$
|
|
3210
|
-
__publicField$
|
|
3211
|
-
__publicField$
|
|
3212
|
-
__publicField$
|
|
3213
|
-
__publicField$
|
|
3214
|
-
__publicField$
|
|
3215
|
-
__publicField$
|
|
3204
|
+
__publicField$a(this, "nextButton");
|
|
3205
|
+
__publicField$a(this, "configureLaterButton");
|
|
3206
|
+
__publicField$a(this, "skipButton");
|
|
3207
|
+
__publicField$a(this, "finishButton");
|
|
3208
|
+
__publicField$a(this, "backButton");
|
|
3209
|
+
__publicField$a(this, "smtpServerButton");
|
|
3210
|
+
__publicField$a(this, "dataImportHeader");
|
|
3211
|
+
__publicField$a(this, "installLanguagePackButton");
|
|
3212
|
+
__publicField$a(this, "installDemoDataButton");
|
|
3213
|
+
__publicField$a(this, "installMigrationAssistantButton");
|
|
3214
|
+
__publicField$a(this, "defaultValuesHeader");
|
|
3215
|
+
__publicField$a(this, "mailerConfigurationHeader");
|
|
3216
|
+
__publicField$a(this, "payPalSetupHeader");
|
|
3217
|
+
__publicField$a(this, "extensionsHeader");
|
|
3218
|
+
__publicField$a(this, "shopwareAccountHeader");
|
|
3219
|
+
__publicField$a(this, "shopwareStoreHeader");
|
|
3220
|
+
__publicField$a(this, "doneHeader");
|
|
3221
|
+
__publicField$a(this, "frwSuccessText");
|
|
3222
|
+
__publicField$a(this, "welcomeText");
|
|
3223
|
+
__publicField$a(this, "pluginCardInfo");
|
|
3224
|
+
__publicField$a(this, "dataImportCard");
|
|
3225
|
+
__publicField$a(this, "salesChannelSelectionList");
|
|
3226
|
+
__publicField$a(this, "salesChannelSelectionMultiSelect");
|
|
3227
|
+
__publicField$a(this, "smtpServerTitle");
|
|
3228
|
+
__publicField$a(this, "smtpServerFields");
|
|
3229
|
+
__publicField$a(this, "payPalPaymethods");
|
|
3230
|
+
__publicField$a(this, "payPalInfoCard");
|
|
3231
|
+
__publicField$a(this, "emailAddressInputField");
|
|
3232
|
+
__publicField$a(this, "passwordInputField");
|
|
3233
|
+
__publicField$a(this, "forgotPasswordLink");
|
|
3234
|
+
__publicField$a(this, "extensionStoreHeading");
|
|
3235
|
+
__publicField$a(this, "documentationLink");
|
|
3236
|
+
__publicField$a(this, "forumLink");
|
|
3237
|
+
__publicField$a(this, "roadmapLink");
|
|
3238
|
+
__publicField$a(this, "germanRegionSelector");
|
|
3239
|
+
__publicField$a(this, "toolsSelector");
|
|
3240
|
+
__publicField$a(this, "recommendationHeader");
|
|
3241
|
+
__publicField$a(this, "toolsRecommendedPlugin");
|
|
3216
3242
|
this.nextButton = page.getByText("Next", { exact: true });
|
|
3217
3243
|
this.configureLaterButton = page.getByText("Configure later", { exact: true });
|
|
3218
3244
|
this.skipButton = page.getByText("Skip", { exact: true });
|
|
@@ -3257,17 +3283,17 @@ class FirstRunWizard {
|
|
|
3257
3283
|
}
|
|
3258
3284
|
}
|
|
3259
3285
|
|
|
3260
|
-
var __defProp$
|
|
3261
|
-
var __defNormalProp$
|
|
3262
|
-
var __publicField$
|
|
3263
|
-
__defNormalProp$
|
|
3286
|
+
var __defProp$9 = Object.defineProperty;
|
|
3287
|
+
var __defNormalProp$9 = (obj, key, value) => key in obj ? __defProp$9(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3288
|
+
var __publicField$9 = (obj, key, value) => {
|
|
3289
|
+
__defNormalProp$9(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
3264
3290
|
return value;
|
|
3265
3291
|
};
|
|
3266
3292
|
class FlowBuilderCreate {
|
|
3267
3293
|
constructor(page) {
|
|
3268
3294
|
this.page = page;
|
|
3269
|
-
__publicField$
|
|
3270
|
-
__publicField$
|
|
3295
|
+
__publicField$9(this, "saveButton");
|
|
3296
|
+
__publicField$9(this, "header");
|
|
3271
3297
|
this.saveButton = page.locator(".sw-flow-detail__save");
|
|
3272
3298
|
this.header = page.locator("h2");
|
|
3273
3299
|
}
|
|
@@ -3276,28 +3302,28 @@ class FlowBuilderCreate {
|
|
|
3276
3302
|
}
|
|
3277
3303
|
}
|
|
3278
3304
|
|
|
3279
|
-
var __defProp$
|
|
3280
|
-
var __defNormalProp$
|
|
3281
|
-
var __publicField$
|
|
3282
|
-
__defNormalProp$
|
|
3305
|
+
var __defProp$8 = Object.defineProperty;
|
|
3306
|
+
var __defNormalProp$8 = (obj, key, value) => key in obj ? __defProp$8(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3307
|
+
var __publicField$8 = (obj, key, value) => {
|
|
3308
|
+
__defNormalProp$8(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
3283
3309
|
return value;
|
|
3284
3310
|
};
|
|
3285
3311
|
class FlowBuilderListing {
|
|
3286
3312
|
constructor(page) {
|
|
3287
3313
|
this.page = page;
|
|
3288
|
-
__publicField$
|
|
3289
|
-
__publicField$
|
|
3290
|
-
__publicField$
|
|
3291
|
-
__publicField$
|
|
3292
|
-
__publicField$
|
|
3293
|
-
__publicField$
|
|
3294
|
-
__publicField$
|
|
3295
|
-
__publicField$
|
|
3296
|
-
__publicField$
|
|
3297
|
-
__publicField$
|
|
3298
|
-
__publicField$
|
|
3299
|
-
__publicField$
|
|
3300
|
-
__publicField$
|
|
3314
|
+
__publicField$8(this, "createFlowButton");
|
|
3315
|
+
__publicField$8(this, "firstFlowName");
|
|
3316
|
+
__publicField$8(this, "firstFlowContextButton");
|
|
3317
|
+
__publicField$8(this, "flowContextMenu");
|
|
3318
|
+
__publicField$8(this, "contextMenuDownload");
|
|
3319
|
+
__publicField$8(this, "contextMenuDuplicate");
|
|
3320
|
+
__publicField$8(this, "contextMenuEdit");
|
|
3321
|
+
__publicField$8(this, "contextMenuDelete");
|
|
3322
|
+
__publicField$8(this, "flowDownloadModal");
|
|
3323
|
+
__publicField$8(this, "downloadFlowButton");
|
|
3324
|
+
__publicField$8(this, "flowDeleteButton");
|
|
3325
|
+
__publicField$8(this, "successAlert");
|
|
3326
|
+
__publicField$8(this, "successAlertMessage");
|
|
3301
3327
|
this.createFlowButton = page.locator(".sw-flow-list__create");
|
|
3302
3328
|
this.firstFlowName = page.locator(".sw-data-grid__cell--name a").first();
|
|
3303
3329
|
this.firstFlowContextButton = page.locator(".sw-data-grid__actions-menu").first();
|
|
@@ -3334,18 +3360,18 @@ class FlowBuilderListing {
|
|
|
3334
3360
|
}
|
|
3335
3361
|
}
|
|
3336
3362
|
|
|
3337
|
-
var __defProp$
|
|
3338
|
-
var __defNormalProp$
|
|
3339
|
-
var __publicField$
|
|
3340
|
-
__defNormalProp$
|
|
3363
|
+
var __defProp$7 = Object.defineProperty;
|
|
3364
|
+
var __defNormalProp$7 = (obj, key, value) => key in obj ? __defProp$7(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3365
|
+
var __publicField$7 = (obj, key, value) => {
|
|
3366
|
+
__defNormalProp$7(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
3341
3367
|
return value;
|
|
3342
3368
|
};
|
|
3343
3369
|
class FlowBuilderDetail {
|
|
3344
3370
|
constructor(page) {
|
|
3345
3371
|
this.page = page;
|
|
3346
|
-
__publicField$
|
|
3347
|
-
__publicField$
|
|
3348
|
-
__publicField$
|
|
3372
|
+
__publicField$7(this, "saveButton");
|
|
3373
|
+
__publicField$7(this, "generalTab");
|
|
3374
|
+
__publicField$7(this, "flowTab");
|
|
3349
3375
|
this.saveButton = page.locator(".sw-flow-detail__save");
|
|
3350
3376
|
this.generalTab = page.locator(".sw-flow-detail__tab-general");
|
|
3351
3377
|
this.flowTab = page.locator(".sw-flow-detail__tab-flow");
|
|
@@ -3355,20 +3381,20 @@ class FlowBuilderDetail {
|
|
|
3355
3381
|
}
|
|
3356
3382
|
}
|
|
3357
3383
|
|
|
3358
|
-
var __defProp$
|
|
3359
|
-
var __defNormalProp$
|
|
3360
|
-
var __publicField$
|
|
3361
|
-
__defNormalProp$
|
|
3384
|
+
var __defProp$6 = Object.defineProperty;
|
|
3385
|
+
var __defNormalProp$6 = (obj, key, value) => key in obj ? __defProp$6(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3386
|
+
var __publicField$6 = (obj, key, value) => {
|
|
3387
|
+
__defNormalProp$6(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
3362
3388
|
return value;
|
|
3363
3389
|
};
|
|
3364
3390
|
class DataSharing {
|
|
3365
3391
|
constructor(page) {
|
|
3366
3392
|
this.page = page;
|
|
3367
|
-
__publicField$
|
|
3368
|
-
__publicField$
|
|
3369
|
-
__publicField$
|
|
3370
|
-
__publicField$
|
|
3371
|
-
__publicField$
|
|
3393
|
+
__publicField$6(this, "dataConsentHeadline");
|
|
3394
|
+
__publicField$6(this, "dataSharingSuccessMessageLabel");
|
|
3395
|
+
__publicField$6(this, "dataSharingAgreeButton");
|
|
3396
|
+
__publicField$6(this, "dataSharingDisableButton");
|
|
3397
|
+
__publicField$6(this, "dataSharingTermsAgreementLabel");
|
|
3372
3398
|
this.dataConsentHeadline = page.locator("h3.sw-usage-data-consent-banner__content-headline");
|
|
3373
3399
|
this.dataSharingAgreeButton = page.getByRole("button", { name: "Agree" });
|
|
3374
3400
|
this.dataSharingDisableButton = page.getByRole("button", { name: "Disable data sharing" });
|
|
@@ -3380,23 +3406,23 @@ class DataSharing {
|
|
|
3380
3406
|
}
|
|
3381
3407
|
}
|
|
3382
3408
|
|
|
3383
|
-
var __defProp$
|
|
3384
|
-
var __defNormalProp$
|
|
3385
|
-
var __publicField$
|
|
3386
|
-
__defNormalProp$
|
|
3409
|
+
var __defProp$5 = Object.defineProperty;
|
|
3410
|
+
var __defNormalProp$5 = (obj, key, value) => key in obj ? __defProp$5(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3411
|
+
var __publicField$5 = (obj, key, value) => {
|
|
3412
|
+
__defNormalProp$5(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
3387
3413
|
return value;
|
|
3388
3414
|
};
|
|
3389
3415
|
class Dashboard {
|
|
3390
3416
|
constructor(page) {
|
|
3391
3417
|
this.page = page;
|
|
3392
|
-
__publicField$
|
|
3393
|
-
__publicField$
|
|
3394
|
-
__publicField$
|
|
3395
|
-
__publicField$
|
|
3396
|
-
__publicField$
|
|
3397
|
-
__publicField$
|
|
3398
|
-
__publicField$
|
|
3399
|
-
__publicField$
|
|
3418
|
+
__publicField$5(this, "welcomeHeadline");
|
|
3419
|
+
__publicField$5(this, "dataSharingConsentBanner");
|
|
3420
|
+
__publicField$5(this, "dataSharingAgreeButton");
|
|
3421
|
+
__publicField$5(this, "dataSharingNotAtTheMomentButton");
|
|
3422
|
+
__publicField$5(this, "dataSharingTermsAgreementLabel");
|
|
3423
|
+
__publicField$5(this, "dataSharingSettingsLink");
|
|
3424
|
+
__publicField$5(this, "dataSharingAcceptMessageText");
|
|
3425
|
+
__publicField$5(this, "dataSharingNotAtTheMomentMessageText");
|
|
3400
3426
|
this.welcomeHeadline = page.locator("h1.sw-dashboard-index__welcome-title");
|
|
3401
3427
|
this.dataSharingConsentBanner = page.locator(".sw-usage-data-consent-banner");
|
|
3402
3428
|
this.dataSharingAgreeButton = page.getByRole("button", { name: "Agree" });
|
|
@@ -3411,6 +3437,170 @@ class Dashboard {
|
|
|
3411
3437
|
}
|
|
3412
3438
|
}
|
|
3413
3439
|
|
|
3440
|
+
var __defProp$4 = Object.defineProperty;
|
|
3441
|
+
var __defNormalProp$4 = (obj, key, value) => key in obj ? __defProp$4(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3442
|
+
var __publicField$4 = (obj, key, value) => {
|
|
3443
|
+
__defNormalProp$4(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
3444
|
+
return value;
|
|
3445
|
+
};
|
|
3446
|
+
class ShippingListing {
|
|
3447
|
+
constructor(page) {
|
|
3448
|
+
this.page = page;
|
|
3449
|
+
__publicField$4(this, "header");
|
|
3450
|
+
__publicField$4(this, "addShippingMethod");
|
|
3451
|
+
__publicField$4(this, "contextMenu");
|
|
3452
|
+
__publicField$4(this, "editButton");
|
|
3453
|
+
__publicField$4(this, "deleteButton");
|
|
3454
|
+
//warning modal
|
|
3455
|
+
__publicField$4(this, "modal");
|
|
3456
|
+
__publicField$4(this, "modalHeader");
|
|
3457
|
+
__publicField$4(this, "modalCancelButton");
|
|
3458
|
+
__publicField$4(this, "modalDeleteButton");
|
|
3459
|
+
this.header = page.locator(".smart-bar__header");
|
|
3460
|
+
this.addShippingMethod = page.getByText("Add shipping method", { exact: true });
|
|
3461
|
+
this.contextMenu = page.locator(".sw-data-grid-settings__trigger");
|
|
3462
|
+
this.editButton = page.locator(".sw-settings-shipping-list__edit-action");
|
|
3463
|
+
this.deleteButton = page.locator(".sw-context-menu-item--danger");
|
|
3464
|
+
this.modal = page.getByRole("dialog", { name: "Warning" });
|
|
3465
|
+
this.modalHeader = this.modal.getByRole("heading", { name: "Warning" });
|
|
3466
|
+
this.modalCancelButton = this.modal.getByRole("button", { name: "Cancel" });
|
|
3467
|
+
this.modalDeleteButton = this.modal.getByRole("button", { name: "Delete" });
|
|
3468
|
+
}
|
|
3469
|
+
url() {
|
|
3470
|
+
return "#/sw/settings/shipping/index/";
|
|
3471
|
+
}
|
|
3472
|
+
}
|
|
3473
|
+
|
|
3474
|
+
var __defProp$3 = Object.defineProperty;
|
|
3475
|
+
var __defNormalProp$3 = (obj, key, value) => key in obj ? __defProp$3(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3476
|
+
var __publicField$3 = (obj, key, value) => {
|
|
3477
|
+
__defNormalProp$3(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
3478
|
+
return value;
|
|
3479
|
+
};
|
|
3480
|
+
class LandingPageCreate {
|
|
3481
|
+
constructor(page) {
|
|
3482
|
+
this.page = page;
|
|
3483
|
+
/**
|
|
3484
|
+
* General
|
|
3485
|
+
*/
|
|
3486
|
+
__publicField$3(this, "nameInput");
|
|
3487
|
+
__publicField$3(this, "landingPageStatus");
|
|
3488
|
+
__publicField$3(this, "salesChannelSelectionList");
|
|
3489
|
+
__publicField$3(this, "filtersResultPopoverItemList");
|
|
3490
|
+
__publicField$3(this, "saveLandingPageButton");
|
|
3491
|
+
__publicField$3(this, "loadingSpinner");
|
|
3492
|
+
__publicField$3(this, "seoUrlInput");
|
|
3493
|
+
/**
|
|
3494
|
+
* Layout
|
|
3495
|
+
*/
|
|
3496
|
+
__publicField$3(this, "layoutTab");
|
|
3497
|
+
__publicField$3(this, "assignLayoutButton");
|
|
3498
|
+
__publicField$3(this, "searchLayoutInput");
|
|
3499
|
+
__publicField$3(this, "layoutItems");
|
|
3500
|
+
__publicField$3(this, "layoutSaveButton");
|
|
3501
|
+
__publicField$3(this, "layoutEmptyState");
|
|
3502
|
+
__publicField$3(this, "createNewLayoutButton");
|
|
3503
|
+
this.loadingSpinner = page.locator(".sw-loader");
|
|
3504
|
+
this.saveLandingPageButton = page.getByRole("button", { name: "Save" });
|
|
3505
|
+
this.nameInput = page.getByLabel("Name");
|
|
3506
|
+
this.landingPageStatus = page.getByRole("checkbox", { name: "Active" });
|
|
3507
|
+
this.salesChannelSelectionList = page.locator(".sw-select").filter({ hasText: "Sales Channels" }).locator(".sw-select-selection-list");
|
|
3508
|
+
this.filtersResultPopoverItemList = page.locator(".sw-select-result-list__content").getByRole("listitem");
|
|
3509
|
+
this.seoUrlInput = page.getByLabel("SEO URL");
|
|
3510
|
+
this.layoutTab = page.getByRole("link", { name: "Layout" });
|
|
3511
|
+
const layoutCardPreview = page.locator(".sw-category-layout-card__preview");
|
|
3512
|
+
this.layoutEmptyState = layoutCardPreview.locator(".is--empty");
|
|
3513
|
+
this.assignLayoutButton = page.getByRole("button", { name: "Assign layout" });
|
|
3514
|
+
this.createNewLayoutButton = page.getByRole("button", { name: "Create new layout" });
|
|
3515
|
+
const layoutModal = page.getByRole("dialog", { name: "Select layout" });
|
|
3516
|
+
this.searchLayoutInput = layoutModal.getByPlaceholder("Search layouts...");
|
|
3517
|
+
this.layoutItems = layoutModal.locator(".sw-cms-list-item");
|
|
3518
|
+
this.layoutSaveButton = layoutModal.getByRole("button", { name: "Save" });
|
|
3519
|
+
}
|
|
3520
|
+
url() {
|
|
3521
|
+
return `#/sw/category/landingPage/create/base`;
|
|
3522
|
+
}
|
|
3523
|
+
}
|
|
3524
|
+
|
|
3525
|
+
var __defProp$2 = Object.defineProperty;
|
|
3526
|
+
var __defNormalProp$2 = (obj, key, value) => key in obj ? __defProp$2(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3527
|
+
var __publicField$2 = (obj, key, value) => {
|
|
3528
|
+
__defNormalProp$2(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
3529
|
+
return value;
|
|
3530
|
+
};
|
|
3531
|
+
class LandingPageDetail {
|
|
3532
|
+
constructor(page) {
|
|
3533
|
+
this.page = page;
|
|
3534
|
+
/**
|
|
3535
|
+
* General
|
|
3536
|
+
*/
|
|
3537
|
+
__publicField$2(this, "nameInput");
|
|
3538
|
+
__publicField$2(this, "landingPageStatus");
|
|
3539
|
+
__publicField$2(this, "salesChannelSelectionList");
|
|
3540
|
+
__publicField$2(this, "filtersResultPopoverItemList");
|
|
3541
|
+
__publicField$2(this, "saveLandingPageButton");
|
|
3542
|
+
__publicField$2(this, "loadingSpinner");
|
|
3543
|
+
__publicField$2(this, "seoUrlInput");
|
|
3544
|
+
/**
|
|
3545
|
+
* Layout
|
|
3546
|
+
*/
|
|
3547
|
+
__publicField$2(this, "layoutTab");
|
|
3548
|
+
__publicField$2(this, "layoutAssignmentCardTitle");
|
|
3549
|
+
__publicField$2(this, "layoutAssignmentCardHeadline");
|
|
3550
|
+
__publicField$2(this, "changeLayoutButton");
|
|
3551
|
+
__publicField$2(this, "editInDesignerButton");
|
|
3552
|
+
__publicField$2(this, "layoutResetButton");
|
|
3553
|
+
__publicField$2(this, "layoutAssignmentStatus");
|
|
3554
|
+
__publicField$2(this, "layoutAssignmentContentSection");
|
|
3555
|
+
this.loadingSpinner = page.locator(".sw-loader");
|
|
3556
|
+
this.saveLandingPageButton = page.getByRole("button", { name: "Save" });
|
|
3557
|
+
this.nameInput = page.getByLabel("Name");
|
|
3558
|
+
this.landingPageStatus = page.getByRole("checkbox", { name: "Active" });
|
|
3559
|
+
this.salesChannelSelectionList = page.locator(".sw-select").filter({ hasText: "Sales Channels" }).locator(".sw-select-selection-list");
|
|
3560
|
+
this.filtersResultPopoverItemList = page.locator(".sw-select-result-list__content").getByRole("listitem");
|
|
3561
|
+
this.seoUrlInput = page.getByLabel("SEO URL");
|
|
3562
|
+
this.layoutTab = page.getByRole("link", { name: "Layout" });
|
|
3563
|
+
this.changeLayoutButton = page.getByRole("button", { name: "Change layout" });
|
|
3564
|
+
this.editInDesignerButton = page.getByRole("button", { name: "Edit in designer" });
|
|
3565
|
+
const layoutAssignmentCard = page.locator(".sw-category-layout-card");
|
|
3566
|
+
this.layoutAssignmentCardHeadline = layoutAssignmentCard.locator(".sw-category-layout-card__desc-headline");
|
|
3567
|
+
this.layoutResetButton = layoutAssignmentCard.locator(".sw-category-detail-layout__layout-reset");
|
|
3568
|
+
const layoutItemInfo = layoutAssignmentCard.locator(".sw-cms-list-item__info");
|
|
3569
|
+
this.layoutAssignmentCardTitle = layoutItemInfo.locator(".sw-cms-list-item__title");
|
|
3570
|
+
this.layoutAssignmentStatus = layoutItemInfo.locator(".is--active");
|
|
3571
|
+
this.layoutAssignmentContentSection = page.locator(".sw-cms-page-form");
|
|
3572
|
+
}
|
|
3573
|
+
url(landingPageUuid) {
|
|
3574
|
+
return `#/sw/category/landingPage/${landingPageUuid}/base`;
|
|
3575
|
+
}
|
|
3576
|
+
}
|
|
3577
|
+
|
|
3578
|
+
var __defProp$1 = Object.defineProperty;
|
|
3579
|
+
var __defNormalProp$1 = (obj, key, value) => key in obj ? __defProp$1(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3580
|
+
var __publicField$1 = (obj, key, value) => {
|
|
3581
|
+
__defNormalProp$1(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
3582
|
+
return value;
|
|
3583
|
+
};
|
|
3584
|
+
class Categories {
|
|
3585
|
+
constructor(page) {
|
|
3586
|
+
this.page = page;
|
|
3587
|
+
/**
|
|
3588
|
+
* Landing pages
|
|
3589
|
+
*/
|
|
3590
|
+
__publicField$1(this, "landingPageArea");
|
|
3591
|
+
__publicField$1(this, "landingPageHeadline");
|
|
3592
|
+
__publicField$1(this, "addLandingPageButton");
|
|
3593
|
+
__publicField$1(this, "landingPageItems");
|
|
3594
|
+
this.landingPageArea = page.locator(".sw-category-detail__landing-page-collapse");
|
|
3595
|
+
this.landingPageHeadline = this.landingPageArea.getByRole("heading", { name: "Landing pages" });
|
|
3596
|
+
this.addLandingPageButton = this.landingPageArea.getByText("Add landing page");
|
|
3597
|
+
this.landingPageItems = this.landingPageArea.locator(".sw-tree-item__label");
|
|
3598
|
+
}
|
|
3599
|
+
url() {
|
|
3600
|
+
return `#/sw/category/index`;
|
|
3601
|
+
}
|
|
3602
|
+
}
|
|
3603
|
+
|
|
3414
3604
|
const AdminPageObjects = {
|
|
3415
3605
|
ProductDetail,
|
|
3416
3606
|
OrderDetail,
|
|
@@ -3420,7 +3610,11 @@ const AdminPageObjects = {
|
|
|
3420
3610
|
FlowBuilderListing,
|
|
3421
3611
|
FlowBuilderDetail,
|
|
3422
3612
|
Dashboard,
|
|
3423
|
-
DataSharing
|
|
3613
|
+
DataSharing,
|
|
3614
|
+
ShippingListing,
|
|
3615
|
+
Categories,
|
|
3616
|
+
LandingPageCreate,
|
|
3617
|
+
LandingPageDetail
|
|
3424
3618
|
};
|
|
3425
3619
|
const test$5 = test$e.extend({
|
|
3426
3620
|
AdminProductDetail: async ({ AdminPage }, use) => {
|
|
@@ -3449,6 +3643,18 @@ const test$5 = test$e.extend({
|
|
|
3449
3643
|
},
|
|
3450
3644
|
AdminDashboard: async ({ AdminPage }, use) => {
|
|
3451
3645
|
await use(new Dashboard(AdminPage));
|
|
3646
|
+
},
|
|
3647
|
+
AdminShippingListing: async ({ AdminPage }, use) => {
|
|
3648
|
+
await use(new ShippingListing(AdminPage));
|
|
3649
|
+
},
|
|
3650
|
+
AdminCategories: async ({ AdminPage }, use) => {
|
|
3651
|
+
await use(new Categories(AdminPage));
|
|
3652
|
+
},
|
|
3653
|
+
AdminLandingPageDetail: async ({ AdminPage }, use) => {
|
|
3654
|
+
await use(new LandingPageDetail(AdminPage));
|
|
3655
|
+
},
|
|
3656
|
+
AdminLandingPageCreate: async ({ AdminPage }, use) => {
|
|
3657
|
+
await use(new LandingPageCreate(AdminPage));
|
|
3452
3658
|
}
|
|
3453
3659
|
});
|
|
3454
3660
|
|