@shopware-ag/acceptance-test-suite 11.1.2 → 11.1.4
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 +13 -1
- package/dist/index.d.ts +13 -1
- package/dist/index.mjs +34 -6
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1092,6 +1092,7 @@ interface PageObject {
|
|
|
1092
1092
|
|
|
1093
1093
|
declare class Home implements PageObject {
|
|
1094
1094
|
readonly page: Page;
|
|
1095
|
+
readonly instanceMeta: HelperFixtureTypes['InstanceMeta'];
|
|
1095
1096
|
readonly productImages: Locator;
|
|
1096
1097
|
readonly productListItems: Locator;
|
|
1097
1098
|
readonly languagesDropdown: Locator;
|
|
@@ -1111,7 +1112,7 @@ declare class Home implements PageObject {
|
|
|
1111
1112
|
readonly consentDialogSaveButton: Locator;
|
|
1112
1113
|
readonly consentCookieBannerContainer: Locator;
|
|
1113
1114
|
readonly offcanvasBackdrop: Locator;
|
|
1114
|
-
constructor(page: Page);
|
|
1115
|
+
constructor(page: Page, instanceMeta: HelperFixtureTypes['InstanceMeta']);
|
|
1115
1116
|
getListingItemByProductId(productId: string): Promise<Record<string, Locator>>;
|
|
1116
1117
|
url(): string;
|
|
1117
1118
|
}
|
|
@@ -1619,8 +1620,19 @@ declare class FirstRunWizard implements PageObject {
|
|
|
1619
1620
|
readonly salesChannelSelectionList: Locator;
|
|
1620
1621
|
readonly salesChannelSelectionMultiSelect: Locator;
|
|
1621
1622
|
readonly smtpServerTitle: Locator;
|
|
1623
|
+
/**
|
|
1624
|
+
* @deprecated - Use `smtpServerFieldInputs` instead.
|
|
1625
|
+
*/
|
|
1622
1626
|
readonly smtpServerFields: Locator;
|
|
1623
1627
|
readonly smtpServerFieldInputs: Locator;
|
|
1628
|
+
readonly smtpServerHostInput: Locator;
|
|
1629
|
+
readonly smtpServerPortInput: Locator;
|
|
1630
|
+
readonly smtpServerUsernameInput: Locator;
|
|
1631
|
+
readonly smtpServerPasswordInput: Locator;
|
|
1632
|
+
readonly smtpServerEncryptionInput: Locator;
|
|
1633
|
+
readonly smtpServerSenderAddressInput: Locator;
|
|
1634
|
+
readonly smtpServerDeliveryAddressInput: Locator;
|
|
1635
|
+
readonly smtpServerDisableEmailDeliveryCheckbox: Locator;
|
|
1624
1636
|
readonly payPalPaymethods: Locator;
|
|
1625
1637
|
readonly payPalInfoCard: Locator;
|
|
1626
1638
|
readonly emailAddressInputField: Locator;
|
package/dist/index.d.ts
CHANGED
|
@@ -1092,6 +1092,7 @@ interface PageObject {
|
|
|
1092
1092
|
|
|
1093
1093
|
declare class Home implements PageObject {
|
|
1094
1094
|
readonly page: Page;
|
|
1095
|
+
readonly instanceMeta: HelperFixtureTypes['InstanceMeta'];
|
|
1095
1096
|
readonly productImages: Locator;
|
|
1096
1097
|
readonly productListItems: Locator;
|
|
1097
1098
|
readonly languagesDropdown: Locator;
|
|
@@ -1111,7 +1112,7 @@ declare class Home implements PageObject {
|
|
|
1111
1112
|
readonly consentDialogSaveButton: Locator;
|
|
1112
1113
|
readonly consentCookieBannerContainer: Locator;
|
|
1113
1114
|
readonly offcanvasBackdrop: Locator;
|
|
1114
|
-
constructor(page: Page);
|
|
1115
|
+
constructor(page: Page, instanceMeta: HelperFixtureTypes['InstanceMeta']);
|
|
1115
1116
|
getListingItemByProductId(productId: string): Promise<Record<string, Locator>>;
|
|
1116
1117
|
url(): string;
|
|
1117
1118
|
}
|
|
@@ -1619,8 +1620,19 @@ declare class FirstRunWizard implements PageObject {
|
|
|
1619
1620
|
readonly salesChannelSelectionList: Locator;
|
|
1620
1621
|
readonly salesChannelSelectionMultiSelect: Locator;
|
|
1621
1622
|
readonly smtpServerTitle: Locator;
|
|
1623
|
+
/**
|
|
1624
|
+
* @deprecated - Use `smtpServerFieldInputs` instead.
|
|
1625
|
+
*/
|
|
1622
1626
|
readonly smtpServerFields: Locator;
|
|
1623
1627
|
readonly smtpServerFieldInputs: Locator;
|
|
1628
|
+
readonly smtpServerHostInput: Locator;
|
|
1629
|
+
readonly smtpServerPortInput: Locator;
|
|
1630
|
+
readonly smtpServerUsernameInput: Locator;
|
|
1631
|
+
readonly smtpServerPasswordInput: Locator;
|
|
1632
|
+
readonly smtpServerEncryptionInput: Locator;
|
|
1633
|
+
readonly smtpServerSenderAddressInput: Locator;
|
|
1634
|
+
readonly smtpServerDeliveryAddressInput: Locator;
|
|
1635
|
+
readonly smtpServerDisableEmailDeliveryCheckbox: Locator;
|
|
1624
1636
|
readonly payPalPaymethods: Locator;
|
|
1625
1637
|
readonly payPalInfoCard: Locator;
|
|
1626
1638
|
readonly emailAddressInputField: Locator;
|
package/dist/index.mjs
CHANGED
|
@@ -3024,8 +3024,9 @@ var __publicField$O = (obj, key, value) => {
|
|
|
3024
3024
|
return value;
|
|
3025
3025
|
};
|
|
3026
3026
|
class Home {
|
|
3027
|
-
constructor(page) {
|
|
3027
|
+
constructor(page, instanceMeta) {
|
|
3028
3028
|
this.page = page;
|
|
3029
|
+
this.instanceMeta = instanceMeta;
|
|
3029
3030
|
__publicField$O(this, "productImages");
|
|
3030
3031
|
__publicField$O(this, "productListItems");
|
|
3031
3032
|
__publicField$O(this, "languagesDropdown");
|
|
@@ -3045,7 +3046,11 @@ class Home {
|
|
|
3045
3046
|
__publicField$O(this, "consentDialogSaveButton");
|
|
3046
3047
|
__publicField$O(this, "consentCookieBannerContainer");
|
|
3047
3048
|
__publicField$O(this, "offcanvasBackdrop");
|
|
3048
|
-
|
|
3049
|
+
if (satisfies(instanceMeta.version, "<6.7")) {
|
|
3050
|
+
this.productImages = page.locator(".product-image-link");
|
|
3051
|
+
} else {
|
|
3052
|
+
this.productImages = page.locator(".product-image");
|
|
3053
|
+
}
|
|
3049
3054
|
this.productListItems = page.getByRole("listitem");
|
|
3050
3055
|
this.languagesDropdown = page.locator(".top-bar-language").filter({ has: page.getByRole("button") });
|
|
3051
3056
|
this.languagesMenuOptions = page.locator(".top-bar-language").filter({ has: page.getByRole("list") });
|
|
@@ -3798,8 +3803,8 @@ const StorefrontPageObjects = {
|
|
|
3798
3803
|
CheckoutOrderEdit
|
|
3799
3804
|
};
|
|
3800
3805
|
const test$6 = test$e.extend({
|
|
3801
|
-
StorefrontHome: async ({ StorefrontPage }, use) => {
|
|
3802
|
-
await use(new Home(StorefrontPage));
|
|
3806
|
+
StorefrontHome: async ({ StorefrontPage, InstanceMeta }, use) => {
|
|
3807
|
+
await use(new Home(StorefrontPage, InstanceMeta));
|
|
3803
3808
|
},
|
|
3804
3809
|
StorefrontProductDetail: async ({ StorefrontPage }, use) => {
|
|
3805
3810
|
await use(new ProductDetail$1(StorefrontPage));
|
|
@@ -4280,8 +4285,19 @@ class FirstRunWizard {
|
|
|
4280
4285
|
__publicField$p(this, "salesChannelSelectionList");
|
|
4281
4286
|
__publicField$p(this, "salesChannelSelectionMultiSelect");
|
|
4282
4287
|
__publicField$p(this, "smtpServerTitle");
|
|
4288
|
+
/**
|
|
4289
|
+
* @deprecated - Use `smtpServerFieldInputs` instead.
|
|
4290
|
+
*/
|
|
4283
4291
|
__publicField$p(this, "smtpServerFields");
|
|
4284
4292
|
__publicField$p(this, "smtpServerFieldInputs");
|
|
4293
|
+
__publicField$p(this, "smtpServerHostInput");
|
|
4294
|
+
__publicField$p(this, "smtpServerPortInput");
|
|
4295
|
+
__publicField$p(this, "smtpServerUsernameInput");
|
|
4296
|
+
__publicField$p(this, "smtpServerPasswordInput");
|
|
4297
|
+
__publicField$p(this, "smtpServerEncryptionInput");
|
|
4298
|
+
__publicField$p(this, "smtpServerSenderAddressInput");
|
|
4299
|
+
__publicField$p(this, "smtpServerDeliveryAddressInput");
|
|
4300
|
+
__publicField$p(this, "smtpServerDisableEmailDeliveryCheckbox");
|
|
4285
4301
|
__publicField$p(this, "payPalPaymethods");
|
|
4286
4302
|
__publicField$p(this, "payPalInfoCard");
|
|
4287
4303
|
__publicField$p(this, "emailAddressInputField");
|
|
@@ -4318,7 +4334,19 @@ class FirstRunWizard {
|
|
|
4318
4334
|
this.smtpServerButton = page.getByText("Configure own SMTP server", { exact: true });
|
|
4319
4335
|
this.smtpServerTitle = page.getByText("SMTP server", { exact: true });
|
|
4320
4336
|
this.smtpServerFields = page.locator(".sw-field");
|
|
4321
|
-
this.
|
|
4337
|
+
this.smtpServerHostInput = page.getByLabel("Host");
|
|
4338
|
+
this.smtpServerPortInput = page.getByLabel("Port");
|
|
4339
|
+
this.smtpServerUsernameInput = page.getByLabel("Username");
|
|
4340
|
+
this.smtpServerPasswordInput = page.getByLabel("Password");
|
|
4341
|
+
this.smtpServerEncryptionInput = page.locator(".sw-single-select__selection-input");
|
|
4342
|
+
this.smtpServerSenderAddressInput = page.getByLabel("Sender address");
|
|
4343
|
+
this.smtpServerDeliveryAddressInput = page.getByLabel("Delivery address");
|
|
4344
|
+
this.smtpServerDisableEmailDeliveryCheckbox = page.getByLabel("Disable email delivery");
|
|
4345
|
+
if (satisfies(instanceMeta.version, "<6.7")) {
|
|
4346
|
+
this.smtpServerFieldInputs = page.locator(".sw-field");
|
|
4347
|
+
} else {
|
|
4348
|
+
this.smtpServerFieldInputs = page.locator(".mt-field");
|
|
4349
|
+
}
|
|
4322
4350
|
this.payPalSetupHeader = page.locator(".sw-modal__title", { hasText: "Setup PayPal" });
|
|
4323
4351
|
this.payPalPaymethods = page.locator(".paymethod");
|
|
4324
4352
|
this.payPalInfoCard = page.locator(".sw-first-run-wizard-paypal-info");
|
|
@@ -4554,7 +4582,7 @@ class ShippingDetail {
|
|
|
4554
4582
|
return `#/sw/settings/shipping/detail/${shippingId}`;
|
|
4555
4583
|
}
|
|
4556
4584
|
getRuleSelectionCheckmark(ruleName) {
|
|
4557
|
-
return this.availabilityRuleListItem.filter({ hasText: ruleName }).
|
|
4585
|
+
return this.availabilityRuleListItem.filter({ hasText: ruleName }).locator(".sw-select-result__result-item-checkmark");
|
|
4558
4586
|
}
|
|
4559
4587
|
}
|
|
4560
4588
|
|