@shopware-ag/acceptance-test-suite 11.16.1 → 11.16.3
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 +10 -0
- package/dist/index.d.ts +10 -0
- package/dist/index.mjs +28 -1
- 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
|
*/
|
|
@@ -1910,6 +1912,12 @@ declare class OrderDetail implements PageObject {
|
|
|
1910
1912
|
readonly dataGridContextButton: Locator;
|
|
1911
1913
|
readonly orderTag: Locator;
|
|
1912
1914
|
readonly itemsCardHeader: Locator;
|
|
1915
|
+
/**
|
|
1916
|
+
* Tabs
|
|
1917
|
+
*/
|
|
1918
|
+
readonly generalTabLink: Locator;
|
|
1919
|
+
readonly detailsTabLink: Locator;
|
|
1920
|
+
readonly documentsTabLink: Locator;
|
|
1913
1921
|
constructor(page: Page, instanceMeta: HelperFixtureTypes['InstanceMeta']);
|
|
1914
1922
|
url(orderId: string, tabName?: string): string;
|
|
1915
1923
|
getCustomFieldCardLocators(customFieldSetName: string, customFieldTextName: string): Promise<{
|
|
@@ -2766,6 +2774,8 @@ declare const test: _playwright_test.TestType<_playwright_test.PlaywrightTestArg
|
|
|
2766
2774
|
AddProductToCartFromWishlist: Task;
|
|
2767
2775
|
} & {
|
|
2768
2776
|
AddProductToWishlist: Task;
|
|
2777
|
+
} & {
|
|
2778
|
+
SelectProductFilterOption: Task;
|
|
2769
2779
|
}, _playwright_test.PlaywrightWorkerArgs & _playwright_test.PlaywrightWorkerOptions & FixtureTypes>;
|
|
2770
2780
|
|
|
2771
2781
|
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
|
*/
|
|
@@ -1910,6 +1912,12 @@ declare class OrderDetail implements PageObject {
|
|
|
1910
1912
|
readonly dataGridContextButton: Locator;
|
|
1911
1913
|
readonly orderTag: Locator;
|
|
1912
1914
|
readonly itemsCardHeader: Locator;
|
|
1915
|
+
/**
|
|
1916
|
+
* Tabs
|
|
1917
|
+
*/
|
|
1918
|
+
readonly generalTabLink: Locator;
|
|
1919
|
+
readonly detailsTabLink: Locator;
|
|
1920
|
+
readonly documentsTabLink: Locator;
|
|
1913
1921
|
constructor(page: Page, instanceMeta: HelperFixtureTypes['InstanceMeta']);
|
|
1914
1922
|
url(orderId: string, tabName?: string): string;
|
|
1915
1923
|
getCustomFieldCardLocators(customFieldSetName: string, customFieldTextName: string): Promise<{
|
|
@@ -2766,6 +2774,8 @@ declare const test: _playwright_test.TestType<_playwright_test.PlaywrightTestArg
|
|
|
2766
2774
|
AddProductToCartFromWishlist: Task;
|
|
2767
2775
|
} & {
|
|
2768
2776
|
AddProductToWishlist: Task;
|
|
2777
|
+
} & {
|
|
2778
|
+
SelectProductFilterOption: Task;
|
|
2769
2779
|
}, _playwright_test.PlaywrightWorkerArgs & _playwright_test.PlaywrightWorkerOptions & FixtureTypes>;
|
|
2770
2780
|
|
|
2771
2781
|
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` });
|
|
@@ -4941,6 +4945,12 @@ class OrderDetail {
|
|
|
4941
4945
|
__publicField$v(this, "dataGridContextButton");
|
|
4942
4946
|
__publicField$v(this, "orderTag");
|
|
4943
4947
|
__publicField$v(this, "itemsCardHeader");
|
|
4948
|
+
/**
|
|
4949
|
+
* Tabs
|
|
4950
|
+
*/
|
|
4951
|
+
__publicField$v(this, "generalTabLink");
|
|
4952
|
+
__publicField$v(this, "detailsTabLink");
|
|
4953
|
+
__publicField$v(this, "documentsTabLink");
|
|
4944
4954
|
this.saveButton = page.locator(".sw-order-detail__smart-bar-save-button");
|
|
4945
4955
|
this.dataGridContextButton = page.locator(".sw-data-grid__actions-menu").and(page.getByRole("button"));
|
|
4946
4956
|
this.orderTag = page.locator(".sw-select-selection-list__item");
|
|
@@ -4949,6 +4959,9 @@ class OrderDetail {
|
|
|
4949
4959
|
} else {
|
|
4950
4960
|
this.itemsCardHeader = page.locator(".mt-card__header").getByText("Items");
|
|
4951
4961
|
}
|
|
4962
|
+
this.generalTabLink = page.getByRole("tab", { name: "General" });
|
|
4963
|
+
this.detailsTabLink = page.getByRole("tab", { name: "Details" });
|
|
4964
|
+
this.documentsTabLink = page.getByRole("tab", { name: "Documents" });
|
|
4952
4965
|
}
|
|
4953
4966
|
url(orderId, tabName = "general") {
|
|
4954
4967
|
return `#/sw/order/detail/${orderId}/${tabName}`;
|
|
@@ -7960,6 +7973,19 @@ const AddProductToWishlist = test$f.extend({
|
|
|
7960
7973
|
}
|
|
7961
7974
|
});
|
|
7962
7975
|
|
|
7976
|
+
const SelectProductFilterOption = test$f.extend({
|
|
7977
|
+
SelectProductFilterOption: async ({ StorefrontHome }, use) => {
|
|
7978
|
+
const task = (filterButton, optionName) => {
|
|
7979
|
+
return async function SelectProductFilterOption2() {
|
|
7980
|
+
await filterButton.click();
|
|
7981
|
+
const optionLocator = await StorefrontHome.getFilterItemByFilterName(optionName);
|
|
7982
|
+
await optionLocator.click();
|
|
7983
|
+
};
|
|
7984
|
+
};
|
|
7985
|
+
await use(task);
|
|
7986
|
+
}
|
|
7987
|
+
});
|
|
7988
|
+
|
|
7963
7989
|
const test$3 = mergeTests(
|
|
7964
7990
|
Login,
|
|
7965
7991
|
Logout,
|
|
@@ -7984,7 +8010,8 @@ const test$3 = mergeTests(
|
|
|
7984
8010
|
ValidateAccessibility,
|
|
7985
8011
|
RemoveProductFromWishlist,
|
|
7986
8012
|
AddProductToCartFromWishlist,
|
|
7987
|
-
AddProductToWishlist
|
|
8013
|
+
AddProductToWishlist,
|
|
8014
|
+
SelectProductFilterOption
|
|
7988
8015
|
);
|
|
7989
8016
|
|
|
7990
8017
|
var __defProp = Object.defineProperty;
|