@shopware-ag/acceptance-test-suite 11.7.2 → 11.8.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 +4 -2
- package/dist/index.d.ts +4 -2
- package/dist/index.mjs +55 -16
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1647,6 +1647,7 @@ declare const StorefrontPageObjects: {
|
|
|
1647
1647
|
|
|
1648
1648
|
declare class ProductDetail implements PageObject {
|
|
1649
1649
|
readonly page: Page;
|
|
1650
|
+
readonly instanceMeta: HelperFixtureTypes['InstanceMeta'];
|
|
1650
1651
|
/**
|
|
1651
1652
|
* Save interactions
|
|
1652
1653
|
*/
|
|
@@ -1711,7 +1712,7 @@ declare class ProductDetail implements PageObject {
|
|
|
1711
1712
|
* Cards
|
|
1712
1713
|
*/
|
|
1713
1714
|
readonly customFieldCard: Locator;
|
|
1714
|
-
constructor(page: Page);
|
|
1715
|
+
constructor(page: Page, instanceMeta: HelperFixtureTypes['InstanceMeta']);
|
|
1715
1716
|
getCustomFieldSetCardContentByName(customFieldSetName: string): Promise<Record<string, Locator>>;
|
|
1716
1717
|
url(productId: string): string;
|
|
1717
1718
|
}
|
|
@@ -2110,12 +2111,13 @@ declare class CustomFieldDetail extends CustomFieldCreate {
|
|
|
2110
2111
|
|
|
2111
2112
|
declare class CategoryDetail implements PageObject {
|
|
2112
2113
|
readonly page: Page;
|
|
2114
|
+
readonly instanceMeta: HelperFixtureTypes['InstanceMeta'];
|
|
2113
2115
|
readonly saveButton: Locator;
|
|
2114
2116
|
readonly cancelButton: Locator;
|
|
2115
2117
|
readonly customFieldCard: Locator;
|
|
2116
2118
|
readonly customFieldSetTabs: Locator;
|
|
2117
2119
|
readonly customFieldSetTabCustomContent: Locator;
|
|
2118
|
-
constructor(page: Page);
|
|
2120
|
+
constructor(page: Page, instanceMeta: HelperFixtureTypes['InstanceMeta']);
|
|
2119
2121
|
getCustomFieldSetCardContentByName(customFieldSetName: string): Promise<Record<string, Locator>>;
|
|
2120
2122
|
url(categoryUuid: string): string;
|
|
2121
2123
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -1647,6 +1647,7 @@ declare const StorefrontPageObjects: {
|
|
|
1647
1647
|
|
|
1648
1648
|
declare class ProductDetail implements PageObject {
|
|
1649
1649
|
readonly page: Page;
|
|
1650
|
+
readonly instanceMeta: HelperFixtureTypes['InstanceMeta'];
|
|
1650
1651
|
/**
|
|
1651
1652
|
* Save interactions
|
|
1652
1653
|
*/
|
|
@@ -1711,7 +1712,7 @@ declare class ProductDetail implements PageObject {
|
|
|
1711
1712
|
* Cards
|
|
1712
1713
|
*/
|
|
1713
1714
|
readonly customFieldCard: Locator;
|
|
1714
|
-
constructor(page: Page);
|
|
1715
|
+
constructor(page: Page, instanceMeta: HelperFixtureTypes['InstanceMeta']);
|
|
1715
1716
|
getCustomFieldSetCardContentByName(customFieldSetName: string): Promise<Record<string, Locator>>;
|
|
1716
1717
|
url(productId: string): string;
|
|
1717
1718
|
}
|
|
@@ -2110,12 +2111,13 @@ declare class CustomFieldDetail extends CustomFieldCreate {
|
|
|
2110
2111
|
|
|
2111
2112
|
declare class CategoryDetail implements PageObject {
|
|
2112
2113
|
readonly page: Page;
|
|
2114
|
+
readonly instanceMeta: HelperFixtureTypes['InstanceMeta'];
|
|
2113
2115
|
readonly saveButton: Locator;
|
|
2114
2116
|
readonly cancelButton: Locator;
|
|
2115
2117
|
readonly customFieldCard: Locator;
|
|
2116
2118
|
readonly customFieldSetTabs: Locator;
|
|
2117
2119
|
readonly customFieldSetTabCustomContent: Locator;
|
|
2118
|
-
constructor(page: Page);
|
|
2120
|
+
constructor(page: Page, instanceMeta: HelperFixtureTypes['InstanceMeta']);
|
|
2119
2121
|
getCustomFieldSetCardContentByName(customFieldSetName: string): Promise<Record<string, Locator>>;
|
|
2120
2122
|
url(categoryUuid: string): string;
|
|
2121
2123
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -4478,8 +4478,9 @@ var __publicField$w = (obj, key, value) => {
|
|
|
4478
4478
|
return value;
|
|
4479
4479
|
};
|
|
4480
4480
|
class ProductDetail {
|
|
4481
|
-
constructor(page) {
|
|
4481
|
+
constructor(page, instanceMeta) {
|
|
4482
4482
|
this.page = page;
|
|
4483
|
+
this.instanceMeta = instanceMeta;
|
|
4483
4484
|
/**
|
|
4484
4485
|
* Save interactions
|
|
4485
4486
|
*/
|
|
@@ -4574,10 +4575,19 @@ class ProductDetail {
|
|
|
4574
4575
|
this.propertyOptionSizeMedium = this.propertyOptionGrid.getByLabel("Medium");
|
|
4575
4576
|
this.propertyOptionSizeLarge = this.propertyOptionGrid.getByLabel("Large");
|
|
4576
4577
|
this.specificationsTabLink = page.getByRole("tab", { name: "Specifications" });
|
|
4577
|
-
|
|
4578
|
+
if (satisfies(instanceMeta.version, "<6.7")) {
|
|
4579
|
+
this.customFieldCard = page.locator(".sw-card").getByText("Custom fields");
|
|
4580
|
+
} else {
|
|
4581
|
+
this.customFieldCard = page.locator(".mt-card").getByText("Custom fields");
|
|
4582
|
+
}
|
|
4578
4583
|
}
|
|
4579
4584
|
async getCustomFieldSetCardContentByName(customFieldSetName) {
|
|
4580
|
-
|
|
4585
|
+
let customFieldCard;
|
|
4586
|
+
if (satisfies(this.instanceMeta.version, "<6.7")) {
|
|
4587
|
+
customFieldCard = this.page.locator(".sw-card").filter({ hasText: "Custom fields" });
|
|
4588
|
+
} else {
|
|
4589
|
+
customFieldCard = this.page.locator(".mt-card").filter({ hasText: "Custom fields" });
|
|
4590
|
+
}
|
|
4581
4591
|
const customFieldSetTab = customFieldCard.getByText(customFieldSetName);
|
|
4582
4592
|
const customFieldSetTabCustomContent = customFieldCard.locator(`.sw-custom-field-set-renderer-tab-content__${customFieldSetName}`);
|
|
4583
4593
|
return {
|
|
@@ -4713,7 +4723,11 @@ class CustomerDetail {
|
|
|
4713
4723
|
this.editButton = page.getByRole("button", { name: "Edit" });
|
|
4714
4724
|
this.generalTab = page.getByRole("link", { name: "General" });
|
|
4715
4725
|
this.accountCard = page.locator(".sw-customer-card");
|
|
4716
|
-
|
|
4726
|
+
if (satisfies(instanceMeta.version, "<6.7")) {
|
|
4727
|
+
this.customFieldCard = page.locator(".sw-card").getByText("Custom fields");
|
|
4728
|
+
} else {
|
|
4729
|
+
this.customFieldCard = page.locator(".mt-card").getByText("Custom fields");
|
|
4730
|
+
}
|
|
4717
4731
|
this.customFieldSetTabs = this.customFieldCard.locator(".sw-tabs-item");
|
|
4718
4732
|
this.customFieldSetTabCustomContent = this.customFieldCard.locator(".sw-tabs__custom-content");
|
|
4719
4733
|
if (satisfies(instanceMeta.version, "<6.7")) {
|
|
@@ -4727,7 +4741,12 @@ class CustomerDetail {
|
|
|
4727
4741
|
this.tagItems = this.tagList.locator(".sw-select-selection-list__item");
|
|
4728
4742
|
}
|
|
4729
4743
|
async getCustomFieldSetCardContentByName(customFieldSetName) {
|
|
4730
|
-
|
|
4744
|
+
let customFieldCard;
|
|
4745
|
+
if (satisfies(this.instanceMeta.version, "<6.7")) {
|
|
4746
|
+
customFieldCard = this.page.locator(".sw-card").filter({ hasText: "Custom fields" });
|
|
4747
|
+
} else {
|
|
4748
|
+
customFieldCard = this.page.locator(".mt-card").filter({ hasText: "Custom fields" });
|
|
4749
|
+
}
|
|
4731
4750
|
const customFieldSetTab = customFieldCard.getByText(customFieldSetName);
|
|
4732
4751
|
const customFieldSetTabCustomContent = customFieldCard.locator(`.sw-custom-field-set-renderer-tab-content__${customFieldSetName}`);
|
|
4733
4752
|
return {
|
|
@@ -4828,10 +4847,11 @@ class CustomerGroupCreate {
|
|
|
4828
4847
|
this.signupFormTitle = page.locator("#sw-field--customerGroup-registrationTitle");
|
|
4829
4848
|
if (satisfies(instanceMeta.version, "<6.7")) {
|
|
4830
4849
|
this.signupFormIntroduction = page.locator(".sw-text-editor__content-editor");
|
|
4850
|
+
this.signupFormSeoDescription = page.locator("#sw-field--customerGroup-registrationSeoMetaDescription");
|
|
4831
4851
|
} else {
|
|
4832
4852
|
this.signupFormIntroduction = page.locator(".mt-text-editor__content-editor");
|
|
4853
|
+
this.signupFormSeoDescription = page.getByRole("textbox", { name: "SEO meta description" });
|
|
4833
4854
|
}
|
|
4834
|
-
this.signupFormSeoDescription = page.locator("#sw-field--customerGroup-registrationSeoMetaDescription");
|
|
4835
4855
|
this.signupFormCompanySignupToggle = page.getByLabel("Company signup form");
|
|
4836
4856
|
this.customerGroupSaleschannelSelection = page.locator("input[class=sw-select-selection-list__input]");
|
|
4837
4857
|
this.customerGroupSaleschannelResultList = page.locator(".sw-select-result-list__content");
|
|
@@ -5387,7 +5407,7 @@ class Categories {
|
|
|
5387
5407
|
this.categoryTree = page.locator(".sw-category-tree");
|
|
5388
5408
|
this.categoryMenuItemList = page.locator(".sw-context-menu-item");
|
|
5389
5409
|
this.createCategoryInput = page.getByPlaceholder("Create category").getByRole("textbox");
|
|
5390
|
-
this.confirmCategoryCreationButton = page.locator(".sw-confirm-field").locator(".sw-
|
|
5410
|
+
this.confirmCategoryCreationButton = page.locator(".sw-confirm-field").locator(".sw-confirm-field__button--submit");
|
|
5391
5411
|
this.categoryItems = this.categoryTree.locator(".tree-link");
|
|
5392
5412
|
this.confirmCategoryCancelButton = page.locator(".sw-confirm-field").locator(".sw-confirm-field__button--cancel");
|
|
5393
5413
|
this.nameInput = page.getByLabel("Name");
|
|
@@ -5565,8 +5585,9 @@ var __publicField$a = (obj, key, value) => {
|
|
|
5565
5585
|
return value;
|
|
5566
5586
|
};
|
|
5567
5587
|
class CategoryDetail {
|
|
5568
|
-
constructor(page) {
|
|
5588
|
+
constructor(page, instanceMeta) {
|
|
5569
5589
|
this.page = page;
|
|
5590
|
+
this.instanceMeta = instanceMeta;
|
|
5570
5591
|
__publicField$a(this, "saveButton");
|
|
5571
5592
|
__publicField$a(this, "cancelButton");
|
|
5572
5593
|
__publicField$a(this, "customFieldCard");
|
|
@@ -5574,12 +5595,21 @@ class CategoryDetail {
|
|
|
5574
5595
|
__publicField$a(this, "customFieldSetTabCustomContent");
|
|
5575
5596
|
this.saveButton = page.getByRole("button", { name: "Save" });
|
|
5576
5597
|
this.cancelButton = page.getByRole("button", { name: "Cancel" });
|
|
5577
|
-
|
|
5598
|
+
if (satisfies(instanceMeta.version, "<6.7")) {
|
|
5599
|
+
this.customFieldCard = page.locator(".sw-card").getByText("Custom fields");
|
|
5600
|
+
} else {
|
|
5601
|
+
this.customFieldCard = page.locator(".mt-card").getByText("Custom fields");
|
|
5602
|
+
}
|
|
5578
5603
|
this.customFieldSetTabs = this.customFieldCard.locator(".sw-tabs-item");
|
|
5579
5604
|
this.customFieldSetTabCustomContent = this.customFieldCard.locator(".sw-tabs__custom-content");
|
|
5580
5605
|
}
|
|
5581
5606
|
async getCustomFieldSetCardContentByName(customFieldSetName) {
|
|
5582
|
-
|
|
5607
|
+
let customFieldCard;
|
|
5608
|
+
if (satisfies(this.instanceMeta.version, "<6.7")) {
|
|
5609
|
+
customFieldCard = this.page.locator(".sw-card").filter({ hasText: "Custom fields" });
|
|
5610
|
+
} else {
|
|
5611
|
+
customFieldCard = this.page.locator(".mt-card").filter({ hasText: "Custom fields" });
|
|
5612
|
+
}
|
|
5583
5613
|
const customFieldSetTab = customFieldCard.getByText(customFieldSetName);
|
|
5584
5614
|
const customFieldSetTabCustomContent = customFieldCard.locator(`.sw-custom-field-set-renderer-tab-content__${customFieldSetName}`);
|
|
5585
5615
|
return {
|
|
@@ -5786,12 +5816,21 @@ class ManufacturerDetail extends ManufacturerCreate {
|
|
|
5786
5816
|
__publicField$4(this, "customFieldCard");
|
|
5787
5817
|
__publicField$4(this, "customFieldSetTabs");
|
|
5788
5818
|
__publicField$4(this, "customFieldSetTabCustomContent");
|
|
5789
|
-
|
|
5819
|
+
if (satisfies(instanceMeta.version, "<6.7")) {
|
|
5820
|
+
this.customFieldCard = page.locator(".sw-card").getByText("Custom fields");
|
|
5821
|
+
} else {
|
|
5822
|
+
this.customFieldCard = page.locator(".mt-card").getByText("Custom fields");
|
|
5823
|
+
}
|
|
5790
5824
|
this.customFieldSetTabs = this.customFieldCard.locator(".sw-tabs-item");
|
|
5791
5825
|
this.customFieldSetTabCustomContent = this.customFieldCard.locator(".sw-tabs__custom-content");
|
|
5792
5826
|
}
|
|
5793
5827
|
async getCustomFieldSetCardContentByName(customFieldSetName) {
|
|
5794
|
-
|
|
5828
|
+
let customFieldCard;
|
|
5829
|
+
if (satisfies(this.instanceMeta.version, "<6.7")) {
|
|
5830
|
+
customFieldCard = this.page.locator(".mt-card").filter({ hasText: "Custom fields" });
|
|
5831
|
+
} else {
|
|
5832
|
+
customFieldCard = this.page.locator(".mt-card").filter({ hasText: "Custom fields" });
|
|
5833
|
+
}
|
|
5795
5834
|
const customFieldSetTab = customFieldCard.getByText(customFieldSetName);
|
|
5796
5835
|
const customFieldSetTabCustomContent = customFieldCard.locator(`.sw-custom-field-set-renderer-tab-content__${customFieldSetName}`);
|
|
5797
5836
|
return {
|
|
@@ -6088,8 +6127,8 @@ const AdminPageObjects = {
|
|
|
6088
6127
|
CustomerBulkEdit
|
|
6089
6128
|
};
|
|
6090
6129
|
const test$5 = test$e.extend({
|
|
6091
|
-
AdminProductDetail: async ({ AdminPage }, use) => {
|
|
6092
|
-
await use(new ProductDetail(AdminPage));
|
|
6130
|
+
AdminProductDetail: async ({ AdminPage, InstanceMeta }, use) => {
|
|
6131
|
+
await use(new ProductDetail(AdminPage, InstanceMeta));
|
|
6093
6132
|
},
|
|
6094
6133
|
AdminOrderDetail: async ({ AdminPage }, use) => {
|
|
6095
6134
|
await use(new OrderDetail(AdminPage));
|
|
@@ -6139,8 +6178,8 @@ const test$5 = test$e.extend({
|
|
|
6139
6178
|
AdminCategories: async ({ AdminPage }, use) => {
|
|
6140
6179
|
await use(new Categories(AdminPage));
|
|
6141
6180
|
},
|
|
6142
|
-
AdminCategoryDetail: async ({ AdminPage }, use) => {
|
|
6143
|
-
await use(new CategoryDetail(AdminPage));
|
|
6181
|
+
AdminCategoryDetail: async ({ AdminPage, InstanceMeta }, use) => {
|
|
6182
|
+
await use(new CategoryDetail(AdminPage, InstanceMeta));
|
|
6144
6183
|
},
|
|
6145
6184
|
AdminLandingPageDetail: async ({ AdminPage }, use) => {
|
|
6146
6185
|
await use(new LandingPageDetail(AdminPage));
|