@shopware-ag/acceptance-test-suite 11.9.3 → 11.10.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 +25 -3
- package/dist/index.d.ts +25 -3
- package/dist/index.mjs +59 -10
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1753,15 +1753,28 @@ declare class ProductDetail implements PageObject {
|
|
|
1753
1753
|
constructor(page: Page, instanceMeta: HelperFixtureTypes['InstanceMeta']);
|
|
1754
1754
|
getCustomFieldSetCardContentByName(customFieldSetName: string): Promise<Record<string, Locator>>;
|
|
1755
1755
|
url(productId: string): string;
|
|
1756
|
+
getCustomFieldCardLocators(customFieldSetName: string, customFieldTextName: string): Promise<{
|
|
1757
|
+
customFieldCard: Locator;
|
|
1758
|
+
customFieldSetTab: Locator;
|
|
1759
|
+
customFieldLabel: Locator;
|
|
1760
|
+
customFieldSelect: Locator;
|
|
1761
|
+
}>;
|
|
1756
1762
|
}
|
|
1757
1763
|
|
|
1758
1764
|
declare class OrderDetail implements PageObject {
|
|
1759
1765
|
readonly page: Page;
|
|
1766
|
+
readonly instanceMeta: HelperFixtureTypes['InstanceMeta'];
|
|
1760
1767
|
readonly saveButton: Locator;
|
|
1761
1768
|
readonly dataGridContextButton: Locator;
|
|
1762
1769
|
readonly orderTag: Locator;
|
|
1763
|
-
constructor(page: Page);
|
|
1764
|
-
url(orderId: string): string;
|
|
1770
|
+
constructor(page: Page, instanceMeta: HelperFixtureTypes['InstanceMeta']);
|
|
1771
|
+
url(orderId: string, tabName?: string): string;
|
|
1772
|
+
getCustomFieldCardLocators(customFieldSetName: string, customFieldTextName: string): Promise<{
|
|
1773
|
+
customFieldCard: Locator;
|
|
1774
|
+
customFieldSetTab: Locator;
|
|
1775
|
+
customFieldLabel: Locator;
|
|
1776
|
+
customFieldSelect: Locator;
|
|
1777
|
+
}>;
|
|
1765
1778
|
}
|
|
1766
1779
|
|
|
1767
1780
|
declare class CustomerListing implements PageObject {
|
|
@@ -2126,6 +2139,7 @@ declare class CustomFieldCreate implements PageObject {
|
|
|
2126
2139
|
|
|
2127
2140
|
declare class CustomFieldDetail extends CustomFieldCreate {
|
|
2128
2141
|
readonly page: Page;
|
|
2142
|
+
readonly instanceMeta: HelperFixtureTypes['InstanceMeta'];
|
|
2129
2143
|
readonly newCustomFieldButton: Locator;
|
|
2130
2144
|
readonly customFieldEditDialog: Locator;
|
|
2131
2145
|
readonly newCustomFieldDialog: Locator;
|
|
@@ -2143,9 +2157,11 @@ declare class CustomFieldDetail extends CustomFieldCreate {
|
|
|
2143
2157
|
readonly customFieldDeleteDialog: Locator;
|
|
2144
2158
|
readonly customFieldDeleteCancelButton: Locator;
|
|
2145
2159
|
readonly customFieldDeleteButton: Locator;
|
|
2146
|
-
|
|
2160
|
+
readonly customFieldEditAvailableInShoppingCartCheckbox: Locator;
|
|
2161
|
+
constructor(page: Page, instanceMeta: HelperFixtureTypes['InstanceMeta']);
|
|
2147
2162
|
getLineItemByCustomFieldName(customFieldName: string): Promise<Record<string, Locator>>;
|
|
2148
2163
|
url(customFieldUuid?: string): string;
|
|
2164
|
+
getSelectFieldListitem(selectField: Locator, listItem: string): Promise<Locator>;
|
|
2149
2165
|
}
|
|
2150
2166
|
|
|
2151
2167
|
declare class CategoryDetail implements PageObject {
|
|
@@ -2159,6 +2175,12 @@ declare class CategoryDetail implements PageObject {
|
|
|
2159
2175
|
constructor(page: Page, instanceMeta: HelperFixtureTypes['InstanceMeta']);
|
|
2160
2176
|
getCustomFieldSetCardContentByName(customFieldSetName: string): Promise<Record<string, Locator>>;
|
|
2161
2177
|
url(categoryUuid: string): string;
|
|
2178
|
+
getCustomFieldCardLocators(customFieldSetName: string, customFieldTextName: string): Promise<{
|
|
2179
|
+
customFieldCard: Locator;
|
|
2180
|
+
customFieldSetTab: Locator;
|
|
2181
|
+
customFieldLabel: Locator;
|
|
2182
|
+
customFieldSelect: Locator;
|
|
2183
|
+
}>;
|
|
2162
2184
|
}
|
|
2163
2185
|
|
|
2164
2186
|
declare class RuleCreate implements PageObject {
|
package/dist/index.d.ts
CHANGED
|
@@ -1753,15 +1753,28 @@ declare class ProductDetail implements PageObject {
|
|
|
1753
1753
|
constructor(page: Page, instanceMeta: HelperFixtureTypes['InstanceMeta']);
|
|
1754
1754
|
getCustomFieldSetCardContentByName(customFieldSetName: string): Promise<Record<string, Locator>>;
|
|
1755
1755
|
url(productId: string): string;
|
|
1756
|
+
getCustomFieldCardLocators(customFieldSetName: string, customFieldTextName: string): Promise<{
|
|
1757
|
+
customFieldCard: Locator;
|
|
1758
|
+
customFieldSetTab: Locator;
|
|
1759
|
+
customFieldLabel: Locator;
|
|
1760
|
+
customFieldSelect: Locator;
|
|
1761
|
+
}>;
|
|
1756
1762
|
}
|
|
1757
1763
|
|
|
1758
1764
|
declare class OrderDetail implements PageObject {
|
|
1759
1765
|
readonly page: Page;
|
|
1766
|
+
readonly instanceMeta: HelperFixtureTypes['InstanceMeta'];
|
|
1760
1767
|
readonly saveButton: Locator;
|
|
1761
1768
|
readonly dataGridContextButton: Locator;
|
|
1762
1769
|
readonly orderTag: Locator;
|
|
1763
|
-
constructor(page: Page);
|
|
1764
|
-
url(orderId: string): string;
|
|
1770
|
+
constructor(page: Page, instanceMeta: HelperFixtureTypes['InstanceMeta']);
|
|
1771
|
+
url(orderId: string, tabName?: string): string;
|
|
1772
|
+
getCustomFieldCardLocators(customFieldSetName: string, customFieldTextName: string): Promise<{
|
|
1773
|
+
customFieldCard: Locator;
|
|
1774
|
+
customFieldSetTab: Locator;
|
|
1775
|
+
customFieldLabel: Locator;
|
|
1776
|
+
customFieldSelect: Locator;
|
|
1777
|
+
}>;
|
|
1765
1778
|
}
|
|
1766
1779
|
|
|
1767
1780
|
declare class CustomerListing implements PageObject {
|
|
@@ -2126,6 +2139,7 @@ declare class CustomFieldCreate implements PageObject {
|
|
|
2126
2139
|
|
|
2127
2140
|
declare class CustomFieldDetail extends CustomFieldCreate {
|
|
2128
2141
|
readonly page: Page;
|
|
2142
|
+
readonly instanceMeta: HelperFixtureTypes['InstanceMeta'];
|
|
2129
2143
|
readonly newCustomFieldButton: Locator;
|
|
2130
2144
|
readonly customFieldEditDialog: Locator;
|
|
2131
2145
|
readonly newCustomFieldDialog: Locator;
|
|
@@ -2143,9 +2157,11 @@ declare class CustomFieldDetail extends CustomFieldCreate {
|
|
|
2143
2157
|
readonly customFieldDeleteDialog: Locator;
|
|
2144
2158
|
readonly customFieldDeleteCancelButton: Locator;
|
|
2145
2159
|
readonly customFieldDeleteButton: Locator;
|
|
2146
|
-
|
|
2160
|
+
readonly customFieldEditAvailableInShoppingCartCheckbox: Locator;
|
|
2161
|
+
constructor(page: Page, instanceMeta: HelperFixtureTypes['InstanceMeta']);
|
|
2147
2162
|
getLineItemByCustomFieldName(customFieldName: string): Promise<Record<string, Locator>>;
|
|
2148
2163
|
url(customFieldUuid?: string): string;
|
|
2164
|
+
getSelectFieldListitem(selectField: Locator, listItem: string): Promise<Locator>;
|
|
2149
2165
|
}
|
|
2150
2166
|
|
|
2151
2167
|
declare class CategoryDetail implements PageObject {
|
|
@@ -2159,6 +2175,12 @@ declare class CategoryDetail implements PageObject {
|
|
|
2159
2175
|
constructor(page: Page, instanceMeta: HelperFixtureTypes['InstanceMeta']);
|
|
2160
2176
|
getCustomFieldSetCardContentByName(customFieldSetName: string): Promise<Record<string, Locator>>;
|
|
2161
2177
|
url(categoryUuid: string): string;
|
|
2178
|
+
getCustomFieldCardLocators(customFieldSetName: string, customFieldTextName: string): Promise<{
|
|
2179
|
+
customFieldCard: Locator;
|
|
2180
|
+
customFieldSetTab: Locator;
|
|
2181
|
+
customFieldLabel: Locator;
|
|
2182
|
+
customFieldSelect: Locator;
|
|
2183
|
+
}>;
|
|
2162
2184
|
}
|
|
2163
2185
|
|
|
2164
2186
|
declare class RuleCreate implements PageObject {
|
package/dist/index.mjs
CHANGED
|
@@ -4469,6 +4469,24 @@ const test$7 = test$f.extend({
|
|
|
4469
4469
|
}
|
|
4470
4470
|
});
|
|
4471
4471
|
|
|
4472
|
+
async function getCustomFieldCardLocators(page, customFieldSetName, customFieldName, instanceMeta) {
|
|
4473
|
+
let customFieldCard;
|
|
4474
|
+
if (satisfies(instanceMeta.version, "<6.7")) {
|
|
4475
|
+
customFieldCard = page.locator(".sw-card").filter({ hasText: "Custom fields" });
|
|
4476
|
+
} else {
|
|
4477
|
+
customFieldCard = page.locator(".mt-card").filter({ hasText: "Custom fields" });
|
|
4478
|
+
}
|
|
4479
|
+
const customFieldSetTab = customFieldCard.getByText(customFieldSetName);
|
|
4480
|
+
const customFieldLabel = customFieldCard.locator(".sw-custom-field-set-renderer").locator(".sw-field__label").getByText(customFieldName);
|
|
4481
|
+
const customFieldSelect = customFieldCard.locator(`.sw-custom-field-set-renderer-tab-content__${customFieldSetName}`);
|
|
4482
|
+
return {
|
|
4483
|
+
customFieldCard,
|
|
4484
|
+
customFieldSetTab,
|
|
4485
|
+
customFieldLabel,
|
|
4486
|
+
customFieldSelect
|
|
4487
|
+
};
|
|
4488
|
+
}
|
|
4489
|
+
|
|
4472
4490
|
var __defProp$w = Object.defineProperty;
|
|
4473
4491
|
var __defNormalProp$w = (obj, key, value) => key in obj ? __defProp$w(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4474
4492
|
var __publicField$w = (obj, key, value) => {
|
|
@@ -4596,6 +4614,9 @@ class ProductDetail {
|
|
|
4596
4614
|
url(productId) {
|
|
4597
4615
|
return `#/sw/product/detail/${productId}/base`;
|
|
4598
4616
|
}
|
|
4617
|
+
async getCustomFieldCardLocators(customFieldSetName, customFieldTextName) {
|
|
4618
|
+
return getCustomFieldCardLocators(this.page, customFieldSetName, customFieldTextName, this.instanceMeta);
|
|
4619
|
+
}
|
|
4599
4620
|
}
|
|
4600
4621
|
|
|
4601
4622
|
var __defProp$v = Object.defineProperty;
|
|
@@ -4605,8 +4626,9 @@ var __publicField$v = (obj, key, value) => {
|
|
|
4605
4626
|
return value;
|
|
4606
4627
|
};
|
|
4607
4628
|
class OrderDetail {
|
|
4608
|
-
constructor(page) {
|
|
4629
|
+
constructor(page, instanceMeta) {
|
|
4609
4630
|
this.page = page;
|
|
4631
|
+
this.instanceMeta = instanceMeta;
|
|
4610
4632
|
__publicField$v(this, "saveButton");
|
|
4611
4633
|
__publicField$v(this, "dataGridContextButton");
|
|
4612
4634
|
__publicField$v(this, "orderTag");
|
|
@@ -4614,8 +4636,11 @@ class OrderDetail {
|
|
|
4614
4636
|
this.dataGridContextButton = page.locator(".sw-data-grid__actions-menu").and(page.getByRole("button"));
|
|
4615
4637
|
this.orderTag = page.locator(".sw-select-selection-list__item");
|
|
4616
4638
|
}
|
|
4617
|
-
url(orderId) {
|
|
4618
|
-
return `#/sw/order/detail/${orderId}
|
|
4639
|
+
url(orderId, tabName = "general") {
|
|
4640
|
+
return `#/sw/order/detail/${orderId}/${tabName}`;
|
|
4641
|
+
}
|
|
4642
|
+
async getCustomFieldCardLocators(customFieldSetName, customFieldTextName) {
|
|
4643
|
+
return getCustomFieldCardLocators(this.page, customFieldSetName, customFieldTextName, this.instanceMeta);
|
|
4619
4644
|
}
|
|
4620
4645
|
}
|
|
4621
4646
|
|
|
@@ -5513,6 +5538,17 @@ class CustomFieldCreate {
|
|
|
5513
5538
|
}
|
|
5514
5539
|
}
|
|
5515
5540
|
|
|
5541
|
+
async function getSelectFieldListitem(page, selectField, listItem, instanceMeta) {
|
|
5542
|
+
await selectField.click();
|
|
5543
|
+
if (satisfies(instanceMeta.version, "<6.7")) {
|
|
5544
|
+
await page.locator(".sw-select-result-list__item-list").waitFor({ state: "visible" });
|
|
5545
|
+
return page.locator(".sw-select-result-list__content").getByRole("listitem").filter({ hasText: listItem });
|
|
5546
|
+
} else {
|
|
5547
|
+
await page.locator(".mt-select-result-list__item-list").waitFor({ state: "visible" });
|
|
5548
|
+
return page.locator(".mt-select-result-list__item-list").getByRole("listitem").filter({ hasText: listItem });
|
|
5549
|
+
}
|
|
5550
|
+
}
|
|
5551
|
+
|
|
5516
5552
|
var __defProp$b = Object.defineProperty;
|
|
5517
5553
|
var __defNormalProp$b = (obj, key, value) => key in obj ? __defProp$b(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
5518
5554
|
var __publicField$b = (obj, key, value) => {
|
|
@@ -5520,9 +5556,10 @@ var __publicField$b = (obj, key, value) => {
|
|
|
5520
5556
|
return value;
|
|
5521
5557
|
};
|
|
5522
5558
|
class CustomFieldDetail extends CustomFieldCreate {
|
|
5523
|
-
constructor(page) {
|
|
5559
|
+
constructor(page, instanceMeta) {
|
|
5524
5560
|
super(page);
|
|
5525
5561
|
this.page = page;
|
|
5562
|
+
this.instanceMeta = instanceMeta;
|
|
5526
5563
|
__publicField$b(this, "newCustomFieldButton");
|
|
5527
5564
|
__publicField$b(this, "customFieldEditDialog");
|
|
5528
5565
|
__publicField$b(this, "newCustomFieldDialog");
|
|
@@ -5540,19 +5577,25 @@ class CustomFieldDetail extends CustomFieldCreate {
|
|
|
5540
5577
|
__publicField$b(this, "customFieldDeleteDialog");
|
|
5541
5578
|
__publicField$b(this, "customFieldDeleteCancelButton");
|
|
5542
5579
|
__publicField$b(this, "customFieldDeleteButton");
|
|
5580
|
+
__publicField$b(this, "customFieldEditAvailableInShoppingCartCheckbox");
|
|
5543
5581
|
this.newCustomFieldButton = page.getByRole("button", { name: "New custom field" });
|
|
5544
5582
|
this.customFieldDeleteListButton = page.locator(".sw-custom-field-list__delete-button");
|
|
5545
5583
|
this.newCustomFieldDialog = page.getByRole("dialog", { name: "New custom field" });
|
|
5546
5584
|
this.customFieldAddButton = this.newCustomFieldDialog.getByRole("button", { name: "Add" });
|
|
5547
|
-
this.customFieldTechnicalNameInput = this.newCustomFieldDialog.getByLabel("Technical
|
|
5585
|
+
this.customFieldTechnicalNameInput = this.newCustomFieldDialog.getByLabel("Technical name");
|
|
5548
5586
|
this.customFieldPositionInput = this.newCustomFieldDialog.getByLabel("Position");
|
|
5549
|
-
|
|
5587
|
+
if (satisfies(instanceMeta.version, "<6.7")) {
|
|
5588
|
+
this.customFieldTypeSelectionList = this.newCustomFieldDialog.getByLabel("Type");
|
|
5589
|
+
} else {
|
|
5590
|
+
this.customFieldTypeSelectionList = this.newCustomFieldDialog.getByRole("textbox", { name: "Select..." });
|
|
5591
|
+
}
|
|
5550
5592
|
this.customFieldModifyByStoreApiCheckbox = this.newCustomFieldDialog.getByLabel("Modifiable via Store API");
|
|
5551
5593
|
this.customFieldCancelButton = this.newCustomFieldDialog.getByRole("button", { name: "Cancel" });
|
|
5552
5594
|
this.customFieldLabelEnglishGBInput = this.newCustomFieldDialog.getByLabel("Label (English (GB))");
|
|
5553
5595
|
this.customFieldPlaceholderEnglishGBInput = this.newCustomFieldDialog.getByLabel("Placeholder (English (GB))");
|
|
5554
5596
|
this.customFieldHelpTextEnglishGBInput = this.newCustomFieldDialog.getByLabel("Help text (English (GB))");
|
|
5555
5597
|
this.customFieldEditDialog = page.getByRole("dialog", { name: "Edit custom field" });
|
|
5598
|
+
this.customFieldEditAvailableInShoppingCartCheckbox = this.customFieldEditDialog.getByLabel("Available in shopping cart");
|
|
5556
5599
|
this.customFieldEditApplyButton = this.customFieldEditDialog.getByRole("button", { name: "Apply changes" });
|
|
5557
5600
|
this.customFieldDeleteDialog = page.getByRole("dialog", { name: "Delete custom field" });
|
|
5558
5601
|
this.customFieldDeleteCancelButton = this.customFieldDeleteDialog.getByRole("button", { name: "Cancel" });
|
|
@@ -5582,6 +5625,9 @@ class CustomFieldDetail extends CustomFieldCreate {
|
|
|
5582
5625
|
url(customFieldUuid) {
|
|
5583
5626
|
return `#/sw/settings/custom/field/detail/${customFieldUuid}`;
|
|
5584
5627
|
}
|
|
5628
|
+
async getSelectFieldListitem(selectField, listItem) {
|
|
5629
|
+
return getSelectFieldListitem(this.page, selectField, listItem, this.instanceMeta);
|
|
5630
|
+
}
|
|
5585
5631
|
}
|
|
5586
5632
|
|
|
5587
5633
|
var __defProp$a = Object.defineProperty;
|
|
@@ -5626,6 +5672,9 @@ class CategoryDetail {
|
|
|
5626
5672
|
url(categoryUuid) {
|
|
5627
5673
|
return `#/sw/category/index/${categoryUuid}/base`;
|
|
5628
5674
|
}
|
|
5675
|
+
async getCustomFieldCardLocators(customFieldSetName, customFieldTextName) {
|
|
5676
|
+
return getCustomFieldCardLocators(this.page, customFieldSetName, customFieldTextName, this.instanceMeta);
|
|
5677
|
+
}
|
|
5629
5678
|
}
|
|
5630
5679
|
|
|
5631
5680
|
var __defProp$9 = Object.defineProperty;
|
|
@@ -6136,8 +6185,8 @@ const test$6 = test$f.extend({
|
|
|
6136
6185
|
AdminProductDetail: async ({ AdminPage, InstanceMeta }, use) => {
|
|
6137
6186
|
await use(new ProductDetail(AdminPage, InstanceMeta));
|
|
6138
6187
|
},
|
|
6139
|
-
AdminOrderDetail: async ({ AdminPage }, use) => {
|
|
6140
|
-
await use(new OrderDetail(AdminPage));
|
|
6188
|
+
AdminOrderDetail: async ({ AdminPage, InstanceMeta }, use) => {
|
|
6189
|
+
await use(new OrderDetail(AdminPage, InstanceMeta));
|
|
6141
6190
|
},
|
|
6142
6191
|
AdminCustomerListing: async ({ AdminPage }, use) => {
|
|
6143
6192
|
await use(new CustomerListing(AdminPage));
|
|
@@ -6199,8 +6248,8 @@ const test$6 = test$f.extend({
|
|
|
6199
6248
|
AdminCustomFieldCreate: async ({ AdminPage }, use) => {
|
|
6200
6249
|
await use(new CustomFieldCreate(AdminPage));
|
|
6201
6250
|
},
|
|
6202
|
-
AdminCustomFieldDetail: async ({ AdminPage }, use) => {
|
|
6203
|
-
await use(new CustomFieldDetail(AdminPage));
|
|
6251
|
+
AdminCustomFieldDetail: async ({ AdminPage, InstanceMeta }, use) => {
|
|
6252
|
+
await use(new CustomFieldDetail(AdminPage, InstanceMeta));
|
|
6204
6253
|
},
|
|
6205
6254
|
AdminRuleCreate: async ({ AdminPage }, use) => {
|
|
6206
6255
|
await use(new RuleCreate(AdminPage));
|