@shopware-ag/acceptance-test-suite 11.1.4 → 11.1.6
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 +14 -7
- package/dist/index.d.ts +14 -7
- package/dist/index.mjs +48 -32
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -4,6 +4,7 @@ import { APIRequestContext, APIResponse, Page, BrowserContext, Locator } from '@
|
|
|
4
4
|
export * from '@playwright/test';
|
|
5
5
|
import * as playwright_core from 'playwright-core';
|
|
6
6
|
import { components } from '@shopware/api-client/admin-api-types';
|
|
7
|
+
import { HelperFixtureTypes as HelperFixtureTypes$1 } from 'src/fixtures/HelperFixtures';
|
|
7
8
|
import { Image } from 'image-js';
|
|
8
9
|
|
|
9
10
|
type Task = (...args: any[]) => () => Promise<void>;
|
|
@@ -1092,7 +1093,6 @@ interface PageObject {
|
|
|
1092
1093
|
|
|
1093
1094
|
declare class Home implements PageObject {
|
|
1094
1095
|
readonly page: Page;
|
|
1095
|
-
readonly instanceMeta: HelperFixtureTypes['InstanceMeta'];
|
|
1096
1096
|
readonly productImages: Locator;
|
|
1097
1097
|
readonly productListItems: Locator;
|
|
1098
1098
|
readonly languagesDropdown: Locator;
|
|
@@ -1112,7 +1112,7 @@ declare class Home implements PageObject {
|
|
|
1112
1112
|
readonly consentDialogSaveButton: Locator;
|
|
1113
1113
|
readonly consentCookieBannerContainer: Locator;
|
|
1114
1114
|
readonly offcanvasBackdrop: Locator;
|
|
1115
|
-
constructor(page: Page
|
|
1115
|
+
constructor(page: Page);
|
|
1116
1116
|
getListingItemByProductId(productId: string): Promise<Record<string, Locator>>;
|
|
1117
1117
|
url(): string;
|
|
1118
1118
|
}
|
|
@@ -1565,6 +1565,7 @@ declare class CustomerGroupListing implements PageObject {
|
|
|
1565
1565
|
|
|
1566
1566
|
declare class CustomerGroupCreate implements PageObject {
|
|
1567
1567
|
readonly page: Page;
|
|
1568
|
+
readonly instanceMeta: HelperFixtureTypes$1['InstanceMeta'];
|
|
1568
1569
|
readonly headline: Locator;
|
|
1569
1570
|
readonly saveButton: Locator;
|
|
1570
1571
|
readonly cancelButton: Locator;
|
|
@@ -1579,17 +1580,18 @@ declare class CustomerGroupCreate implements PageObject {
|
|
|
1579
1580
|
readonly signupFormCompanySignupToggle: Locator;
|
|
1580
1581
|
readonly customerGroupSaleschannelSelection: Locator;
|
|
1581
1582
|
readonly customerGroupSaleschannelResultList: Locator;
|
|
1582
|
-
constructor(page: Page);
|
|
1583
|
+
constructor(page: Page, instanceMeta: HelperFixtureTypes$1['InstanceMeta']);
|
|
1583
1584
|
url(): string;
|
|
1584
1585
|
}
|
|
1585
1586
|
|
|
1586
1587
|
declare class CustomerGroupDetail extends CustomerGroupCreate implements PageObject {
|
|
1587
1588
|
readonly page: Page;
|
|
1589
|
+
readonly instanceMeta: HelperFixtureTypes$1['InstanceMeta'];
|
|
1588
1590
|
readonly headline: Locator;
|
|
1589
1591
|
readonly selectedSalesChannel: Locator;
|
|
1590
1592
|
readonly technicalUrl: Locator;
|
|
1591
1593
|
readonly saleschannelUrl: Locator;
|
|
1592
|
-
constructor(page: Page);
|
|
1594
|
+
constructor(page: Page, instanceMeta: HelperFixtureTypes$1['InstanceMeta']);
|
|
1593
1595
|
url(customerGroupId?: string): string;
|
|
1594
1596
|
}
|
|
1595
1597
|
|
|
@@ -1922,6 +1924,7 @@ declare class RuleCreate implements PageObject {
|
|
|
1922
1924
|
|
|
1923
1925
|
declare class RuleDetail extends RuleCreate implements PageObject {
|
|
1924
1926
|
readonly page: Page;
|
|
1927
|
+
readonly instanceMeta: HelperFixtureTypes['InstanceMeta'];
|
|
1925
1928
|
readonly shippingMethodAvailabilityRulesCard: Locator;
|
|
1926
1929
|
readonly shippingMethodAvailabilityRulesCardLink: Locator;
|
|
1927
1930
|
readonly shippingMethodAvailabilityRulesCardTable: Locator;
|
|
@@ -1938,7 +1941,9 @@ declare class RuleDetail extends RuleCreate implements PageObject {
|
|
|
1938
1941
|
readonly promotionCustomerRulesCardEmptyState: Locator;
|
|
1939
1942
|
readonly promotionCartRulesCard: Locator;
|
|
1940
1943
|
readonly promotionCartRulesCardEmptyState: Locator;
|
|
1941
|
-
|
|
1944
|
+
readonly assignmentModalAddButton: Locator;
|
|
1945
|
+
readonly assignmentModalSearchField: Locator;
|
|
1946
|
+
constructor(page: Page, instanceMeta: HelperFixtureTypes['InstanceMeta']);
|
|
1942
1947
|
getEntityCard(cardLocator: Locator): Promise<Record<string, Locator>>;
|
|
1943
1948
|
url(ruleId?: string, tabName?: string): string;
|
|
1944
1949
|
}
|
|
@@ -1952,12 +1957,13 @@ declare class RuleListing implements PageObject {
|
|
|
1952
1957
|
|
|
1953
1958
|
declare class ManufacturerCreate implements PageObject {
|
|
1954
1959
|
readonly page: Page;
|
|
1960
|
+
readonly instanceMeta: HelperFixtureTypes$1['InstanceMeta'];
|
|
1955
1961
|
readonly saveButton: Locator;
|
|
1956
1962
|
readonly cancelButton: Locator;
|
|
1957
1963
|
readonly nameInput: Locator;
|
|
1958
1964
|
readonly websiteInput: Locator;
|
|
1959
1965
|
readonly descriptionInput: Locator;
|
|
1960
|
-
constructor(page: Page);
|
|
1966
|
+
constructor(page: Page, instanceMeta: HelperFixtureTypes$1['InstanceMeta']);
|
|
1961
1967
|
url(): string;
|
|
1962
1968
|
}
|
|
1963
1969
|
|
|
@@ -1972,10 +1978,11 @@ declare class ManufacturerListing implements PageObject {
|
|
|
1972
1978
|
|
|
1973
1979
|
declare class ManufacturerDetail extends ManufacturerCreate {
|
|
1974
1980
|
readonly page: Page;
|
|
1981
|
+
readonly instanceMeta: HelperFixtureTypes$1['InstanceMeta'];
|
|
1975
1982
|
readonly customFieldCard: Locator;
|
|
1976
1983
|
readonly customFieldSetTabs: Locator;
|
|
1977
1984
|
readonly customFieldSetTabCustomContent: Locator;
|
|
1978
|
-
constructor(page: Page);
|
|
1985
|
+
constructor(page: Page, instanceMeta: HelperFixtureTypes$1['InstanceMeta']);
|
|
1979
1986
|
getCustomFieldSetCardContentByName(customFieldSetName: string): Promise<Record<string, Locator>>;
|
|
1980
1987
|
url(manufacturerUuid?: string): string;
|
|
1981
1988
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ import { APIRequestContext, APIResponse, Page, BrowserContext, Locator } from '@
|
|
|
4
4
|
export * from '@playwright/test';
|
|
5
5
|
import * as playwright_core from 'playwright-core';
|
|
6
6
|
import { components } from '@shopware/api-client/admin-api-types';
|
|
7
|
+
import { HelperFixtureTypes as HelperFixtureTypes$1 } from 'src/fixtures/HelperFixtures';
|
|
7
8
|
import { Image } from 'image-js';
|
|
8
9
|
|
|
9
10
|
type Task = (...args: any[]) => () => Promise<void>;
|
|
@@ -1092,7 +1093,6 @@ interface PageObject {
|
|
|
1092
1093
|
|
|
1093
1094
|
declare class Home implements PageObject {
|
|
1094
1095
|
readonly page: Page;
|
|
1095
|
-
readonly instanceMeta: HelperFixtureTypes['InstanceMeta'];
|
|
1096
1096
|
readonly productImages: Locator;
|
|
1097
1097
|
readonly productListItems: Locator;
|
|
1098
1098
|
readonly languagesDropdown: Locator;
|
|
@@ -1112,7 +1112,7 @@ declare class Home implements PageObject {
|
|
|
1112
1112
|
readonly consentDialogSaveButton: Locator;
|
|
1113
1113
|
readonly consentCookieBannerContainer: Locator;
|
|
1114
1114
|
readonly offcanvasBackdrop: Locator;
|
|
1115
|
-
constructor(page: Page
|
|
1115
|
+
constructor(page: Page);
|
|
1116
1116
|
getListingItemByProductId(productId: string): Promise<Record<string, Locator>>;
|
|
1117
1117
|
url(): string;
|
|
1118
1118
|
}
|
|
@@ -1565,6 +1565,7 @@ declare class CustomerGroupListing implements PageObject {
|
|
|
1565
1565
|
|
|
1566
1566
|
declare class CustomerGroupCreate implements PageObject {
|
|
1567
1567
|
readonly page: Page;
|
|
1568
|
+
readonly instanceMeta: HelperFixtureTypes$1['InstanceMeta'];
|
|
1568
1569
|
readonly headline: Locator;
|
|
1569
1570
|
readonly saveButton: Locator;
|
|
1570
1571
|
readonly cancelButton: Locator;
|
|
@@ -1579,17 +1580,18 @@ declare class CustomerGroupCreate implements PageObject {
|
|
|
1579
1580
|
readonly signupFormCompanySignupToggle: Locator;
|
|
1580
1581
|
readonly customerGroupSaleschannelSelection: Locator;
|
|
1581
1582
|
readonly customerGroupSaleschannelResultList: Locator;
|
|
1582
|
-
constructor(page: Page);
|
|
1583
|
+
constructor(page: Page, instanceMeta: HelperFixtureTypes$1['InstanceMeta']);
|
|
1583
1584
|
url(): string;
|
|
1584
1585
|
}
|
|
1585
1586
|
|
|
1586
1587
|
declare class CustomerGroupDetail extends CustomerGroupCreate implements PageObject {
|
|
1587
1588
|
readonly page: Page;
|
|
1589
|
+
readonly instanceMeta: HelperFixtureTypes$1['InstanceMeta'];
|
|
1588
1590
|
readonly headline: Locator;
|
|
1589
1591
|
readonly selectedSalesChannel: Locator;
|
|
1590
1592
|
readonly technicalUrl: Locator;
|
|
1591
1593
|
readonly saleschannelUrl: Locator;
|
|
1592
|
-
constructor(page: Page);
|
|
1594
|
+
constructor(page: Page, instanceMeta: HelperFixtureTypes$1['InstanceMeta']);
|
|
1593
1595
|
url(customerGroupId?: string): string;
|
|
1594
1596
|
}
|
|
1595
1597
|
|
|
@@ -1922,6 +1924,7 @@ declare class RuleCreate implements PageObject {
|
|
|
1922
1924
|
|
|
1923
1925
|
declare class RuleDetail extends RuleCreate implements PageObject {
|
|
1924
1926
|
readonly page: Page;
|
|
1927
|
+
readonly instanceMeta: HelperFixtureTypes['InstanceMeta'];
|
|
1925
1928
|
readonly shippingMethodAvailabilityRulesCard: Locator;
|
|
1926
1929
|
readonly shippingMethodAvailabilityRulesCardLink: Locator;
|
|
1927
1930
|
readonly shippingMethodAvailabilityRulesCardTable: Locator;
|
|
@@ -1938,7 +1941,9 @@ declare class RuleDetail extends RuleCreate implements PageObject {
|
|
|
1938
1941
|
readonly promotionCustomerRulesCardEmptyState: Locator;
|
|
1939
1942
|
readonly promotionCartRulesCard: Locator;
|
|
1940
1943
|
readonly promotionCartRulesCardEmptyState: Locator;
|
|
1941
|
-
|
|
1944
|
+
readonly assignmentModalAddButton: Locator;
|
|
1945
|
+
readonly assignmentModalSearchField: Locator;
|
|
1946
|
+
constructor(page: Page, instanceMeta: HelperFixtureTypes['InstanceMeta']);
|
|
1942
1947
|
getEntityCard(cardLocator: Locator): Promise<Record<string, Locator>>;
|
|
1943
1948
|
url(ruleId?: string, tabName?: string): string;
|
|
1944
1949
|
}
|
|
@@ -1952,12 +1957,13 @@ declare class RuleListing implements PageObject {
|
|
|
1952
1957
|
|
|
1953
1958
|
declare class ManufacturerCreate implements PageObject {
|
|
1954
1959
|
readonly page: Page;
|
|
1960
|
+
readonly instanceMeta: HelperFixtureTypes$1['InstanceMeta'];
|
|
1955
1961
|
readonly saveButton: Locator;
|
|
1956
1962
|
readonly cancelButton: Locator;
|
|
1957
1963
|
readonly nameInput: Locator;
|
|
1958
1964
|
readonly websiteInput: Locator;
|
|
1959
1965
|
readonly descriptionInput: Locator;
|
|
1960
|
-
constructor(page: Page);
|
|
1966
|
+
constructor(page: Page, instanceMeta: HelperFixtureTypes$1['InstanceMeta']);
|
|
1961
1967
|
url(): string;
|
|
1962
1968
|
}
|
|
1963
1969
|
|
|
@@ -1972,10 +1978,11 @@ declare class ManufacturerListing implements PageObject {
|
|
|
1972
1978
|
|
|
1973
1979
|
declare class ManufacturerDetail extends ManufacturerCreate {
|
|
1974
1980
|
readonly page: Page;
|
|
1981
|
+
readonly instanceMeta: HelperFixtureTypes$1['InstanceMeta'];
|
|
1975
1982
|
readonly customFieldCard: Locator;
|
|
1976
1983
|
readonly customFieldSetTabs: Locator;
|
|
1977
1984
|
readonly customFieldSetTabCustomContent: Locator;
|
|
1978
|
-
constructor(page: Page);
|
|
1985
|
+
constructor(page: Page, instanceMeta: HelperFixtureTypes$1['InstanceMeta']);
|
|
1979
1986
|
getCustomFieldSetCardContentByName(customFieldSetName: string): Promise<Record<string, Locator>>;
|
|
1980
1987
|
url(manufacturerUuid?: string): string;
|
|
1981
1988
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -3024,9 +3024,8 @@ var __publicField$O = (obj, key, value) => {
|
|
|
3024
3024
|
return value;
|
|
3025
3025
|
};
|
|
3026
3026
|
class Home {
|
|
3027
|
-
constructor(page
|
|
3027
|
+
constructor(page) {
|
|
3028
3028
|
this.page = page;
|
|
3029
|
-
this.instanceMeta = instanceMeta;
|
|
3030
3029
|
__publicField$O(this, "productImages");
|
|
3031
3030
|
__publicField$O(this, "productListItems");
|
|
3032
3031
|
__publicField$O(this, "languagesDropdown");
|
|
@@ -3046,11 +3045,7 @@ class Home {
|
|
|
3046
3045
|
__publicField$O(this, "consentDialogSaveButton");
|
|
3047
3046
|
__publicField$O(this, "consentCookieBannerContainer");
|
|
3048
3047
|
__publicField$O(this, "offcanvasBackdrop");
|
|
3049
|
-
|
|
3050
|
-
this.productImages = page.locator(".product-image-link");
|
|
3051
|
-
} else {
|
|
3052
|
-
this.productImages = page.locator(".product-image");
|
|
3053
|
-
}
|
|
3048
|
+
this.productImages = page.locator(".product-image-wrapper");
|
|
3054
3049
|
this.productListItems = page.getByRole("listitem");
|
|
3055
3050
|
this.languagesDropdown = page.locator(".top-bar-language").filter({ has: page.getByRole("button") });
|
|
3056
3051
|
this.languagesMenuOptions = page.locator(".top-bar-language").filter({ has: page.getByRole("list") });
|
|
@@ -3706,7 +3701,7 @@ class Search {
|
|
|
3706
3701
|
__publicField$z(this, "headline");
|
|
3707
3702
|
__publicField$z(this, "productImages");
|
|
3708
3703
|
this.headline = page.locator("h1.search-headline");
|
|
3709
|
-
this.productImages = page.locator(".product-image-
|
|
3704
|
+
this.productImages = page.locator(".product-image-wrapper");
|
|
3710
3705
|
}
|
|
3711
3706
|
url(searchTerm) {
|
|
3712
3707
|
return `search?search=${searchTerm}`;
|
|
@@ -3803,8 +3798,8 @@ const StorefrontPageObjects = {
|
|
|
3803
3798
|
CheckoutOrderEdit
|
|
3804
3799
|
};
|
|
3805
3800
|
const test$6 = test$e.extend({
|
|
3806
|
-
StorefrontHome: async ({ StorefrontPage
|
|
3807
|
-
await use(new Home(StorefrontPage
|
|
3801
|
+
StorefrontHome: async ({ StorefrontPage }, use) => {
|
|
3802
|
+
await use(new Home(StorefrontPage));
|
|
3808
3803
|
},
|
|
3809
3804
|
StorefrontProductDetail: async ({ StorefrontPage }, use) => {
|
|
3810
3805
|
await use(new ProductDetail$1(StorefrontPage));
|
|
@@ -4191,8 +4186,9 @@ var __publicField$r = (obj, key, value) => {
|
|
|
4191
4186
|
return value;
|
|
4192
4187
|
};
|
|
4193
4188
|
class CustomerGroupCreate {
|
|
4194
|
-
constructor(page) {
|
|
4189
|
+
constructor(page, instanceMeta) {
|
|
4195
4190
|
this.page = page;
|
|
4191
|
+
this.instanceMeta = instanceMeta;
|
|
4196
4192
|
__publicField$r(this, "headline");
|
|
4197
4193
|
__publicField$r(this, "saveButton");
|
|
4198
4194
|
__publicField$r(this, "cancelButton");
|
|
@@ -4216,7 +4212,11 @@ class CustomerGroupCreate {
|
|
|
4216
4212
|
this.customerGroupNetTaxDisplay = page.locator("#sw-field--castedValue-1");
|
|
4217
4213
|
this.customSignupFormToggle = page.getByLabel("Custom signup form");
|
|
4218
4214
|
this.signupFormTitle = page.locator("#sw-field--customerGroup-registrationTitle");
|
|
4219
|
-
|
|
4215
|
+
if (satisfies(instanceMeta.version, "<6.7")) {
|
|
4216
|
+
this.signupFormIntroduction = page.locator(".sw-text-editor__content-editor");
|
|
4217
|
+
} else {
|
|
4218
|
+
this.signupFormIntroduction = page.locator(".mt-text-editor__content-editor");
|
|
4219
|
+
}
|
|
4220
4220
|
this.signupFormSeoDescription = page.locator("#sw-field--customerGroup-registrationSeoMetaDescription");
|
|
4221
4221
|
this.signupFormCompanySignupToggle = page.getByLabel("Company signup form");
|
|
4222
4222
|
this.customerGroupSaleschannelSelection = page.locator("input[class=sw-select-selection-list__input]");
|
|
@@ -4234,9 +4234,10 @@ var __publicField$q = (obj, key, value) => {
|
|
|
4234
4234
|
return value;
|
|
4235
4235
|
};
|
|
4236
4236
|
class CustomerGroupDetail extends CustomerGroupCreate {
|
|
4237
|
-
constructor(page) {
|
|
4238
|
-
super(page);
|
|
4237
|
+
constructor(page, instanceMeta) {
|
|
4238
|
+
super(page, instanceMeta);
|
|
4239
4239
|
this.page = page;
|
|
4240
|
+
this.instanceMeta = instanceMeta;
|
|
4240
4241
|
__publicField$q(this, "headline");
|
|
4241
4242
|
__publicField$q(this, "selectedSalesChannel");
|
|
4242
4243
|
__publicField$q(this, "technicalUrl");
|
|
@@ -5013,9 +5014,10 @@ var __publicField$8 = (obj, key, value) => {
|
|
|
5013
5014
|
return value;
|
|
5014
5015
|
};
|
|
5015
5016
|
class RuleDetail extends RuleCreate {
|
|
5016
|
-
constructor(page) {
|
|
5017
|
+
constructor(page, instanceMeta) {
|
|
5017
5018
|
super(page);
|
|
5018
5019
|
this.page = page;
|
|
5020
|
+
this.instanceMeta = instanceMeta;
|
|
5019
5021
|
__publicField$8(this, "shippingMethodAvailabilityRulesCard");
|
|
5020
5022
|
__publicField$8(this, "shippingMethodAvailabilityRulesCardLink");
|
|
5021
5023
|
__publicField$8(this, "shippingMethodAvailabilityRulesCardTable");
|
|
@@ -5032,11 +5034,13 @@ class RuleDetail extends RuleCreate {
|
|
|
5032
5034
|
__publicField$8(this, "promotionCustomerRulesCardEmptyState");
|
|
5033
5035
|
__publicField$8(this, "promotionCartRulesCard");
|
|
5034
5036
|
__publicField$8(this, "promotionCartRulesCardEmptyState");
|
|
5037
|
+
__publicField$8(this, "assignmentModalAddButton");
|
|
5038
|
+
__publicField$8(this, "assignmentModalSearchField");
|
|
5035
5039
|
this.shippingMethodAvailabilityRulesCard = page.locator(".sw-settings-rule-detail-assignments__card-shipping_method_availability_rule");
|
|
5036
5040
|
this.shippingMethodAvailabilityRulesCardLink = this.shippingMethodAvailabilityRulesCard.getByRole("link");
|
|
5037
5041
|
this.shippingMethodAvailabilityRulesCardTable = page.locator(".sw-settings-rule-detail-assignments__entity-listing-shipping_method_availability_rule");
|
|
5038
5042
|
this.shippingMethodAvailabilityRulesCardEmptyState = this.shippingMethodAvailabilityRulesCard.getByRole("alert");
|
|
5039
|
-
this.shippingMethodAvailabilityRulesCardSearchField = this.shippingMethodAvailabilityRulesCard.
|
|
5043
|
+
this.shippingMethodAvailabilityRulesCardSearchField = this.shippingMethodAvailabilityRulesCard.getByRole("textbox");
|
|
5040
5044
|
this.taxProviderRulesCard = page.locator(".sw-settings-rule-detail-assignments__card-tax_provider");
|
|
5041
5045
|
this.taxProviderRulesCardEmptyState = this.taxProviderRulesCard.getByRole("alert");
|
|
5042
5046
|
this.paymentMethodsAvailabilityRulesCard = page.locator(".sw-settings-rule-detail-assignments__card-payment_method");
|
|
@@ -5048,6 +5052,12 @@ class RuleDetail extends RuleCreate {
|
|
|
5048
5052
|
this.promotionCustomerRulesCardEmptyState = this.promotionCustomerRulesCard.getByRole("alert");
|
|
5049
5053
|
this.promotionCartRulesCard = page.locator(".sw-settings-rule-detail-assignments__card-promotion_cart_rule");
|
|
5050
5054
|
this.promotionCartRulesCardEmptyState = this.promotionCartRulesCard.getByRole("alert");
|
|
5055
|
+
this.assignmentModalSearchField = page.locator(".sw-settings-rule-add-assignment-modal").getByRole("textbox");
|
|
5056
|
+
if (satisfies(instanceMeta.version, "<6.7")) {
|
|
5057
|
+
this.assignmentModalAddButton = page.locator(".sw-button--primary").getByText("Add");
|
|
5058
|
+
} else {
|
|
5059
|
+
this.assignmentModalAddButton = page.locator(".mt-button--primary").getByText("Add");
|
|
5060
|
+
}
|
|
5051
5061
|
}
|
|
5052
5062
|
async getEntityCard(cardLocator) {
|
|
5053
5063
|
return {
|
|
@@ -5083,8 +5093,9 @@ var __publicField$6 = (obj, key, value) => {
|
|
|
5083
5093
|
return value;
|
|
5084
5094
|
};
|
|
5085
5095
|
class ManufacturerCreate {
|
|
5086
|
-
constructor(page) {
|
|
5096
|
+
constructor(page, instanceMeta) {
|
|
5087
5097
|
this.page = page;
|
|
5098
|
+
this.instanceMeta = instanceMeta;
|
|
5088
5099
|
__publicField$6(this, "saveButton");
|
|
5089
5100
|
__publicField$6(this, "cancelButton");
|
|
5090
5101
|
__publicField$6(this, "nameInput");
|
|
@@ -5094,7 +5105,11 @@ class ManufacturerCreate {
|
|
|
5094
5105
|
this.cancelButton = page.getByRole("button", { name: "Cancel" });
|
|
5095
5106
|
this.nameInput = page.getByLabel("Name");
|
|
5096
5107
|
this.websiteInput = page.getByLabel("Website");
|
|
5097
|
-
|
|
5108
|
+
if (satisfies(instanceMeta.version, "<6.7")) {
|
|
5109
|
+
this.descriptionInput = page.locator(".sw-text-editor__content-editor");
|
|
5110
|
+
} else {
|
|
5111
|
+
this.descriptionInput = page.locator(".mt-text-editor__content-editor");
|
|
5112
|
+
}
|
|
5098
5113
|
}
|
|
5099
5114
|
url() {
|
|
5100
5115
|
return `#/sw/manufacturer/create`;
|
|
@@ -5150,9 +5165,10 @@ var __publicField$4 = (obj, key, value) => {
|
|
|
5150
5165
|
return value;
|
|
5151
5166
|
};
|
|
5152
5167
|
class ManufacturerDetail extends ManufacturerCreate {
|
|
5153
|
-
constructor(page) {
|
|
5154
|
-
super(page);
|
|
5168
|
+
constructor(page, instanceMeta) {
|
|
5169
|
+
super(page, instanceMeta);
|
|
5155
5170
|
this.page = page;
|
|
5171
|
+
this.instanceMeta = instanceMeta;
|
|
5156
5172
|
__publicField$4(this, "customFieldCard");
|
|
5157
5173
|
__publicField$4(this, "customFieldSetTabs");
|
|
5158
5174
|
__publicField$4(this, "customFieldSetTabCustomContent");
|
|
@@ -5473,11 +5489,11 @@ const test$5 = test$e.extend({
|
|
|
5473
5489
|
AdminCustomerGroupListing: async ({ AdminPage }, use) => {
|
|
5474
5490
|
await use(new CustomerGroupListing(AdminPage));
|
|
5475
5491
|
},
|
|
5476
|
-
AdminCustomerGroupCreate: async ({ AdminPage }, use) => {
|
|
5477
|
-
await use(new CustomerGroupCreate(AdminPage));
|
|
5492
|
+
AdminCustomerGroupCreate: async ({ AdminPage, InstanceMeta }, use) => {
|
|
5493
|
+
await use(new CustomerGroupCreate(AdminPage, InstanceMeta));
|
|
5478
5494
|
},
|
|
5479
|
-
AdminCustomerGroupDetail: async ({ AdminPage }, use) => {
|
|
5480
|
-
await use(new CustomerGroupDetail(AdminPage));
|
|
5495
|
+
AdminCustomerGroupDetail: async ({ AdminPage, InstanceMeta }, use) => {
|
|
5496
|
+
await use(new CustomerGroupDetail(AdminPage, InstanceMeta));
|
|
5481
5497
|
},
|
|
5482
5498
|
AdminFirstRunWizard: async ({ AdminPage, InstanceMeta }, use) => {
|
|
5483
5499
|
await use(new FirstRunWizard(AdminPage, InstanceMeta));
|
|
@@ -5530,8 +5546,8 @@ const test$5 = test$e.extend({
|
|
|
5530
5546
|
AdminRuleCreate: async ({ AdminPage }, use) => {
|
|
5531
5547
|
await use(new RuleCreate(AdminPage));
|
|
5532
5548
|
},
|
|
5533
|
-
AdminRuleDetail: async ({ AdminPage }, use) => {
|
|
5534
|
-
await use(new RuleDetail(AdminPage));
|
|
5549
|
+
AdminRuleDetail: async ({ AdminPage, InstanceMeta }, use) => {
|
|
5550
|
+
await use(new RuleDetail(AdminPage, InstanceMeta));
|
|
5535
5551
|
},
|
|
5536
5552
|
AdminRuleListing: async ({ AdminPage }, use) => {
|
|
5537
5553
|
await use(new RuleListing(AdminPage));
|
|
@@ -5539,11 +5555,11 @@ const test$5 = test$e.extend({
|
|
|
5539
5555
|
AdminManufacturerListing: async ({ AdminPage }, use) => {
|
|
5540
5556
|
await use(new ManufacturerListing(AdminPage));
|
|
5541
5557
|
},
|
|
5542
|
-
AdminManufacturerCreate: async ({ AdminPage }, use) => {
|
|
5543
|
-
await use(new ManufacturerCreate(AdminPage));
|
|
5558
|
+
AdminManufacturerCreate: async ({ AdminPage, InstanceMeta }, use) => {
|
|
5559
|
+
await use(new ManufacturerCreate(AdminPage, InstanceMeta));
|
|
5544
5560
|
},
|
|
5545
|
-
AdminManufacturerDetail: async ({ AdminPage }, use) => {
|
|
5546
|
-
await use(new ManufacturerDetail(AdminPage));
|
|
5561
|
+
AdminManufacturerDetail: async ({ AdminPage, InstanceMeta }, use) => {
|
|
5562
|
+
await use(new ManufacturerDetail(AdminPage, InstanceMeta));
|
|
5547
5563
|
},
|
|
5548
5564
|
AdminProductListing: async ({ AdminPage }, use) => {
|
|
5549
5565
|
await use(new ProductListing(AdminPage));
|
|
@@ -6370,9 +6386,9 @@ const AssignEntitiesToRule = test$e.extend({
|
|
|
6370
6386
|
async function entityAssignment(entityName, card) {
|
|
6371
6387
|
const entityCard = await AdminRuleDetail.getEntityCard(card);
|
|
6372
6388
|
await entityCard.addAssignmentButton.click();
|
|
6373
|
-
await AdminRuleDetail.
|
|
6389
|
+
await AdminRuleDetail.assignmentModalSearchField.fill(entityName);
|
|
6374
6390
|
await AdminRuleDetail.page.locator(".sw-data-grid__row").filter({ hasText: entityName }).getByRole("checkbox").click();
|
|
6375
|
-
await AdminRuleDetail.
|
|
6391
|
+
await AdminRuleDetail.assignmentModalAddButton.click();
|
|
6376
6392
|
}
|
|
6377
6393
|
for (const assignableEntity of assignableEntities) {
|
|
6378
6394
|
switch (assignableEntity.ruleType) {
|