@shopware-ag/acceptance-test-suite 5.0.0 → 5.0.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 +29 -1
- package/dist/index.d.ts +29 -1
- package/dist/index.mjs +50 -3
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1284,7 +1284,7 @@ declare class LandingPageCreate implements PageObject {
|
|
|
1284
1284
|
readonly assignLayoutButton: Locator;
|
|
1285
1285
|
readonly searchLayoutInput: Locator;
|
|
1286
1286
|
readonly layoutItems: Locator;
|
|
1287
|
-
readonly
|
|
1287
|
+
readonly layoutSaveButton: Locator;
|
|
1288
1288
|
readonly layoutEmptyState: Locator;
|
|
1289
1289
|
readonly createNewLayoutButton: Locator;
|
|
1290
1290
|
readonly layoutCheckboxes: Locator;
|
|
@@ -1328,6 +1328,34 @@ declare class Categories implements PageObject {
|
|
|
1328
1328
|
readonly landingPageHeadline: Locator;
|
|
1329
1329
|
readonly addLandingPageButton: Locator;
|
|
1330
1330
|
readonly landingPageItems: Locator;
|
|
1331
|
+
/**
|
|
1332
|
+
* Category tree
|
|
1333
|
+
*/
|
|
1334
|
+
readonly categoryTree: Locator;
|
|
1335
|
+
readonly homeCategory: Locator;
|
|
1336
|
+
readonly homeCategoryContextButton: Locator;
|
|
1337
|
+
readonly categoryMenuItemList: Locator;
|
|
1338
|
+
readonly createCategoryInput: Locator;
|
|
1339
|
+
readonly confirmCategoryCreationButton: Locator;
|
|
1340
|
+
readonly categoryItems: Locator;
|
|
1341
|
+
/**
|
|
1342
|
+
* General
|
|
1343
|
+
*/
|
|
1344
|
+
readonly nameInput: Locator;
|
|
1345
|
+
readonly activeCheckbox: Locator;
|
|
1346
|
+
readonly categoryTypeSelectionList: Locator;
|
|
1347
|
+
readonly filtersResultPopoverItemList: Locator;
|
|
1348
|
+
readonly saveButton: Locator;
|
|
1349
|
+
/**
|
|
1350
|
+
* Customisable link
|
|
1351
|
+
*/
|
|
1352
|
+
readonly entitySelectionList: Locator;
|
|
1353
|
+
readonly linkTypeSelectionList: Locator;
|
|
1354
|
+
readonly categorySelectionList: Locator;
|
|
1355
|
+
readonly productSelectionList: Locator;
|
|
1356
|
+
readonly landingPageSelectionList: Locator;
|
|
1357
|
+
readonly filterResultPopoverTreeCheckboxItemList: Locator;
|
|
1358
|
+
readonly openInNewTabCheckbox: Locator;
|
|
1331
1359
|
constructor(page: Page);
|
|
1332
1360
|
url(): string;
|
|
1333
1361
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -1284,7 +1284,7 @@ declare class LandingPageCreate implements PageObject {
|
|
|
1284
1284
|
readonly assignLayoutButton: Locator;
|
|
1285
1285
|
readonly searchLayoutInput: Locator;
|
|
1286
1286
|
readonly layoutItems: Locator;
|
|
1287
|
-
readonly
|
|
1287
|
+
readonly layoutSaveButton: Locator;
|
|
1288
1288
|
readonly layoutEmptyState: Locator;
|
|
1289
1289
|
readonly createNewLayoutButton: Locator;
|
|
1290
1290
|
readonly layoutCheckboxes: Locator;
|
|
@@ -1328,6 +1328,34 @@ declare class Categories implements PageObject {
|
|
|
1328
1328
|
readonly landingPageHeadline: Locator;
|
|
1329
1329
|
readonly addLandingPageButton: Locator;
|
|
1330
1330
|
readonly landingPageItems: Locator;
|
|
1331
|
+
/**
|
|
1332
|
+
* Category tree
|
|
1333
|
+
*/
|
|
1334
|
+
readonly categoryTree: Locator;
|
|
1335
|
+
readonly homeCategory: Locator;
|
|
1336
|
+
readonly homeCategoryContextButton: Locator;
|
|
1337
|
+
readonly categoryMenuItemList: Locator;
|
|
1338
|
+
readonly createCategoryInput: Locator;
|
|
1339
|
+
readonly confirmCategoryCreationButton: Locator;
|
|
1340
|
+
readonly categoryItems: Locator;
|
|
1341
|
+
/**
|
|
1342
|
+
* General
|
|
1343
|
+
*/
|
|
1344
|
+
readonly nameInput: Locator;
|
|
1345
|
+
readonly activeCheckbox: Locator;
|
|
1346
|
+
readonly categoryTypeSelectionList: Locator;
|
|
1347
|
+
readonly filtersResultPopoverItemList: Locator;
|
|
1348
|
+
readonly saveButton: Locator;
|
|
1349
|
+
/**
|
|
1350
|
+
* Customisable link
|
|
1351
|
+
*/
|
|
1352
|
+
readonly entitySelectionList: Locator;
|
|
1353
|
+
readonly linkTypeSelectionList: Locator;
|
|
1354
|
+
readonly categorySelectionList: Locator;
|
|
1355
|
+
readonly productSelectionList: Locator;
|
|
1356
|
+
readonly landingPageSelectionList: Locator;
|
|
1357
|
+
readonly filterResultPopoverTreeCheckboxItemList: Locator;
|
|
1358
|
+
readonly openInNewTabCheckbox: Locator;
|
|
1331
1359
|
constructor(page: Page);
|
|
1332
1360
|
url(): string;
|
|
1333
1361
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -966,7 +966,7 @@ class TestDataService {
|
|
|
966
966
|
*
|
|
967
967
|
* @private
|
|
968
968
|
*/
|
|
969
|
-
__publicField$w(this, "highPriorityEntities", ["order", "product"]);
|
|
969
|
+
__publicField$w(this, "highPriorityEntities", ["order", "product", "landing_page"]);
|
|
970
970
|
/**
|
|
971
971
|
* A registry of all created records.
|
|
972
972
|
*
|
|
@@ -3530,7 +3530,7 @@ class LandingPageCreate {
|
|
|
3530
3530
|
__publicField$4(this, "assignLayoutButton");
|
|
3531
3531
|
__publicField$4(this, "searchLayoutInput");
|
|
3532
3532
|
__publicField$4(this, "layoutItems");
|
|
3533
|
-
__publicField$4(this, "
|
|
3533
|
+
__publicField$4(this, "layoutSaveButton");
|
|
3534
3534
|
__publicField$4(this, "layoutEmptyState");
|
|
3535
3535
|
__publicField$4(this, "createNewLayoutButton");
|
|
3536
3536
|
__publicField$4(this, "layoutCheckboxes");
|
|
@@ -3551,7 +3551,7 @@ class LandingPageCreate {
|
|
|
3551
3551
|
this.layoutItems = layoutModal.locator(".sw-cms-list-item");
|
|
3552
3552
|
const layoutTable = layoutModal.locator(".sw-data-grid__body");
|
|
3553
3553
|
this.layoutCheckboxes = layoutTable.locator(".sw-field--checkbox__content");
|
|
3554
|
-
this.
|
|
3554
|
+
this.layoutSaveButton = layoutModal.getByRole("button", { name: "Save" });
|
|
3555
3555
|
}
|
|
3556
3556
|
url() {
|
|
3557
3557
|
return `#/sw/category/landingPage/create/base`;
|
|
@@ -3627,10 +3627,57 @@ class Categories {
|
|
|
3627
3627
|
__publicField$2(this, "landingPageHeadline");
|
|
3628
3628
|
__publicField$2(this, "addLandingPageButton");
|
|
3629
3629
|
__publicField$2(this, "landingPageItems");
|
|
3630
|
+
/**
|
|
3631
|
+
* Category tree
|
|
3632
|
+
*/
|
|
3633
|
+
__publicField$2(this, "categoryTree");
|
|
3634
|
+
__publicField$2(this, "homeCategory");
|
|
3635
|
+
__publicField$2(this, "homeCategoryContextButton");
|
|
3636
|
+
__publicField$2(this, "categoryMenuItemList");
|
|
3637
|
+
__publicField$2(this, "createCategoryInput");
|
|
3638
|
+
__publicField$2(this, "confirmCategoryCreationButton");
|
|
3639
|
+
__publicField$2(this, "categoryItems");
|
|
3640
|
+
/**
|
|
3641
|
+
* General
|
|
3642
|
+
*/
|
|
3643
|
+
__publicField$2(this, "nameInput");
|
|
3644
|
+
__publicField$2(this, "activeCheckbox");
|
|
3645
|
+
__publicField$2(this, "categoryTypeSelectionList");
|
|
3646
|
+
__publicField$2(this, "filtersResultPopoverItemList");
|
|
3647
|
+
__publicField$2(this, "saveButton");
|
|
3648
|
+
/**
|
|
3649
|
+
* Customisable link
|
|
3650
|
+
*/
|
|
3651
|
+
__publicField$2(this, "entitySelectionList");
|
|
3652
|
+
__publicField$2(this, "linkTypeSelectionList");
|
|
3653
|
+
__publicField$2(this, "categorySelectionList");
|
|
3654
|
+
__publicField$2(this, "productSelectionList");
|
|
3655
|
+
__publicField$2(this, "landingPageSelectionList");
|
|
3656
|
+
__publicField$2(this, "filterResultPopoverTreeCheckboxItemList");
|
|
3657
|
+
__publicField$2(this, "openInNewTabCheckbox");
|
|
3630
3658
|
this.landingPageArea = page.locator(".sw-category-detail__landing-page-collapse");
|
|
3631
3659
|
this.landingPageHeadline = this.landingPageArea.getByRole("heading", { name: "Landing pages" });
|
|
3632
3660
|
this.addLandingPageButton = this.landingPageArea.getByText("Add landing page");
|
|
3633
3661
|
this.landingPageItems = this.landingPageArea.locator(".sw-tree-item__label");
|
|
3662
|
+
this.categoryTree = page.locator(".sw-category-tree");
|
|
3663
|
+
this.homeCategory = this.categoryTree.locator(".sw-tree-item__element").filter({ hasText: "Home" });
|
|
3664
|
+
this.homeCategoryContextButton = this.homeCategory.locator(".sw-context-button__button");
|
|
3665
|
+
this.categoryMenuItemList = page.locator(".sw-context-button__menu-popover").locator(".sw-context-menu-item");
|
|
3666
|
+
this.createCategoryInput = page.getByPlaceholder("Create category").getByRole("textbox");
|
|
3667
|
+
this.confirmCategoryCreationButton = page.locator(".sw-confirm-field").locator(".sw-button--primary");
|
|
3668
|
+
this.categoryItems = this.categoryTree.locator(".sw-tree-item__label");
|
|
3669
|
+
this.nameInput = page.getByLabel("Name");
|
|
3670
|
+
this.activeCheckbox = page.getByRole("checkbox", { name: "Active" });
|
|
3671
|
+
this.saveButton = page.getByRole("button", { name: "Save" });
|
|
3672
|
+
this.categoryTypeSelectionList = page.locator(".sw-select").filter({ hasText: "Category type" }).locator(".sw-select__selection");
|
|
3673
|
+
this.linkTypeSelectionList = page.locator(".sw-select").filter({ hasText: "Link type" }).locator(".sw-select__selection");
|
|
3674
|
+
this.entitySelectionList = page.locator(".sw-select").filter({ hasText: "Entity" }).locator(".sw-select__selection");
|
|
3675
|
+
this.categorySelectionList = page.locator(".sw-select").filter({ hasText: "Category" }).locator(".sw-select__selection");
|
|
3676
|
+
this.productSelectionList = page.locator(".sw-select").filter({ hasText: "Product" }).locator(".sw-select__selection");
|
|
3677
|
+
this.landingPageSelectionList = page.locator(".sw-select").filter({ hasText: "Landing page" }).locator(".sw-select__selection");
|
|
3678
|
+
this.filtersResultPopoverItemList = page.locator(".sw-select-result-list__content").getByRole("listitem");
|
|
3679
|
+
this.filterResultPopoverTreeCheckboxItemList = page.locator(".sw-tree__content").getByRole("checkbox");
|
|
3680
|
+
this.openInNewTabCheckbox = page.getByRole("checkbox", { name: "Open in new tab" });
|
|
3634
3681
|
}
|
|
3635
3682
|
url() {
|
|
3636
3683
|
return `#/sw/category/index`;
|