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