@shopware-ag/acceptance-test-suite 11.8.0 → 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 +52 -14
- 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 {
|
|
@@ -5566,8 +5585,9 @@ var __publicField$a = (obj, key, value) => {
|
|
|
5566
5585
|
return value;
|
|
5567
5586
|
};
|
|
5568
5587
|
class CategoryDetail {
|
|
5569
|
-
constructor(page) {
|
|
5588
|
+
constructor(page, instanceMeta) {
|
|
5570
5589
|
this.page = page;
|
|
5590
|
+
this.instanceMeta = instanceMeta;
|
|
5571
5591
|
__publicField$a(this, "saveButton");
|
|
5572
5592
|
__publicField$a(this, "cancelButton");
|
|
5573
5593
|
__publicField$a(this, "customFieldCard");
|
|
@@ -5575,12 +5595,21 @@ class CategoryDetail {
|
|
|
5575
5595
|
__publicField$a(this, "customFieldSetTabCustomContent");
|
|
5576
5596
|
this.saveButton = page.getByRole("button", { name: "Save" });
|
|
5577
5597
|
this.cancelButton = page.getByRole("button", { name: "Cancel" });
|
|
5578
|
-
|
|
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
|
+
}
|
|
5579
5603
|
this.customFieldSetTabs = this.customFieldCard.locator(".sw-tabs-item");
|
|
5580
5604
|
this.customFieldSetTabCustomContent = this.customFieldCard.locator(".sw-tabs__custom-content");
|
|
5581
5605
|
}
|
|
5582
5606
|
async getCustomFieldSetCardContentByName(customFieldSetName) {
|
|
5583
|
-
|
|
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
|
+
}
|
|
5584
5613
|
const customFieldSetTab = customFieldCard.getByText(customFieldSetName);
|
|
5585
5614
|
const customFieldSetTabCustomContent = customFieldCard.locator(`.sw-custom-field-set-renderer-tab-content__${customFieldSetName}`);
|
|
5586
5615
|
return {
|
|
@@ -5787,12 +5816,21 @@ class ManufacturerDetail extends ManufacturerCreate {
|
|
|
5787
5816
|
__publicField$4(this, "customFieldCard");
|
|
5788
5817
|
__publicField$4(this, "customFieldSetTabs");
|
|
5789
5818
|
__publicField$4(this, "customFieldSetTabCustomContent");
|
|
5790
|
-
|
|
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
|
+
}
|
|
5791
5824
|
this.customFieldSetTabs = this.customFieldCard.locator(".sw-tabs-item");
|
|
5792
5825
|
this.customFieldSetTabCustomContent = this.customFieldCard.locator(".sw-tabs__custom-content");
|
|
5793
5826
|
}
|
|
5794
5827
|
async getCustomFieldSetCardContentByName(customFieldSetName) {
|
|
5795
|
-
|
|
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
|
+
}
|
|
5796
5834
|
const customFieldSetTab = customFieldCard.getByText(customFieldSetName);
|
|
5797
5835
|
const customFieldSetTabCustomContent = customFieldCard.locator(`.sw-custom-field-set-renderer-tab-content__${customFieldSetName}`);
|
|
5798
5836
|
return {
|
|
@@ -6089,8 +6127,8 @@ const AdminPageObjects = {
|
|
|
6089
6127
|
CustomerBulkEdit
|
|
6090
6128
|
};
|
|
6091
6129
|
const test$5 = test$e.extend({
|
|
6092
|
-
AdminProductDetail: async ({ AdminPage }, use) => {
|
|
6093
|
-
await use(new ProductDetail(AdminPage));
|
|
6130
|
+
AdminProductDetail: async ({ AdminPage, InstanceMeta }, use) => {
|
|
6131
|
+
await use(new ProductDetail(AdminPage, InstanceMeta));
|
|
6094
6132
|
},
|
|
6095
6133
|
AdminOrderDetail: async ({ AdminPage }, use) => {
|
|
6096
6134
|
await use(new OrderDetail(AdminPage));
|
|
@@ -6140,8 +6178,8 @@ const test$5 = test$e.extend({
|
|
|
6140
6178
|
AdminCategories: async ({ AdminPage }, use) => {
|
|
6141
6179
|
await use(new Categories(AdminPage));
|
|
6142
6180
|
},
|
|
6143
|
-
AdminCategoryDetail: async ({ AdminPage }, use) => {
|
|
6144
|
-
await use(new CategoryDetail(AdminPage));
|
|
6181
|
+
AdminCategoryDetail: async ({ AdminPage, InstanceMeta }, use) => {
|
|
6182
|
+
await use(new CategoryDetail(AdminPage, InstanceMeta));
|
|
6145
6183
|
},
|
|
6146
6184
|
AdminLandingPageDetail: async ({ AdminPage }, use) => {
|
|
6147
6185
|
await use(new LandingPageDetail(AdminPage));
|