@shopware-ag/acceptance-test-suite 11.16.0 → 11.16.2
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 +9 -0
- package/dist/index.d.ts +9 -0
- package/dist/index.mjs +31 -3
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1242,6 +1242,8 @@ declare class Home implements PageObject {
|
|
|
1242
1242
|
readonly closeGuestSessionButton: Locator;
|
|
1243
1243
|
readonly productImages: Locator;
|
|
1244
1244
|
readonly productListItems: Locator;
|
|
1245
|
+
readonly loader: Locator;
|
|
1246
|
+
readonly productVariantCharacteristicsOptions: Locator;
|
|
1245
1247
|
/**
|
|
1246
1248
|
* @deprecated Use 'Header/languagesDropdown' instead
|
|
1247
1249
|
*/
|
|
@@ -1863,6 +1865,11 @@ declare class ProductDetail implements PageObject {
|
|
|
1863
1865
|
*/
|
|
1864
1866
|
readonly variantsTabLink: Locator;
|
|
1865
1867
|
readonly specificationsTabLink: Locator;
|
|
1868
|
+
readonly advancedPricingTabLink: Locator;
|
|
1869
|
+
readonly layoutTabLink: Locator;
|
|
1870
|
+
readonly crossSellingTabLink: Locator;
|
|
1871
|
+
readonly SEOTabLink: Locator;
|
|
1872
|
+
readonly reviewsTabLink: Locator;
|
|
1866
1873
|
/**
|
|
1867
1874
|
* Variants Generation
|
|
1868
1875
|
*/
|
|
@@ -2761,6 +2768,8 @@ declare const test: _playwright_test.TestType<_playwright_test.PlaywrightTestArg
|
|
|
2761
2768
|
AddProductToCartFromWishlist: Task;
|
|
2762
2769
|
} & {
|
|
2763
2770
|
AddProductToWishlist: Task;
|
|
2771
|
+
} & {
|
|
2772
|
+
SelectProductFilterOption: Task;
|
|
2764
2773
|
}, _playwright_test.PlaywrightWorkerArgs & _playwright_test.PlaywrightWorkerOptions & FixtureTypes>;
|
|
2765
2774
|
|
|
2766
2775
|
export { type AccountData, type Address, AdminPageObjects, type CalculatedTaxes, type Category$1 as Category, type CategoryCustomizableLinkData, type CategoryData, type CmsPage, type Country$1 as Country, type CreatedRecord, type Currency$2 as Currency, type CustomField, type CustomFieldData, type CustomFieldSet, type Customer, type CustomerAddress, type CustomerGroup, type DataServiceOptions, type DeliveryTime, type FixtureTypes, type Flow, type FlowTemplate, type Language$2 as Language, type Manufacturer, type Media, type Order, type OrderDelivery, type OrderLineItem, type OrderStatus, type PageObject, type PaymentMethod$1 as PaymentMethod, type Price, type Product, type ProductCrossSelling, type ProductPrice, type ProductReview, type Promotion, type PromotionDiscount, type PropertyGroup, type PropertyGroupOption, type RegistrationData, type Rule, type RuleAssignmentEntity, RuleType, type SalesChannel, type SalesChannelAnalytics, type SalesChannelDomain, type SalesChannelRecord, type Salutation, type ShippingMethod$1 as ShippingMethod, type SimpleLineItem, type StateMachine, type StateMachineState, StorefrontPageObjects, type SyncApiOperation, type SystemConfig, type Tag, type TagData, type Task, type Tax$1 as Tax, type TaxRules, TestDataService, type VariantListingConfig, compareFlowTemplateWithFlow, createRandomImage, extractIdFromUrl, getCountryId, getCurrency, getDefaultShippingMethodId, getFlow, getFlowId, getFlowTemplate, getLanguageData, getMediaId, getOrderTransactionId, getPaymentMethodId, getPromotionWithDiscount, getSalutationId, getShippingMethodId, getSnippetSetId, getStateMachineId, getStateMachineStateId, getTaxId, getThemeId, isSaaSInstance, isThemeCompiled, setOrderStatus, test };
|
package/dist/index.d.ts
CHANGED
|
@@ -1242,6 +1242,8 @@ declare class Home implements PageObject {
|
|
|
1242
1242
|
readonly closeGuestSessionButton: Locator;
|
|
1243
1243
|
readonly productImages: Locator;
|
|
1244
1244
|
readonly productListItems: Locator;
|
|
1245
|
+
readonly loader: Locator;
|
|
1246
|
+
readonly productVariantCharacteristicsOptions: Locator;
|
|
1245
1247
|
/**
|
|
1246
1248
|
* @deprecated Use 'Header/languagesDropdown' instead
|
|
1247
1249
|
*/
|
|
@@ -1863,6 +1865,11 @@ declare class ProductDetail implements PageObject {
|
|
|
1863
1865
|
*/
|
|
1864
1866
|
readonly variantsTabLink: Locator;
|
|
1865
1867
|
readonly specificationsTabLink: Locator;
|
|
1868
|
+
readonly advancedPricingTabLink: Locator;
|
|
1869
|
+
readonly layoutTabLink: Locator;
|
|
1870
|
+
readonly crossSellingTabLink: Locator;
|
|
1871
|
+
readonly SEOTabLink: Locator;
|
|
1872
|
+
readonly reviewsTabLink: Locator;
|
|
1866
1873
|
/**
|
|
1867
1874
|
* Variants Generation
|
|
1868
1875
|
*/
|
|
@@ -2761,6 +2768,8 @@ declare const test: _playwright_test.TestType<_playwright_test.PlaywrightTestArg
|
|
|
2761
2768
|
AddProductToCartFromWishlist: Task;
|
|
2762
2769
|
} & {
|
|
2763
2770
|
AddProductToWishlist: Task;
|
|
2771
|
+
} & {
|
|
2772
|
+
SelectProductFilterOption: Task;
|
|
2764
2773
|
}, _playwright_test.PlaywrightWorkerArgs & _playwright_test.PlaywrightWorkerOptions & FixtureTypes>;
|
|
2765
2774
|
|
|
2766
2775
|
export { type AccountData, type Address, AdminPageObjects, type CalculatedTaxes, type Category$1 as Category, type CategoryCustomizableLinkData, type CategoryData, type CmsPage, type Country$1 as Country, type CreatedRecord, type Currency$2 as Currency, type CustomField, type CustomFieldData, type CustomFieldSet, type Customer, type CustomerAddress, type CustomerGroup, type DataServiceOptions, type DeliveryTime, type FixtureTypes, type Flow, type FlowTemplate, type Language$2 as Language, type Manufacturer, type Media, type Order, type OrderDelivery, type OrderLineItem, type OrderStatus, type PageObject, type PaymentMethod$1 as PaymentMethod, type Price, type Product, type ProductCrossSelling, type ProductPrice, type ProductReview, type Promotion, type PromotionDiscount, type PropertyGroup, type PropertyGroupOption, type RegistrationData, type Rule, type RuleAssignmentEntity, RuleType, type SalesChannel, type SalesChannelAnalytics, type SalesChannelDomain, type SalesChannelRecord, type Salutation, type ShippingMethod$1 as ShippingMethod, type SimpleLineItem, type StateMachine, type StateMachineState, StorefrontPageObjects, type SyncApiOperation, type SystemConfig, type Tag, type TagData, type Task, type Tax$1 as Tax, type TaxRules, TestDataService, type VariantListingConfig, compareFlowTemplateWithFlow, createRandomImage, extractIdFromUrl, getCountryId, getCurrency, getDefaultShippingMethodId, getFlow, getFlowId, getFlowTemplate, getLanguageData, getMediaId, getOrderTransactionId, getPaymentMethodId, getPromotionWithDiscount, getSalutationId, getShippingMethodId, getSnippetSetId, getStateMachineId, getStateMachineStateId, getTaxId, getThemeId, isSaaSInstance, isThemeCompiled, setOrderStatus, test };
|
package/dist/index.mjs
CHANGED
|
@@ -3359,6 +3359,8 @@ class Home {
|
|
|
3359
3359
|
__publicField$U(this, "closeGuestSessionButton");
|
|
3360
3360
|
__publicField$U(this, "productImages");
|
|
3361
3361
|
__publicField$U(this, "productListItems");
|
|
3362
|
+
__publicField$U(this, "loader");
|
|
3363
|
+
__publicField$U(this, "productVariantCharacteristicsOptions");
|
|
3362
3364
|
/**
|
|
3363
3365
|
* @deprecated Use 'Header/languagesDropdown' instead
|
|
3364
3366
|
*/
|
|
@@ -3468,6 +3470,8 @@ class Home {
|
|
|
3468
3470
|
this.productItemNames = this.productList.locator(".product-name");
|
|
3469
3471
|
this.productRatingButton = this.filterMultiSelect.locator('.btn:has-text("Rating min.")');
|
|
3470
3472
|
this.productRatingList = page.locator(".filter-rating-select-list-item");
|
|
3473
|
+
this.loader = page.locator(".has-element-loader");
|
|
3474
|
+
this.productVariantCharacteristicsOptions = page.locator(".product-variant-characteristics-option");
|
|
3471
3475
|
}
|
|
3472
3476
|
async getRatingItemLocatorByRating(rating) {
|
|
3473
3477
|
return this.productRatingList.filter({ hasText: `min. ${rating}/5` });
|
|
@@ -4831,6 +4835,11 @@ class ProductDetail {
|
|
|
4831
4835
|
*/
|
|
4832
4836
|
__publicField$w(this, "variantsTabLink");
|
|
4833
4837
|
__publicField$w(this, "specificationsTabLink");
|
|
4838
|
+
__publicField$w(this, "advancedPricingTabLink");
|
|
4839
|
+
__publicField$w(this, "layoutTabLink");
|
|
4840
|
+
__publicField$w(this, "crossSellingTabLink");
|
|
4841
|
+
__publicField$w(this, "SEOTabLink");
|
|
4842
|
+
__publicField$w(this, "reviewsTabLink");
|
|
4834
4843
|
/**
|
|
4835
4844
|
* Variants Generation
|
|
4836
4845
|
*/
|
|
@@ -4858,6 +4867,13 @@ class ProductDetail {
|
|
|
4858
4867
|
this.savePhysicalProductButton = page.getByRole("button", { name: "Save" });
|
|
4859
4868
|
this.saveButtonCheckMark = page.locator(".icon--regular-checkmark-xs");
|
|
4860
4869
|
this.saveButtonLoadingSpinner = page.locator("sw-loader");
|
|
4870
|
+
this.specificationsTabLink = page.getByRole("tab", { name: "Specifications" });
|
|
4871
|
+
this.advancedPricingTabLink = page.getByRole("tab", { name: "Advanced pricing" });
|
|
4872
|
+
this.variantsTabLink = page.getByRole("tab", { name: "Variants" });
|
|
4873
|
+
this.layoutTabLink = page.getByRole("tab", { name: "Layout" });
|
|
4874
|
+
this.crossSellingTabLink = page.getByRole("tab", { name: "Cross Selling" });
|
|
4875
|
+
this.SEOTabLink = page.getByRole("tab", { name: "SEO" });
|
|
4876
|
+
this.reviewsTabLink = page.getByRole("tab", { name: "Reviews" });
|
|
4861
4877
|
this.manufacturerDropdownText = page.locator(".sw-select-product__select_manufacturer");
|
|
4862
4878
|
this.priceGrossInput = page.locator("#sw-price-field-gross").first();
|
|
4863
4879
|
this.stockInput = page.getByPlaceholder("Enter quantity in stock...");
|
|
@@ -4873,7 +4889,6 @@ class ProductDetail {
|
|
|
4873
4889
|
this.uploadMediaButton = page.getByRole("button", { name: "Upload file" });
|
|
4874
4890
|
this.coverImage = page.locator(".sw-product-media-form__cover-image");
|
|
4875
4891
|
this.productImage = page.locator(".sw-media-preview-v2__item");
|
|
4876
|
-
this.variantsTabLink = page.getByRole("tab", { name: "Variants" });
|
|
4877
4892
|
this.generateVariantsButton = page.getByRole("button", { name: "Generate variants" });
|
|
4878
4893
|
this.variantsModal = page.getByRole("dialog", { name: "Generate variants" });
|
|
4879
4894
|
this.variantsModalHeadline = this.variantsModal.getByRole("heading", { name: "Generate variants" });
|
|
@@ -4888,7 +4903,6 @@ class ProductDetail {
|
|
|
4888
4903
|
this.propertyOptionSizeSmall = this.propertyOptionGrid.getByRole("row", { name: "Small" }).getByRole("checkbox");
|
|
4889
4904
|
this.propertyOptionSizeMedium = this.propertyOptionGrid.getByRole("row", { name: "Medium" }).getByRole("checkbox");
|
|
4890
4905
|
this.propertyOptionSizeLarge = this.propertyOptionGrid.getByRole("row", { name: "Large" }).getByRole("checkbox");
|
|
4891
|
-
this.specificationsTabLink = page.getByRole("tab", { name: "Specifications" });
|
|
4892
4906
|
if (satisfies(instanceMeta.version, "<6.7")) {
|
|
4893
4907
|
this.customFieldCard = page.locator(".sw-card").getByText("Custom fields");
|
|
4894
4908
|
} else {
|
|
@@ -7950,6 +7964,19 @@ const AddProductToWishlist = test$f.extend({
|
|
|
7950
7964
|
}
|
|
7951
7965
|
});
|
|
7952
7966
|
|
|
7967
|
+
const SelectProductFilterOption = test$f.extend({
|
|
7968
|
+
SelectProductFilterOption: async ({ StorefrontHome }, use) => {
|
|
7969
|
+
const task = (filterButton, optionName) => {
|
|
7970
|
+
return async function SelectProductFilterOption2() {
|
|
7971
|
+
await filterButton.click();
|
|
7972
|
+
const optionLocator = await StorefrontHome.getFilterItemByFilterName(optionName);
|
|
7973
|
+
await optionLocator.click();
|
|
7974
|
+
};
|
|
7975
|
+
};
|
|
7976
|
+
await use(task);
|
|
7977
|
+
}
|
|
7978
|
+
});
|
|
7979
|
+
|
|
7953
7980
|
const test$3 = mergeTests(
|
|
7954
7981
|
Login,
|
|
7955
7982
|
Logout,
|
|
@@ -7974,7 +8001,8 @@ const test$3 = mergeTests(
|
|
|
7974
8001
|
ValidateAccessibility,
|
|
7975
8002
|
RemoveProductFromWishlist,
|
|
7976
8003
|
AddProductToCartFromWishlist,
|
|
7977
|
-
AddProductToWishlist
|
|
8004
|
+
AddProductToWishlist,
|
|
8005
|
+
SelectProductFilterOption
|
|
7978
8006
|
);
|
|
7979
8007
|
|
|
7980
8008
|
var __defProp = Object.defineProperty;
|