@shopware-ag/acceptance-test-suite 11.1.5 → 11.2.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 +17 -5
- package/dist/index.d.ts +17 -5
- package/dist/index.mjs +79 -45
- 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>;
|
|
@@ -337,6 +338,8 @@ type SalesChannelAnalytics = components['schemas']['SalesChannelAnalytics'] & {
|
|
|
337
338
|
id: string;
|
|
338
339
|
};
|
|
339
340
|
interface RegistrationData {
|
|
341
|
+
isCommercial: boolean;
|
|
342
|
+
isGuest: boolean;
|
|
340
343
|
salutation: string;
|
|
341
344
|
firstName: string;
|
|
342
345
|
lastName: string;
|
|
@@ -1092,6 +1095,8 @@ interface PageObject {
|
|
|
1092
1095
|
|
|
1093
1096
|
declare class Home implements PageObject {
|
|
1094
1097
|
readonly page: Page;
|
|
1098
|
+
readonly accountMenuButton: Locator;
|
|
1099
|
+
readonly closeGuestSessionButton: Locator;
|
|
1095
1100
|
readonly productImages: Locator;
|
|
1096
1101
|
readonly productListItems: Locator;
|
|
1097
1102
|
readonly languagesDropdown: Locator;
|
|
@@ -1564,6 +1569,7 @@ declare class CustomerGroupListing implements PageObject {
|
|
|
1564
1569
|
|
|
1565
1570
|
declare class CustomerGroupCreate implements PageObject {
|
|
1566
1571
|
readonly page: Page;
|
|
1572
|
+
readonly instanceMeta: HelperFixtureTypes$1['InstanceMeta'];
|
|
1567
1573
|
readonly headline: Locator;
|
|
1568
1574
|
readonly saveButton: Locator;
|
|
1569
1575
|
readonly cancelButton: Locator;
|
|
@@ -1578,17 +1584,18 @@ declare class CustomerGroupCreate implements PageObject {
|
|
|
1578
1584
|
readonly signupFormCompanySignupToggle: Locator;
|
|
1579
1585
|
readonly customerGroupSaleschannelSelection: Locator;
|
|
1580
1586
|
readonly customerGroupSaleschannelResultList: Locator;
|
|
1581
|
-
constructor(page: Page);
|
|
1587
|
+
constructor(page: Page, instanceMeta: HelperFixtureTypes$1['InstanceMeta']);
|
|
1582
1588
|
url(): string;
|
|
1583
1589
|
}
|
|
1584
1590
|
|
|
1585
1591
|
declare class CustomerGroupDetail extends CustomerGroupCreate implements PageObject {
|
|
1586
1592
|
readonly page: Page;
|
|
1593
|
+
readonly instanceMeta: HelperFixtureTypes$1['InstanceMeta'];
|
|
1587
1594
|
readonly headline: Locator;
|
|
1588
1595
|
readonly selectedSalesChannel: Locator;
|
|
1589
1596
|
readonly technicalUrl: Locator;
|
|
1590
1597
|
readonly saleschannelUrl: Locator;
|
|
1591
|
-
constructor(page: Page);
|
|
1598
|
+
constructor(page: Page, instanceMeta: HelperFixtureTypes$1['InstanceMeta']);
|
|
1592
1599
|
url(customerGroupId?: string): string;
|
|
1593
1600
|
}
|
|
1594
1601
|
|
|
@@ -1921,6 +1928,7 @@ declare class RuleCreate implements PageObject {
|
|
|
1921
1928
|
|
|
1922
1929
|
declare class RuleDetail extends RuleCreate implements PageObject {
|
|
1923
1930
|
readonly page: Page;
|
|
1931
|
+
readonly instanceMeta: HelperFixtureTypes['InstanceMeta'];
|
|
1924
1932
|
readonly shippingMethodAvailabilityRulesCard: Locator;
|
|
1925
1933
|
readonly shippingMethodAvailabilityRulesCardLink: Locator;
|
|
1926
1934
|
readonly shippingMethodAvailabilityRulesCardTable: Locator;
|
|
@@ -1937,7 +1945,9 @@ declare class RuleDetail extends RuleCreate implements PageObject {
|
|
|
1937
1945
|
readonly promotionCustomerRulesCardEmptyState: Locator;
|
|
1938
1946
|
readonly promotionCartRulesCard: Locator;
|
|
1939
1947
|
readonly promotionCartRulesCardEmptyState: Locator;
|
|
1940
|
-
|
|
1948
|
+
readonly assignmentModalAddButton: Locator;
|
|
1949
|
+
readonly assignmentModalSearchField: Locator;
|
|
1950
|
+
constructor(page: Page, instanceMeta: HelperFixtureTypes['InstanceMeta']);
|
|
1941
1951
|
getEntityCard(cardLocator: Locator): Promise<Record<string, Locator>>;
|
|
1942
1952
|
url(ruleId?: string, tabName?: string): string;
|
|
1943
1953
|
}
|
|
@@ -1951,12 +1961,13 @@ declare class RuleListing implements PageObject {
|
|
|
1951
1961
|
|
|
1952
1962
|
declare class ManufacturerCreate implements PageObject {
|
|
1953
1963
|
readonly page: Page;
|
|
1964
|
+
readonly instanceMeta: HelperFixtureTypes$1['InstanceMeta'];
|
|
1954
1965
|
readonly saveButton: Locator;
|
|
1955
1966
|
readonly cancelButton: Locator;
|
|
1956
1967
|
readonly nameInput: Locator;
|
|
1957
1968
|
readonly websiteInput: Locator;
|
|
1958
1969
|
readonly descriptionInput: Locator;
|
|
1959
|
-
constructor(page: Page);
|
|
1970
|
+
constructor(page: Page, instanceMeta: HelperFixtureTypes$1['InstanceMeta']);
|
|
1960
1971
|
url(): string;
|
|
1961
1972
|
}
|
|
1962
1973
|
|
|
@@ -1971,10 +1982,11 @@ declare class ManufacturerListing implements PageObject {
|
|
|
1971
1982
|
|
|
1972
1983
|
declare class ManufacturerDetail extends ManufacturerCreate {
|
|
1973
1984
|
readonly page: Page;
|
|
1985
|
+
readonly instanceMeta: HelperFixtureTypes$1['InstanceMeta'];
|
|
1974
1986
|
readonly customFieldCard: Locator;
|
|
1975
1987
|
readonly customFieldSetTabs: Locator;
|
|
1976
1988
|
readonly customFieldSetTabCustomContent: Locator;
|
|
1977
|
-
constructor(page: Page);
|
|
1989
|
+
constructor(page: Page, instanceMeta: HelperFixtureTypes$1['InstanceMeta']);
|
|
1978
1990
|
getCustomFieldSetCardContentByName(customFieldSetName: string): Promise<Record<string, Locator>>;
|
|
1979
1991
|
url(manufacturerUuid?: string): string;
|
|
1980
1992
|
}
|
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>;
|
|
@@ -337,6 +338,8 @@ type SalesChannelAnalytics = components['schemas']['SalesChannelAnalytics'] & {
|
|
|
337
338
|
id: string;
|
|
338
339
|
};
|
|
339
340
|
interface RegistrationData {
|
|
341
|
+
isCommercial: boolean;
|
|
342
|
+
isGuest: boolean;
|
|
340
343
|
salutation: string;
|
|
341
344
|
firstName: string;
|
|
342
345
|
lastName: string;
|
|
@@ -1092,6 +1095,8 @@ interface PageObject {
|
|
|
1092
1095
|
|
|
1093
1096
|
declare class Home implements PageObject {
|
|
1094
1097
|
readonly page: Page;
|
|
1098
|
+
readonly accountMenuButton: Locator;
|
|
1099
|
+
readonly closeGuestSessionButton: Locator;
|
|
1095
1100
|
readonly productImages: Locator;
|
|
1096
1101
|
readonly productListItems: Locator;
|
|
1097
1102
|
readonly languagesDropdown: Locator;
|
|
@@ -1564,6 +1569,7 @@ declare class CustomerGroupListing implements PageObject {
|
|
|
1564
1569
|
|
|
1565
1570
|
declare class CustomerGroupCreate implements PageObject {
|
|
1566
1571
|
readonly page: Page;
|
|
1572
|
+
readonly instanceMeta: HelperFixtureTypes$1['InstanceMeta'];
|
|
1567
1573
|
readonly headline: Locator;
|
|
1568
1574
|
readonly saveButton: Locator;
|
|
1569
1575
|
readonly cancelButton: Locator;
|
|
@@ -1578,17 +1584,18 @@ declare class CustomerGroupCreate implements PageObject {
|
|
|
1578
1584
|
readonly signupFormCompanySignupToggle: Locator;
|
|
1579
1585
|
readonly customerGroupSaleschannelSelection: Locator;
|
|
1580
1586
|
readonly customerGroupSaleschannelResultList: Locator;
|
|
1581
|
-
constructor(page: Page);
|
|
1587
|
+
constructor(page: Page, instanceMeta: HelperFixtureTypes$1['InstanceMeta']);
|
|
1582
1588
|
url(): string;
|
|
1583
1589
|
}
|
|
1584
1590
|
|
|
1585
1591
|
declare class CustomerGroupDetail extends CustomerGroupCreate implements PageObject {
|
|
1586
1592
|
readonly page: Page;
|
|
1593
|
+
readonly instanceMeta: HelperFixtureTypes$1['InstanceMeta'];
|
|
1587
1594
|
readonly headline: Locator;
|
|
1588
1595
|
readonly selectedSalesChannel: Locator;
|
|
1589
1596
|
readonly technicalUrl: Locator;
|
|
1590
1597
|
readonly saleschannelUrl: Locator;
|
|
1591
|
-
constructor(page: Page);
|
|
1598
|
+
constructor(page: Page, instanceMeta: HelperFixtureTypes$1['InstanceMeta']);
|
|
1592
1599
|
url(customerGroupId?: string): string;
|
|
1593
1600
|
}
|
|
1594
1601
|
|
|
@@ -1921,6 +1928,7 @@ declare class RuleCreate implements PageObject {
|
|
|
1921
1928
|
|
|
1922
1929
|
declare class RuleDetail extends RuleCreate implements PageObject {
|
|
1923
1930
|
readonly page: Page;
|
|
1931
|
+
readonly instanceMeta: HelperFixtureTypes['InstanceMeta'];
|
|
1924
1932
|
readonly shippingMethodAvailabilityRulesCard: Locator;
|
|
1925
1933
|
readonly shippingMethodAvailabilityRulesCardLink: Locator;
|
|
1926
1934
|
readonly shippingMethodAvailabilityRulesCardTable: Locator;
|
|
@@ -1937,7 +1945,9 @@ declare class RuleDetail extends RuleCreate implements PageObject {
|
|
|
1937
1945
|
readonly promotionCustomerRulesCardEmptyState: Locator;
|
|
1938
1946
|
readonly promotionCartRulesCard: Locator;
|
|
1939
1947
|
readonly promotionCartRulesCardEmptyState: Locator;
|
|
1940
|
-
|
|
1948
|
+
readonly assignmentModalAddButton: Locator;
|
|
1949
|
+
readonly assignmentModalSearchField: Locator;
|
|
1950
|
+
constructor(page: Page, instanceMeta: HelperFixtureTypes['InstanceMeta']);
|
|
1941
1951
|
getEntityCard(cardLocator: Locator): Promise<Record<string, Locator>>;
|
|
1942
1952
|
url(ruleId?: string, tabName?: string): string;
|
|
1943
1953
|
}
|
|
@@ -1951,12 +1961,13 @@ declare class RuleListing implements PageObject {
|
|
|
1951
1961
|
|
|
1952
1962
|
declare class ManufacturerCreate implements PageObject {
|
|
1953
1963
|
readonly page: Page;
|
|
1964
|
+
readonly instanceMeta: HelperFixtureTypes$1['InstanceMeta'];
|
|
1954
1965
|
readonly saveButton: Locator;
|
|
1955
1966
|
readonly cancelButton: Locator;
|
|
1956
1967
|
readonly nameInput: Locator;
|
|
1957
1968
|
readonly websiteInput: Locator;
|
|
1958
1969
|
readonly descriptionInput: Locator;
|
|
1959
|
-
constructor(page: Page);
|
|
1970
|
+
constructor(page: Page, instanceMeta: HelperFixtureTypes$1['InstanceMeta']);
|
|
1960
1971
|
url(): string;
|
|
1961
1972
|
}
|
|
1962
1973
|
|
|
@@ -1971,10 +1982,11 @@ declare class ManufacturerListing implements PageObject {
|
|
|
1971
1982
|
|
|
1972
1983
|
declare class ManufacturerDetail extends ManufacturerCreate {
|
|
1973
1984
|
readonly page: Page;
|
|
1985
|
+
readonly instanceMeta: HelperFixtureTypes$1['InstanceMeta'];
|
|
1974
1986
|
readonly customFieldCard: Locator;
|
|
1975
1987
|
readonly customFieldSetTabs: Locator;
|
|
1976
1988
|
readonly customFieldSetTabCustomContent: Locator;
|
|
1977
|
-
constructor(page: Page);
|
|
1989
|
+
constructor(page: Page, instanceMeta: HelperFixtureTypes$1['InstanceMeta']);
|
|
1978
1990
|
getCustomFieldSetCardContentByName(customFieldSetName: string): Promise<Record<string, Locator>>;
|
|
1979
1991
|
url(manufacturerUuid?: string): string;
|
|
1980
1992
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -3026,6 +3026,8 @@ var __publicField$O = (obj, key, value) => {
|
|
|
3026
3026
|
class Home {
|
|
3027
3027
|
constructor(page) {
|
|
3028
3028
|
this.page = page;
|
|
3029
|
+
__publicField$O(this, "accountMenuButton");
|
|
3030
|
+
__publicField$O(this, "closeGuestSessionButton");
|
|
3029
3031
|
__publicField$O(this, "productImages");
|
|
3030
3032
|
__publicField$O(this, "productListItems");
|
|
3031
3033
|
__publicField$O(this, "languagesDropdown");
|
|
@@ -3045,6 +3047,8 @@ class Home {
|
|
|
3045
3047
|
__publicField$O(this, "consentDialogSaveButton");
|
|
3046
3048
|
__publicField$O(this, "consentCookieBannerContainer");
|
|
3047
3049
|
__publicField$O(this, "offcanvasBackdrop");
|
|
3050
|
+
this.accountMenuButton = page.getByLabel("Your account");
|
|
3051
|
+
this.closeGuestSessionButton = page.locator(".account-aside-btn");
|
|
3048
3052
|
this.productImages = page.locator(".product-image-wrapper");
|
|
3049
3053
|
this.productListItems = page.getByRole("listitem");
|
|
3050
3054
|
this.languagesDropdown = page.locator(".top-bar-language").filter({ has: page.getByRole("button") });
|
|
@@ -4186,8 +4190,9 @@ var __publicField$r = (obj, key, value) => {
|
|
|
4186
4190
|
return value;
|
|
4187
4191
|
};
|
|
4188
4192
|
class CustomerGroupCreate {
|
|
4189
|
-
constructor(page) {
|
|
4193
|
+
constructor(page, instanceMeta) {
|
|
4190
4194
|
this.page = page;
|
|
4195
|
+
this.instanceMeta = instanceMeta;
|
|
4191
4196
|
__publicField$r(this, "headline");
|
|
4192
4197
|
__publicField$r(this, "saveButton");
|
|
4193
4198
|
__publicField$r(this, "cancelButton");
|
|
@@ -4211,7 +4216,11 @@ class CustomerGroupCreate {
|
|
|
4211
4216
|
this.customerGroupNetTaxDisplay = page.locator("#sw-field--castedValue-1");
|
|
4212
4217
|
this.customSignupFormToggle = page.getByLabel("Custom signup form");
|
|
4213
4218
|
this.signupFormTitle = page.locator("#sw-field--customerGroup-registrationTitle");
|
|
4214
|
-
|
|
4219
|
+
if (satisfies(instanceMeta.version, "<6.7")) {
|
|
4220
|
+
this.signupFormIntroduction = page.locator(".sw-text-editor__content-editor");
|
|
4221
|
+
} else {
|
|
4222
|
+
this.signupFormIntroduction = page.locator(".mt-text-editor__content-editor");
|
|
4223
|
+
}
|
|
4215
4224
|
this.signupFormSeoDescription = page.locator("#sw-field--customerGroup-registrationSeoMetaDescription");
|
|
4216
4225
|
this.signupFormCompanySignupToggle = page.getByLabel("Company signup form");
|
|
4217
4226
|
this.customerGroupSaleschannelSelection = page.locator("input[class=sw-select-selection-list__input]");
|
|
@@ -4229,9 +4238,10 @@ var __publicField$q = (obj, key, value) => {
|
|
|
4229
4238
|
return value;
|
|
4230
4239
|
};
|
|
4231
4240
|
class CustomerGroupDetail extends CustomerGroupCreate {
|
|
4232
|
-
constructor(page) {
|
|
4233
|
-
super(page);
|
|
4241
|
+
constructor(page, instanceMeta) {
|
|
4242
|
+
super(page, instanceMeta);
|
|
4234
4243
|
this.page = page;
|
|
4244
|
+
this.instanceMeta = instanceMeta;
|
|
4235
4245
|
__publicField$q(this, "headline");
|
|
4236
4246
|
__publicField$q(this, "selectedSalesChannel");
|
|
4237
4247
|
__publicField$q(this, "technicalUrl");
|
|
@@ -5008,9 +5018,10 @@ var __publicField$8 = (obj, key, value) => {
|
|
|
5008
5018
|
return value;
|
|
5009
5019
|
};
|
|
5010
5020
|
class RuleDetail extends RuleCreate {
|
|
5011
|
-
constructor(page) {
|
|
5021
|
+
constructor(page, instanceMeta) {
|
|
5012
5022
|
super(page);
|
|
5013
5023
|
this.page = page;
|
|
5024
|
+
this.instanceMeta = instanceMeta;
|
|
5014
5025
|
__publicField$8(this, "shippingMethodAvailabilityRulesCard");
|
|
5015
5026
|
__publicField$8(this, "shippingMethodAvailabilityRulesCardLink");
|
|
5016
5027
|
__publicField$8(this, "shippingMethodAvailabilityRulesCardTable");
|
|
@@ -5027,11 +5038,13 @@ class RuleDetail extends RuleCreate {
|
|
|
5027
5038
|
__publicField$8(this, "promotionCustomerRulesCardEmptyState");
|
|
5028
5039
|
__publicField$8(this, "promotionCartRulesCard");
|
|
5029
5040
|
__publicField$8(this, "promotionCartRulesCardEmptyState");
|
|
5041
|
+
__publicField$8(this, "assignmentModalAddButton");
|
|
5042
|
+
__publicField$8(this, "assignmentModalSearchField");
|
|
5030
5043
|
this.shippingMethodAvailabilityRulesCard = page.locator(".sw-settings-rule-detail-assignments__card-shipping_method_availability_rule");
|
|
5031
5044
|
this.shippingMethodAvailabilityRulesCardLink = this.shippingMethodAvailabilityRulesCard.getByRole("link");
|
|
5032
5045
|
this.shippingMethodAvailabilityRulesCardTable = page.locator(".sw-settings-rule-detail-assignments__entity-listing-shipping_method_availability_rule");
|
|
5033
5046
|
this.shippingMethodAvailabilityRulesCardEmptyState = this.shippingMethodAvailabilityRulesCard.getByRole("alert");
|
|
5034
|
-
this.shippingMethodAvailabilityRulesCardSearchField = this.shippingMethodAvailabilityRulesCard.
|
|
5047
|
+
this.shippingMethodAvailabilityRulesCardSearchField = this.shippingMethodAvailabilityRulesCard.getByRole("textbox");
|
|
5035
5048
|
this.taxProviderRulesCard = page.locator(".sw-settings-rule-detail-assignments__card-tax_provider");
|
|
5036
5049
|
this.taxProviderRulesCardEmptyState = this.taxProviderRulesCard.getByRole("alert");
|
|
5037
5050
|
this.paymentMethodsAvailabilityRulesCard = page.locator(".sw-settings-rule-detail-assignments__card-payment_method");
|
|
@@ -5043,6 +5056,12 @@ class RuleDetail extends RuleCreate {
|
|
|
5043
5056
|
this.promotionCustomerRulesCardEmptyState = this.promotionCustomerRulesCard.getByRole("alert");
|
|
5044
5057
|
this.promotionCartRulesCard = page.locator(".sw-settings-rule-detail-assignments__card-promotion_cart_rule");
|
|
5045
5058
|
this.promotionCartRulesCardEmptyState = this.promotionCartRulesCard.getByRole("alert");
|
|
5059
|
+
this.assignmentModalSearchField = page.locator(".sw-settings-rule-add-assignment-modal").getByRole("textbox");
|
|
5060
|
+
if (satisfies(instanceMeta.version, "<6.7")) {
|
|
5061
|
+
this.assignmentModalAddButton = page.locator(".sw-button--primary").getByText("Add");
|
|
5062
|
+
} else {
|
|
5063
|
+
this.assignmentModalAddButton = page.locator(".mt-button--primary").getByText("Add");
|
|
5064
|
+
}
|
|
5046
5065
|
}
|
|
5047
5066
|
async getEntityCard(cardLocator) {
|
|
5048
5067
|
return {
|
|
@@ -5078,8 +5097,9 @@ var __publicField$6 = (obj, key, value) => {
|
|
|
5078
5097
|
return value;
|
|
5079
5098
|
};
|
|
5080
5099
|
class ManufacturerCreate {
|
|
5081
|
-
constructor(page) {
|
|
5100
|
+
constructor(page, instanceMeta) {
|
|
5082
5101
|
this.page = page;
|
|
5102
|
+
this.instanceMeta = instanceMeta;
|
|
5083
5103
|
__publicField$6(this, "saveButton");
|
|
5084
5104
|
__publicField$6(this, "cancelButton");
|
|
5085
5105
|
__publicField$6(this, "nameInput");
|
|
@@ -5089,7 +5109,11 @@ class ManufacturerCreate {
|
|
|
5089
5109
|
this.cancelButton = page.getByRole("button", { name: "Cancel" });
|
|
5090
5110
|
this.nameInput = page.getByLabel("Name");
|
|
5091
5111
|
this.websiteInput = page.getByLabel("Website");
|
|
5092
|
-
|
|
5112
|
+
if (satisfies(instanceMeta.version, "<6.7")) {
|
|
5113
|
+
this.descriptionInput = page.locator(".sw-text-editor__content-editor");
|
|
5114
|
+
} else {
|
|
5115
|
+
this.descriptionInput = page.locator(".mt-text-editor__content-editor");
|
|
5116
|
+
}
|
|
5093
5117
|
}
|
|
5094
5118
|
url() {
|
|
5095
5119
|
return `#/sw/manufacturer/create`;
|
|
@@ -5145,9 +5169,10 @@ var __publicField$4 = (obj, key, value) => {
|
|
|
5145
5169
|
return value;
|
|
5146
5170
|
};
|
|
5147
5171
|
class ManufacturerDetail extends ManufacturerCreate {
|
|
5148
|
-
constructor(page) {
|
|
5149
|
-
super(page);
|
|
5172
|
+
constructor(page, instanceMeta) {
|
|
5173
|
+
super(page, instanceMeta);
|
|
5150
5174
|
this.page = page;
|
|
5175
|
+
this.instanceMeta = instanceMeta;
|
|
5151
5176
|
__publicField$4(this, "customFieldCard");
|
|
5152
5177
|
__publicField$4(this, "customFieldSetTabs");
|
|
5153
5178
|
__publicField$4(this, "customFieldSetTabCustomContent");
|
|
@@ -5468,11 +5493,11 @@ const test$5 = test$e.extend({
|
|
|
5468
5493
|
AdminCustomerGroupListing: async ({ AdminPage }, use) => {
|
|
5469
5494
|
await use(new CustomerGroupListing(AdminPage));
|
|
5470
5495
|
},
|
|
5471
|
-
AdminCustomerGroupCreate: async ({ AdminPage }, use) => {
|
|
5472
|
-
await use(new CustomerGroupCreate(AdminPage));
|
|
5496
|
+
AdminCustomerGroupCreate: async ({ AdminPage, InstanceMeta }, use) => {
|
|
5497
|
+
await use(new CustomerGroupCreate(AdminPage, InstanceMeta));
|
|
5473
5498
|
},
|
|
5474
|
-
AdminCustomerGroupDetail: async ({ AdminPage }, use) => {
|
|
5475
|
-
await use(new CustomerGroupDetail(AdminPage));
|
|
5499
|
+
AdminCustomerGroupDetail: async ({ AdminPage, InstanceMeta }, use) => {
|
|
5500
|
+
await use(new CustomerGroupDetail(AdminPage, InstanceMeta));
|
|
5476
5501
|
},
|
|
5477
5502
|
AdminFirstRunWizard: async ({ AdminPage, InstanceMeta }, use) => {
|
|
5478
5503
|
await use(new FirstRunWizard(AdminPage, InstanceMeta));
|
|
@@ -5525,8 +5550,8 @@ const test$5 = test$e.extend({
|
|
|
5525
5550
|
AdminRuleCreate: async ({ AdminPage }, use) => {
|
|
5526
5551
|
await use(new RuleCreate(AdminPage));
|
|
5527
5552
|
},
|
|
5528
|
-
AdminRuleDetail: async ({ AdminPage }, use) => {
|
|
5529
|
-
await use(new RuleDetail(AdminPage));
|
|
5553
|
+
AdminRuleDetail: async ({ AdminPage, InstanceMeta }, use) => {
|
|
5554
|
+
await use(new RuleDetail(AdminPage, InstanceMeta));
|
|
5530
5555
|
},
|
|
5531
5556
|
AdminRuleListing: async ({ AdminPage }, use) => {
|
|
5532
5557
|
await use(new RuleListing(AdminPage));
|
|
@@ -5534,11 +5559,11 @@ const test$5 = test$e.extend({
|
|
|
5534
5559
|
AdminManufacturerListing: async ({ AdminPage }, use) => {
|
|
5535
5560
|
await use(new ManufacturerListing(AdminPage));
|
|
5536
5561
|
},
|
|
5537
|
-
AdminManufacturerCreate: async ({ AdminPage }, use) => {
|
|
5538
|
-
await use(new ManufacturerCreate(AdminPage));
|
|
5562
|
+
AdminManufacturerCreate: async ({ AdminPage, InstanceMeta }, use) => {
|
|
5563
|
+
await use(new ManufacturerCreate(AdminPage, InstanceMeta));
|
|
5539
5564
|
},
|
|
5540
|
-
AdminManufacturerDetail: async ({ AdminPage }, use) => {
|
|
5541
|
-
await use(new ManufacturerDetail(AdminPage));
|
|
5565
|
+
AdminManufacturerDetail: async ({ AdminPage, InstanceMeta }, use) => {
|
|
5566
|
+
await use(new ManufacturerDetail(AdminPage, InstanceMeta));
|
|
5542
5567
|
},
|
|
5543
5568
|
AdminProductListing: async ({ AdminPage }, use) => {
|
|
5544
5569
|
await use(new ProductListing(AdminPage));
|
|
@@ -6365,9 +6390,9 @@ const AssignEntitiesToRule = test$e.extend({
|
|
|
6365
6390
|
async function entityAssignment(entityName, card) {
|
|
6366
6391
|
const entityCard = await AdminRuleDetail.getEntityCard(card);
|
|
6367
6392
|
await entityCard.addAssignmentButton.click();
|
|
6368
|
-
await AdminRuleDetail.
|
|
6393
|
+
await AdminRuleDetail.assignmentModalSearchField.fill(entityName);
|
|
6369
6394
|
await AdminRuleDetail.page.locator(".sw-data-grid__row").filter({ hasText: entityName }).getByRole("checkbox").click();
|
|
6370
|
-
await AdminRuleDetail.
|
|
6395
|
+
await AdminRuleDetail.assignmentModalAddButton.click();
|
|
6371
6396
|
}
|
|
6372
6397
|
for (const assignableEntity of assignableEntities) {
|
|
6373
6398
|
switch (assignableEntity.ruleType) {
|
|
@@ -6442,10 +6467,12 @@ const Register = test$e.extend({
|
|
|
6442
6467
|
Register: async ({ StorefrontAccountLogin, AdminApiContext: AdminApiContext2, IdProvider }, use) => {
|
|
6443
6468
|
let registeredEmail = "";
|
|
6444
6469
|
const defaultRegistrationData = {
|
|
6470
|
+
isCommercial: false,
|
|
6471
|
+
isGuest: false,
|
|
6445
6472
|
salutation: "Mr.",
|
|
6446
6473
|
firstName: "Jeff",
|
|
6447
6474
|
lastName: "Goldblum",
|
|
6448
|
-
email: IdProvider.getIdPair().uuid
|
|
6475
|
+
email: `${IdProvider.getIdPair().uuid}@test.com`,
|
|
6449
6476
|
password: "shopware",
|
|
6450
6477
|
street: "Ebbinghof 10",
|
|
6451
6478
|
city: "Sch\xF6ppingen",
|
|
@@ -6455,20 +6482,23 @@ const Register = test$e.extend({
|
|
|
6455
6482
|
department: "Operations",
|
|
6456
6483
|
vatRegNo: "DE1234567890"
|
|
6457
6484
|
};
|
|
6458
|
-
const
|
|
6459
|
-
return async function() {
|
|
6485
|
+
const task = (overrides, isCommercial) => {
|
|
6486
|
+
return async function Register2() {
|
|
6460
6487
|
const registrationData = { ...defaultRegistrationData, ...overrides };
|
|
6461
6488
|
registeredEmail = registrationData.email;
|
|
6462
|
-
|
|
6463
|
-
|
|
6464
|
-
await StorefrontAccountLogin.lastNameInput.fill(registrationData.lastName);
|
|
6465
|
-
if (isCommercial) {
|
|
6489
|
+
if (registrationData.isCommercial || isCommercial) {
|
|
6490
|
+
await StorefrontAccountLogin.accountTypeSelect.selectOption("Commercial");
|
|
6466
6491
|
await StorefrontAccountLogin.companyInput.fill(registrationData.company);
|
|
6467
6492
|
await StorefrontAccountLogin.departmentInput.fill(registrationData.department);
|
|
6468
6493
|
await StorefrontAccountLogin.vatRegNoInput.fill(registrationData.vatRegNo);
|
|
6469
6494
|
}
|
|
6495
|
+
await StorefrontAccountLogin.salutationSelect.selectOption(registrationData.salutation);
|
|
6496
|
+
await StorefrontAccountLogin.firstNameInput.fill(registrationData.firstName);
|
|
6497
|
+
await StorefrontAccountLogin.lastNameInput.fill(registrationData.lastName);
|
|
6470
6498
|
await StorefrontAccountLogin.registerEmailInput.fill(registrationData.email);
|
|
6471
|
-
|
|
6499
|
+
if (!registrationData.isGuest) {
|
|
6500
|
+
await StorefrontAccountLogin.registerPasswordInput.fill(registrationData.password);
|
|
6501
|
+
}
|
|
6472
6502
|
await StorefrontAccountLogin.streetAddressInput.fill(registrationData.street);
|
|
6473
6503
|
await StorefrontAccountLogin.postalCodeInput.fill(registrationData.postalCode);
|
|
6474
6504
|
await StorefrontAccountLogin.cityInput.fill(registrationData.city);
|
|
@@ -6476,28 +6506,32 @@ const Register = test$e.extend({
|
|
|
6476
6506
|
await StorefrontAccountLogin.registerButton.click();
|
|
6477
6507
|
};
|
|
6478
6508
|
};
|
|
6479
|
-
await use(
|
|
6509
|
+
await use(task);
|
|
6480
6510
|
await deleteRegisteredUser(AdminApiContext2, registeredEmail);
|
|
6481
6511
|
}
|
|
6482
6512
|
});
|
|
6483
6513
|
async function deleteRegisteredUser(adminApiContext, email) {
|
|
6484
6514
|
if (!email)
|
|
6485
6515
|
return;
|
|
6486
|
-
|
|
6487
|
-
|
|
6488
|
-
|
|
6489
|
-
|
|
6490
|
-
|
|
6491
|
-
|
|
6492
|
-
|
|
6493
|
-
|
|
6494
|
-
|
|
6495
|
-
|
|
6516
|
+
try {
|
|
6517
|
+
const response = await adminApiContext.post("search/customer", {
|
|
6518
|
+
data: {
|
|
6519
|
+
limit: 1,
|
|
6520
|
+
filter: [
|
|
6521
|
+
{
|
|
6522
|
+
type: "equals",
|
|
6523
|
+
field: "email",
|
|
6524
|
+
value: email
|
|
6525
|
+
}
|
|
6526
|
+
]
|
|
6527
|
+
}
|
|
6528
|
+
});
|
|
6529
|
+
const { data: customers } = await response.json();
|
|
6530
|
+
for (const customer of customers) {
|
|
6531
|
+
await adminApiContext.delete(`customer/${customer.id}`);
|
|
6496
6532
|
}
|
|
6497
|
-
})
|
|
6498
|
-
|
|
6499
|
-
for (const customer of customers) {
|
|
6500
|
-
await adminApiContext.delete(`customer/${customer.id}`);
|
|
6533
|
+
} catch (error) {
|
|
6534
|
+
console.error(`Error deleting user with email ${email}:`, error);
|
|
6501
6535
|
}
|
|
6502
6536
|
}
|
|
6503
6537
|
|