@shopware-ag/acceptance-test-suite 4.1.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 -0
- package/dist/index.d.ts +29 -0
- package/dist/index.mjs +51 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1287,6 +1287,7 @@ declare class LandingPageCreate implements PageObject {
|
|
|
1287
1287
|
readonly layoutSaveButton: Locator;
|
|
1288
1288
|
readonly layoutEmptyState: Locator;
|
|
1289
1289
|
readonly createNewLayoutButton: Locator;
|
|
1290
|
+
readonly layoutCheckboxes: Locator;
|
|
1290
1291
|
constructor(page: Page);
|
|
1291
1292
|
url(): string;
|
|
1292
1293
|
}
|
|
@@ -1327,6 +1328,34 @@ declare class Categories implements PageObject {
|
|
|
1327
1328
|
readonly landingPageHeadline: Locator;
|
|
1328
1329
|
readonly addLandingPageButton: Locator;
|
|
1329
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;
|
|
1330
1359
|
constructor(page: Page);
|
|
1331
1360
|
url(): string;
|
|
1332
1361
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -1287,6 +1287,7 @@ declare class LandingPageCreate implements PageObject {
|
|
|
1287
1287
|
readonly layoutSaveButton: Locator;
|
|
1288
1288
|
readonly layoutEmptyState: Locator;
|
|
1289
1289
|
readonly createNewLayoutButton: Locator;
|
|
1290
|
+
readonly layoutCheckboxes: Locator;
|
|
1290
1291
|
constructor(page: Page);
|
|
1291
1292
|
url(): string;
|
|
1292
1293
|
}
|
|
@@ -1327,6 +1328,34 @@ declare class Categories implements PageObject {
|
|
|
1327
1328
|
readonly landingPageHeadline: Locator;
|
|
1328
1329
|
readonly addLandingPageButton: Locator;
|
|
1329
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;
|
|
1330
1359
|
constructor(page: Page);
|
|
1331
1360
|
url(): string;
|
|
1332
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
|
*
|
|
@@ -3533,6 +3533,7 @@ class LandingPageCreate {
|
|
|
3533
3533
|
__publicField$4(this, "layoutSaveButton");
|
|
3534
3534
|
__publicField$4(this, "layoutEmptyState");
|
|
3535
3535
|
__publicField$4(this, "createNewLayoutButton");
|
|
3536
|
+
__publicField$4(this, "layoutCheckboxes");
|
|
3536
3537
|
this.loadingSpinner = page.locator(".sw-loader");
|
|
3537
3538
|
this.saveLandingPageButton = page.getByRole("button", { name: "Save" });
|
|
3538
3539
|
this.nameInput = page.getByLabel("Name");
|
|
@@ -3548,6 +3549,8 @@ class LandingPageCreate {
|
|
|
3548
3549
|
const layoutModal = page.getByRole("dialog", { name: "Select layout" });
|
|
3549
3550
|
this.searchLayoutInput = layoutModal.getByPlaceholder("Search layouts...");
|
|
3550
3551
|
this.layoutItems = layoutModal.locator(".sw-cms-list-item");
|
|
3552
|
+
const layoutTable = layoutModal.locator(".sw-data-grid__body");
|
|
3553
|
+
this.layoutCheckboxes = layoutTable.locator(".sw-field--checkbox__content");
|
|
3551
3554
|
this.layoutSaveButton = layoutModal.getByRole("button", { name: "Save" });
|
|
3552
3555
|
}
|
|
3553
3556
|
url() {
|
|
@@ -3624,10 +3627,57 @@ class Categories {
|
|
|
3624
3627
|
__publicField$2(this, "landingPageHeadline");
|
|
3625
3628
|
__publicField$2(this, "addLandingPageButton");
|
|
3626
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");
|
|
3627
3658
|
this.landingPageArea = page.locator(".sw-category-detail__landing-page-collapse");
|
|
3628
3659
|
this.landingPageHeadline = this.landingPageArea.getByRole("heading", { name: "Landing pages" });
|
|
3629
3660
|
this.addLandingPageButton = this.landingPageArea.getByText("Add landing page");
|
|
3630
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" });
|
|
3631
3681
|
}
|
|
3632
3682
|
url() {
|
|
3633
3683
|
return `#/sw/category/index`;
|