@shopware-ag/acceptance-test-suite 11.9.3 → 11.10.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 -4
- package/dist/index.d.ts +29 -4
- package/dist/index.mjs +85 -18
- 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,10 +2175,17 @@ 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 {
|
|
2165
2187
|
readonly page: Page;
|
|
2188
|
+
readonly instanceMeta: HelperFixtureTypes['InstanceMeta'];
|
|
2166
2189
|
readonly nameInput: Locator;
|
|
2167
2190
|
readonly priorityInput: Locator;
|
|
2168
2191
|
readonly conditionTypeSelectionInput: Locator;
|
|
@@ -2170,8 +2193,10 @@ declare class RuleCreate implements PageObject {
|
|
|
2170
2193
|
readonly filtersResultPopoverSelectionList: Locator;
|
|
2171
2194
|
readonly saveButton: Locator;
|
|
2172
2195
|
readonly cancelButton: Locator;
|
|
2173
|
-
|
|
2196
|
+
readonly valueNotAvailableTooltip: Locator;
|
|
2197
|
+
constructor(page: Page, instanceMeta: HelperFixtureTypes['InstanceMeta']);
|
|
2174
2198
|
url(): string;
|
|
2199
|
+
getSelectFieldListitem(selectField: Locator, listItem: string): Promise<Locator>;
|
|
2175
2200
|
}
|
|
2176
2201
|
|
|
2177
2202
|
declare class RuleDetail extends 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,10 +2175,17 @@ 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 {
|
|
2165
2187
|
readonly page: Page;
|
|
2188
|
+
readonly instanceMeta: HelperFixtureTypes['InstanceMeta'];
|
|
2166
2189
|
readonly nameInput: Locator;
|
|
2167
2190
|
readonly priorityInput: Locator;
|
|
2168
2191
|
readonly conditionTypeSelectionInput: Locator;
|
|
@@ -2170,8 +2193,10 @@ declare class RuleCreate implements PageObject {
|
|
|
2170
2193
|
readonly filtersResultPopoverSelectionList: Locator;
|
|
2171
2194
|
readonly saveButton: Locator;
|
|
2172
2195
|
readonly cancelButton: Locator;
|
|
2173
|
-
|
|
2196
|
+
readonly valueNotAvailableTooltip: Locator;
|
|
2197
|
+
constructor(page: Page, instanceMeta: HelperFixtureTypes['InstanceMeta']);
|
|
2174
2198
|
url(): string;
|
|
2199
|
+
getSelectFieldListitem(selectField: Locator, listItem: string): Promise<Locator>;
|
|
2175
2200
|
}
|
|
2176
2201
|
|
|
2177
2202
|
declare class RuleDetail extends RuleCreate implements PageObject {
|
package/dist/index.mjs
CHANGED
|
@@ -565,6 +565,10 @@ const isThemeCompiled = async (context, storefrontUrl) => {
|
|
|
565
565
|
return false;
|
|
566
566
|
};
|
|
567
567
|
|
|
568
|
+
const clearDelayedCache = async (adminApiContext) => {
|
|
569
|
+
await adminApiContext.delete("./_action/cache-delayed");
|
|
570
|
+
};
|
|
571
|
+
|
|
568
572
|
const test$b = test$f.extend({
|
|
569
573
|
AdminPage: async ({ IdProvider, AdminApiContext, SalesChannelBaseConfig, browser }, use) => {
|
|
570
574
|
const context = await browser.newContext({
|
|
@@ -628,25 +632,33 @@ const test$b = test$f.extend({
|
|
|
628
632
|
});
|
|
629
633
|
return res;
|
|
630
634
|
};
|
|
635
|
+
await clearDelayedCache(AdminApiContext);
|
|
631
636
|
await use(page);
|
|
632
637
|
await page.close();
|
|
633
638
|
await context.close();
|
|
634
639
|
await AdminApiContext.delete(`user/${uuid}`);
|
|
635
640
|
},
|
|
636
|
-
StorefrontPage: async ({ DefaultSalesChannel, SalesChannelBaseConfig, browser, AdminApiContext }, use) => {
|
|
641
|
+
StorefrontPage: async ({ DefaultSalesChannel, SalesChannelBaseConfig, browser, AdminApiContext, InstanceMeta }, use) => {
|
|
637
642
|
const { url, salesChannel } = DefaultSalesChannel;
|
|
638
643
|
const context = await browser.newContext({
|
|
639
644
|
baseURL: url
|
|
640
645
|
});
|
|
641
|
-
|
|
646
|
+
let page;
|
|
642
647
|
if (!await isThemeCompiled(AdminApiContext, DefaultSalesChannel.url)) {
|
|
643
648
|
test$f.slow();
|
|
644
649
|
await AdminApiContext.post(
|
|
645
650
|
`./_action/theme/${SalesChannelBaseConfig.defaultThemeId}/assign/${salesChannel.id}`
|
|
646
651
|
);
|
|
647
|
-
|
|
648
|
-
|
|
652
|
+
await clearDelayedCache(AdminApiContext);
|
|
653
|
+
page = await context.newPage();
|
|
654
|
+
if (InstanceMeta.isSaaS) {
|
|
655
|
+
while (!await isThemeCompiled(AdminApiContext, DefaultSalesChannel.url)) {
|
|
656
|
+
await clearDelayedCache(AdminApiContext);
|
|
657
|
+
await page.waitForTimeout(4e3);
|
|
658
|
+
}
|
|
649
659
|
}
|
|
660
|
+
} else {
|
|
661
|
+
page = await context.newPage();
|
|
650
662
|
}
|
|
651
663
|
await page.goto("./", { waitUntil: "load" });
|
|
652
664
|
await use(page);
|
|
@@ -4469,6 +4481,24 @@ const test$7 = test$f.extend({
|
|
|
4469
4481
|
}
|
|
4470
4482
|
});
|
|
4471
4483
|
|
|
4484
|
+
async function getCustomFieldCardLocators(page, customFieldSetName, customFieldName, instanceMeta) {
|
|
4485
|
+
let customFieldCard;
|
|
4486
|
+
if (satisfies(instanceMeta.version, "<6.7")) {
|
|
4487
|
+
customFieldCard = page.locator(".sw-card").filter({ hasText: "Custom fields" });
|
|
4488
|
+
} else {
|
|
4489
|
+
customFieldCard = page.locator(".mt-card").filter({ hasText: "Custom fields" });
|
|
4490
|
+
}
|
|
4491
|
+
const customFieldSetTab = customFieldCard.getByText(customFieldSetName);
|
|
4492
|
+
const customFieldLabel = customFieldCard.locator(".sw-custom-field-set-renderer").locator(".sw-field__label").getByText(customFieldName);
|
|
4493
|
+
const customFieldSelect = customFieldCard.locator(`.sw-custom-field-set-renderer-tab-content__${customFieldSetName}`);
|
|
4494
|
+
return {
|
|
4495
|
+
customFieldCard,
|
|
4496
|
+
customFieldSetTab,
|
|
4497
|
+
customFieldLabel,
|
|
4498
|
+
customFieldSelect
|
|
4499
|
+
};
|
|
4500
|
+
}
|
|
4501
|
+
|
|
4472
4502
|
var __defProp$w = Object.defineProperty;
|
|
4473
4503
|
var __defNormalProp$w = (obj, key, value) => key in obj ? __defProp$w(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4474
4504
|
var __publicField$w = (obj, key, value) => {
|
|
@@ -4596,6 +4626,9 @@ class ProductDetail {
|
|
|
4596
4626
|
url(productId) {
|
|
4597
4627
|
return `#/sw/product/detail/${productId}/base`;
|
|
4598
4628
|
}
|
|
4629
|
+
async getCustomFieldCardLocators(customFieldSetName, customFieldTextName) {
|
|
4630
|
+
return getCustomFieldCardLocators(this.page, customFieldSetName, customFieldTextName, this.instanceMeta);
|
|
4631
|
+
}
|
|
4599
4632
|
}
|
|
4600
4633
|
|
|
4601
4634
|
var __defProp$v = Object.defineProperty;
|
|
@@ -4605,8 +4638,9 @@ var __publicField$v = (obj, key, value) => {
|
|
|
4605
4638
|
return value;
|
|
4606
4639
|
};
|
|
4607
4640
|
class OrderDetail {
|
|
4608
|
-
constructor(page) {
|
|
4641
|
+
constructor(page, instanceMeta) {
|
|
4609
4642
|
this.page = page;
|
|
4643
|
+
this.instanceMeta = instanceMeta;
|
|
4610
4644
|
__publicField$v(this, "saveButton");
|
|
4611
4645
|
__publicField$v(this, "dataGridContextButton");
|
|
4612
4646
|
__publicField$v(this, "orderTag");
|
|
@@ -4614,8 +4648,11 @@ class OrderDetail {
|
|
|
4614
4648
|
this.dataGridContextButton = page.locator(".sw-data-grid__actions-menu").and(page.getByRole("button"));
|
|
4615
4649
|
this.orderTag = page.locator(".sw-select-selection-list__item");
|
|
4616
4650
|
}
|
|
4617
|
-
url(orderId) {
|
|
4618
|
-
return `#/sw/order/detail/${orderId}
|
|
4651
|
+
url(orderId, tabName = "general") {
|
|
4652
|
+
return `#/sw/order/detail/${orderId}/${tabName}`;
|
|
4653
|
+
}
|
|
4654
|
+
async getCustomFieldCardLocators(customFieldSetName, customFieldTextName) {
|
|
4655
|
+
return getCustomFieldCardLocators(this.page, customFieldSetName, customFieldTextName, this.instanceMeta);
|
|
4619
4656
|
}
|
|
4620
4657
|
}
|
|
4621
4658
|
|
|
@@ -5513,6 +5550,17 @@ class CustomFieldCreate {
|
|
|
5513
5550
|
}
|
|
5514
5551
|
}
|
|
5515
5552
|
|
|
5553
|
+
async function getSelectFieldListitem(page, selectField, listItem, instanceMeta) {
|
|
5554
|
+
await selectField.click();
|
|
5555
|
+
if (satisfies(instanceMeta.version, "<6.7")) {
|
|
5556
|
+
await page.locator(".sw-select-result-list__item-list").waitFor({ state: "visible" });
|
|
5557
|
+
return page.locator(".sw-select-result-list__content").getByRole("listitem").filter({ hasText: listItem });
|
|
5558
|
+
} else {
|
|
5559
|
+
await page.locator(".mt-select-result-list__item-list").waitFor({ state: "visible" });
|
|
5560
|
+
return page.locator(".mt-select-result-list__item-list").getByRole("listitem").filter({ hasText: listItem });
|
|
5561
|
+
}
|
|
5562
|
+
}
|
|
5563
|
+
|
|
5516
5564
|
var __defProp$b = Object.defineProperty;
|
|
5517
5565
|
var __defNormalProp$b = (obj, key, value) => key in obj ? __defProp$b(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
5518
5566
|
var __publicField$b = (obj, key, value) => {
|
|
@@ -5520,9 +5568,10 @@ var __publicField$b = (obj, key, value) => {
|
|
|
5520
5568
|
return value;
|
|
5521
5569
|
};
|
|
5522
5570
|
class CustomFieldDetail extends CustomFieldCreate {
|
|
5523
|
-
constructor(page) {
|
|
5571
|
+
constructor(page, instanceMeta) {
|
|
5524
5572
|
super(page);
|
|
5525
5573
|
this.page = page;
|
|
5574
|
+
this.instanceMeta = instanceMeta;
|
|
5526
5575
|
__publicField$b(this, "newCustomFieldButton");
|
|
5527
5576
|
__publicField$b(this, "customFieldEditDialog");
|
|
5528
5577
|
__publicField$b(this, "newCustomFieldDialog");
|
|
@@ -5540,19 +5589,25 @@ class CustomFieldDetail extends CustomFieldCreate {
|
|
|
5540
5589
|
__publicField$b(this, "customFieldDeleteDialog");
|
|
5541
5590
|
__publicField$b(this, "customFieldDeleteCancelButton");
|
|
5542
5591
|
__publicField$b(this, "customFieldDeleteButton");
|
|
5592
|
+
__publicField$b(this, "customFieldEditAvailableInShoppingCartCheckbox");
|
|
5543
5593
|
this.newCustomFieldButton = page.getByRole("button", { name: "New custom field" });
|
|
5544
5594
|
this.customFieldDeleteListButton = page.locator(".sw-custom-field-list__delete-button");
|
|
5545
5595
|
this.newCustomFieldDialog = page.getByRole("dialog", { name: "New custom field" });
|
|
5546
5596
|
this.customFieldAddButton = this.newCustomFieldDialog.getByRole("button", { name: "Add" });
|
|
5547
|
-
this.customFieldTechnicalNameInput = this.newCustomFieldDialog.getByLabel("Technical
|
|
5597
|
+
this.customFieldTechnicalNameInput = this.newCustomFieldDialog.getByLabel("Technical name");
|
|
5548
5598
|
this.customFieldPositionInput = this.newCustomFieldDialog.getByLabel("Position");
|
|
5549
|
-
|
|
5599
|
+
if (satisfies(instanceMeta.version, "<6.7")) {
|
|
5600
|
+
this.customFieldTypeSelectionList = this.newCustomFieldDialog.getByLabel("Type");
|
|
5601
|
+
} else {
|
|
5602
|
+
this.customFieldTypeSelectionList = this.newCustomFieldDialog.getByRole("textbox", { name: "Select..." });
|
|
5603
|
+
}
|
|
5550
5604
|
this.customFieldModifyByStoreApiCheckbox = this.newCustomFieldDialog.getByLabel("Modifiable via Store API");
|
|
5551
5605
|
this.customFieldCancelButton = this.newCustomFieldDialog.getByRole("button", { name: "Cancel" });
|
|
5552
5606
|
this.customFieldLabelEnglishGBInput = this.newCustomFieldDialog.getByLabel("Label (English (GB))");
|
|
5553
5607
|
this.customFieldPlaceholderEnglishGBInput = this.newCustomFieldDialog.getByLabel("Placeholder (English (GB))");
|
|
5554
5608
|
this.customFieldHelpTextEnglishGBInput = this.newCustomFieldDialog.getByLabel("Help text (English (GB))");
|
|
5555
5609
|
this.customFieldEditDialog = page.getByRole("dialog", { name: "Edit custom field" });
|
|
5610
|
+
this.customFieldEditAvailableInShoppingCartCheckbox = this.customFieldEditDialog.getByLabel("Available in shopping cart");
|
|
5556
5611
|
this.customFieldEditApplyButton = this.customFieldEditDialog.getByRole("button", { name: "Apply changes" });
|
|
5557
5612
|
this.customFieldDeleteDialog = page.getByRole("dialog", { name: "Delete custom field" });
|
|
5558
5613
|
this.customFieldDeleteCancelButton = this.customFieldDeleteDialog.getByRole("button", { name: "Cancel" });
|
|
@@ -5582,6 +5637,9 @@ class CustomFieldDetail extends CustomFieldCreate {
|
|
|
5582
5637
|
url(customFieldUuid) {
|
|
5583
5638
|
return `#/sw/settings/custom/field/detail/${customFieldUuid}`;
|
|
5584
5639
|
}
|
|
5640
|
+
async getSelectFieldListitem(selectField, listItem) {
|
|
5641
|
+
return getSelectFieldListitem(this.page, selectField, listItem, this.instanceMeta);
|
|
5642
|
+
}
|
|
5585
5643
|
}
|
|
5586
5644
|
|
|
5587
5645
|
var __defProp$a = Object.defineProperty;
|
|
@@ -5626,6 +5684,9 @@ class CategoryDetail {
|
|
|
5626
5684
|
url(categoryUuid) {
|
|
5627
5685
|
return `#/sw/category/index/${categoryUuid}/base`;
|
|
5628
5686
|
}
|
|
5687
|
+
async getCustomFieldCardLocators(customFieldSetName, customFieldTextName) {
|
|
5688
|
+
return getCustomFieldCardLocators(this.page, customFieldSetName, customFieldTextName, this.instanceMeta);
|
|
5689
|
+
}
|
|
5629
5690
|
}
|
|
5630
5691
|
|
|
5631
5692
|
var __defProp$9 = Object.defineProperty;
|
|
@@ -5635,8 +5696,9 @@ var __publicField$9 = (obj, key, value) => {
|
|
|
5635
5696
|
return value;
|
|
5636
5697
|
};
|
|
5637
5698
|
class RuleCreate {
|
|
5638
|
-
constructor(page) {
|
|
5699
|
+
constructor(page, instanceMeta) {
|
|
5639
5700
|
this.page = page;
|
|
5701
|
+
this.instanceMeta = instanceMeta;
|
|
5640
5702
|
__publicField$9(this, "nameInput");
|
|
5641
5703
|
__publicField$9(this, "priorityInput");
|
|
5642
5704
|
__publicField$9(this, "conditionTypeSelectionInput");
|
|
@@ -5644,6 +5706,7 @@ class RuleCreate {
|
|
|
5644
5706
|
__publicField$9(this, "filtersResultPopoverSelectionList");
|
|
5645
5707
|
__publicField$9(this, "saveButton");
|
|
5646
5708
|
__publicField$9(this, "cancelButton");
|
|
5709
|
+
__publicField$9(this, "valueNotAvailableTooltip");
|
|
5647
5710
|
this.nameInput = page.getByLabel("Name");
|
|
5648
5711
|
this.priorityInput = page.getByLabel("Priority");
|
|
5649
5712
|
this.conditionTypeSelectionInput = page.locator(".sw-condition-type-select").locator(".sw-single-select__selection");
|
|
@@ -5651,10 +5714,14 @@ class RuleCreate {
|
|
|
5651
5714
|
this.filtersResultPopoverSelectionList = page.locator(".sw-select-result-list__content").getByRole("listitem");
|
|
5652
5715
|
this.saveButton = page.getByRole("button", { name: "Save" });
|
|
5653
5716
|
this.cancelButton = page.getByRole("button", { name: "Cancel" });
|
|
5717
|
+
this.valueNotAvailableTooltip = page.locator(".sw-tooltip");
|
|
5654
5718
|
}
|
|
5655
5719
|
url() {
|
|
5656
5720
|
return `#/sw/settings/rule/create/base`;
|
|
5657
5721
|
}
|
|
5722
|
+
async getSelectFieldListitem(selectField, listItem) {
|
|
5723
|
+
return getSelectFieldListitem(this.page, selectField, listItem, this.instanceMeta);
|
|
5724
|
+
}
|
|
5658
5725
|
}
|
|
5659
5726
|
|
|
5660
5727
|
var __defProp$8 = Object.defineProperty;
|
|
@@ -5665,7 +5732,7 @@ var __publicField$8 = (obj, key, value) => {
|
|
|
5665
5732
|
};
|
|
5666
5733
|
class RuleDetail extends RuleCreate {
|
|
5667
5734
|
constructor(page, instanceMeta) {
|
|
5668
|
-
super(page);
|
|
5735
|
+
super(page, instanceMeta);
|
|
5669
5736
|
this.page = page;
|
|
5670
5737
|
this.instanceMeta = instanceMeta;
|
|
5671
5738
|
__publicField$8(this, "shippingMethodAvailabilityRulesCard");
|
|
@@ -6136,8 +6203,8 @@ const test$6 = test$f.extend({
|
|
|
6136
6203
|
AdminProductDetail: async ({ AdminPage, InstanceMeta }, use) => {
|
|
6137
6204
|
await use(new ProductDetail(AdminPage, InstanceMeta));
|
|
6138
6205
|
},
|
|
6139
|
-
AdminOrderDetail: async ({ AdminPage }, use) => {
|
|
6140
|
-
await use(new OrderDetail(AdminPage));
|
|
6206
|
+
AdminOrderDetail: async ({ AdminPage, InstanceMeta }, use) => {
|
|
6207
|
+
await use(new OrderDetail(AdminPage, InstanceMeta));
|
|
6141
6208
|
},
|
|
6142
6209
|
AdminCustomerListing: async ({ AdminPage }, use) => {
|
|
6143
6210
|
await use(new CustomerListing(AdminPage));
|
|
@@ -6199,11 +6266,11 @@ const test$6 = test$f.extend({
|
|
|
6199
6266
|
AdminCustomFieldCreate: async ({ AdminPage }, use) => {
|
|
6200
6267
|
await use(new CustomFieldCreate(AdminPage));
|
|
6201
6268
|
},
|
|
6202
|
-
AdminCustomFieldDetail: async ({ AdminPage }, use) => {
|
|
6203
|
-
await use(new CustomFieldDetail(AdminPage));
|
|
6269
|
+
AdminCustomFieldDetail: async ({ AdminPage, InstanceMeta }, use) => {
|
|
6270
|
+
await use(new CustomFieldDetail(AdminPage, InstanceMeta));
|
|
6204
6271
|
},
|
|
6205
|
-
AdminRuleCreate: async ({ AdminPage }, use) => {
|
|
6206
|
-
await use(new RuleCreate(AdminPage));
|
|
6272
|
+
AdminRuleCreate: async ({ AdminPage, InstanceMeta }, use) => {
|
|
6273
|
+
await use(new RuleCreate(AdminPage, InstanceMeta));
|
|
6207
6274
|
},
|
|
6208
6275
|
AdminRuleDetail: async ({ AdminPage, InstanceMeta }, use) => {
|
|
6209
6276
|
await use(new RuleDetail(AdminPage, InstanceMeta));
|