@shopware-ag/acceptance-test-suite 8.3.0 → 9.0.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 +7 -3
- package/dist/index.d.ts +7 -3
- package/dist/index.mjs +7 -8
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -353,8 +353,13 @@ type Language$1 = components['schemas']['Language'] & {
|
|
|
353
353
|
type CustomFieldSet = components['schemas']['CustomFieldSet'] & {
|
|
354
354
|
id: string;
|
|
355
355
|
};
|
|
356
|
-
type CustomField = components['schemas']['CustomField'] & {
|
|
356
|
+
type CustomField = Omit<components['schemas']['CustomField'], 'config'> & {
|
|
357
357
|
id: string;
|
|
358
|
+
config: {
|
|
359
|
+
label: {
|
|
360
|
+
'en-GB': string;
|
|
361
|
+
};
|
|
362
|
+
};
|
|
358
363
|
};
|
|
359
364
|
|
|
360
365
|
interface SalesChannelRecord {
|
|
@@ -1690,8 +1695,6 @@ declare class Categories implements PageObject {
|
|
|
1690
1695
|
* Category tree
|
|
1691
1696
|
*/
|
|
1692
1697
|
readonly categoryTree: Locator;
|
|
1693
|
-
readonly homeCategory: Locator;
|
|
1694
|
-
readonly homeCategoryContextButton: Locator;
|
|
1695
1698
|
readonly categoryMenuItemList: Locator;
|
|
1696
1699
|
readonly createCategoryInput: Locator;
|
|
1697
1700
|
readonly confirmCategoryCreationButton: Locator;
|
|
@@ -1721,6 +1724,7 @@ declare class Categories implements PageObject {
|
|
|
1721
1724
|
constructor(page: Page);
|
|
1722
1725
|
getLandingPageByName(landingPageName: string): Promise<Locator>;
|
|
1723
1726
|
getPopOverCategoryByName(categoryName: string): Promise<Locator>;
|
|
1727
|
+
getTreeItemContextButton(name: string): Locator;
|
|
1724
1728
|
url(): string;
|
|
1725
1729
|
}
|
|
1726
1730
|
|
package/dist/index.d.ts
CHANGED
|
@@ -353,8 +353,13 @@ type Language$1 = components['schemas']['Language'] & {
|
|
|
353
353
|
type CustomFieldSet = components['schemas']['CustomFieldSet'] & {
|
|
354
354
|
id: string;
|
|
355
355
|
};
|
|
356
|
-
type CustomField = components['schemas']['CustomField'] & {
|
|
356
|
+
type CustomField = Omit<components['schemas']['CustomField'], 'config'> & {
|
|
357
357
|
id: string;
|
|
358
|
+
config: {
|
|
359
|
+
label: {
|
|
360
|
+
'en-GB': string;
|
|
361
|
+
};
|
|
362
|
+
};
|
|
358
363
|
};
|
|
359
364
|
|
|
360
365
|
interface SalesChannelRecord {
|
|
@@ -1690,8 +1695,6 @@ declare class Categories implements PageObject {
|
|
|
1690
1695
|
* Category tree
|
|
1691
1696
|
*/
|
|
1692
1697
|
readonly categoryTree: Locator;
|
|
1693
|
-
readonly homeCategory: Locator;
|
|
1694
|
-
readonly homeCategoryContextButton: Locator;
|
|
1695
1698
|
readonly categoryMenuItemList: Locator;
|
|
1696
1699
|
readonly createCategoryInput: Locator;
|
|
1697
1700
|
readonly confirmCategoryCreationButton: Locator;
|
|
@@ -1721,6 +1724,7 @@ declare class Categories implements PageObject {
|
|
|
1721
1724
|
constructor(page: Page);
|
|
1722
1725
|
getLandingPageByName(landingPageName: string): Promise<Locator>;
|
|
1723
1726
|
getPopOverCategoryByName(categoryName: string): Promise<Locator>;
|
|
1727
|
+
getTreeItemContextButton(name: string): Locator;
|
|
1724
1728
|
url(): string;
|
|
1725
1729
|
}
|
|
1726
1730
|
|
package/dist/index.mjs
CHANGED
|
@@ -3409,7 +3409,7 @@ class AccountLogin {
|
|
|
3409
3409
|
this.logoutLink = page.getByRole("link", { name: "Log out" });
|
|
3410
3410
|
this.personalFormArea = page.locator(".register-personal");
|
|
3411
3411
|
this.billingAddressFormArea = page.locator(".register-billing");
|
|
3412
|
-
this.accountTypeSelect = this.personalFormArea.locator("
|
|
3412
|
+
this.accountTypeSelect = this.personalFormArea.locator(".contact-select");
|
|
3413
3413
|
this.salutationSelect = this.personalFormArea.locator("#personalSalutation");
|
|
3414
3414
|
this.firstNameInput = this.personalFormArea.getByLabel("First name*");
|
|
3415
3415
|
this.lastNameInput = this.personalFormArea.getByLabel("Last name*");
|
|
@@ -3575,7 +3575,7 @@ class AccountPayment {
|
|
|
3575
3575
|
this.cashOnDeliveryOption = page.getByLabel("Cash on delivery");
|
|
3576
3576
|
this.paidInAdvanceOption = page.getByLabel("Paid in advance");
|
|
3577
3577
|
this.invoiceOption = page.getByLabel("Invoice");
|
|
3578
|
-
this.changeDefaultPaymentButton = page.getByRole("button", { name: "Change" });
|
|
3578
|
+
this.changeDefaultPaymentButton = page.getByRole("button", { name: "Change", exact: true });
|
|
3579
3579
|
}
|
|
3580
3580
|
url() {
|
|
3581
3581
|
return "account/payment";
|
|
@@ -4536,8 +4536,6 @@ class Categories {
|
|
|
4536
4536
|
* Category tree
|
|
4537
4537
|
*/
|
|
4538
4538
|
__publicField$d(this, "categoryTree");
|
|
4539
|
-
__publicField$d(this, "homeCategory");
|
|
4540
|
-
__publicField$d(this, "homeCategoryContextButton");
|
|
4541
4539
|
__publicField$d(this, "categoryMenuItemList");
|
|
4542
4540
|
__publicField$d(this, "createCategoryInput");
|
|
4543
4541
|
__publicField$d(this, "confirmCategoryCreationButton");
|
|
@@ -4569,8 +4567,6 @@ class Categories {
|
|
|
4569
4567
|
this.addLandingPageButton = this.landingPageArea.getByText("Add landing page");
|
|
4570
4568
|
this.landingPageItems = this.landingPageArea.locator(".sw-tree-item__label");
|
|
4571
4569
|
this.categoryTree = page.locator(".sw-category-tree");
|
|
4572
|
-
this.homeCategory = this.categoryTree.locator(".sw-tree-item__element").filter({ hasText: "Home" });
|
|
4573
|
-
this.homeCategoryContextButton = this.homeCategory.locator(".sw-context-button__button");
|
|
4574
4570
|
this.categoryMenuItemList = page.locator(".sw-context-button__menu-popover").locator(".sw-context-menu-item");
|
|
4575
4571
|
this.createCategoryInput = page.getByPlaceholder("Create category").getByRole("textbox");
|
|
4576
4572
|
this.confirmCategoryCreationButton = page.locator(".sw-confirm-field").locator(".sw-button--primary");
|
|
@@ -4598,6 +4594,9 @@ class Categories {
|
|
|
4598
4594
|
async getPopOverCategoryByName(categoryName) {
|
|
4599
4595
|
return this.popoverCategoryTree.locator(".sw-tree-item__element").filter({ hasText: `${categoryName}` });
|
|
4600
4596
|
}
|
|
4597
|
+
getTreeItemContextButton(name) {
|
|
4598
|
+
return this.categoryTree.locator(".sw-tree-item__element").filter({ hasText: name }).locator(".sw-context-button__button");
|
|
4599
|
+
}
|
|
4601
4600
|
url() {
|
|
4602
4601
|
return `#/sw/category/index`;
|
|
4603
4602
|
}
|
|
@@ -5877,9 +5876,9 @@ const ExpectNotification = test$e.extend({
|
|
|
5877
5876
|
|
|
5878
5877
|
const CreateLinkTypeCategory = test$e.extend({
|
|
5879
5878
|
CreateLinkTypeCategory: async ({ AdminCategories, AdminCategoryDetail, TestDataService }, use) => {
|
|
5880
|
-
const task = (categoryData, categoryCustomizableLinkData) => {
|
|
5879
|
+
const task = (categoryData, categoryCustomizableLinkData, parentCategoryName) => {
|
|
5881
5880
|
return async function CreateLinkTypeCategory2() {
|
|
5882
|
-
await AdminCategories.
|
|
5881
|
+
await AdminCategories.getTreeItemContextButton(parentCategoryName).click();
|
|
5883
5882
|
await AdminCategories.categoryMenuItemList.filter({ hasText: "New category after" }).click();
|
|
5884
5883
|
await AdminCategories.createCategoryInput.fill(categoryData.name);
|
|
5885
5884
|
await AdminCategories.confirmCategoryCreationButton.click();
|