@shopware-ag/acceptance-test-suite 11.6.1 → 11.7.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 +33 -2
- package/dist/index.d.ts +33 -2
- package/dist/index.mjs +504 -388
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -983,11 +983,18 @@ declare class TestDataService {
|
|
|
983
983
|
*/
|
|
984
984
|
combineAll: (array: Record<string, string>[][]) => Record<string, string>[][];
|
|
985
985
|
/**
|
|
986
|
+
* @deprecated Use `getCountry` instead.
|
|
986
987
|
* Retrieves a country Id based on its iso2 code.
|
|
987
988
|
*
|
|
988
989
|
* @param iso2 - The iso2 code of the country, for example "DE".
|
|
989
990
|
*/
|
|
990
991
|
getCountryId(iso2: string): Promise<Country>;
|
|
992
|
+
/**
|
|
993
|
+
* Retrieves a country based on its iso2 code.
|
|
994
|
+
*
|
|
995
|
+
* @param iso2 - The iso2 code of the country, for example "DE".
|
|
996
|
+
*/
|
|
997
|
+
getCountry(iso2: string): Promise<Country>;
|
|
991
998
|
getCountryStruct(overrides?: Partial<Country>): Partial<Country>;
|
|
992
999
|
getCurrencyStruct(overrides: Partial<Currency$1> | undefined, roundingDecimals: number): Partial<Currency$1>;
|
|
993
1000
|
getBasicProductStruct(taxId?: string, currencyId?: string, overrides?: Partial<Product>): Partial<Product>;
|
|
@@ -1181,6 +1188,8 @@ declare class Home implements PageObject {
|
|
|
1181
1188
|
readonly offcanvasBackdrop: Locator;
|
|
1182
1189
|
readonly mainNavigationLink: Locator;
|
|
1183
1190
|
readonly contactFormLink: Locator;
|
|
1191
|
+
readonly wishlistIcon: Locator;
|
|
1192
|
+
readonly wishlistBasket: Locator;
|
|
1184
1193
|
constructor(page: Page);
|
|
1185
1194
|
getMenuItemByCategoryName(categoryName: string): Promise<Record<string, Locator>>;
|
|
1186
1195
|
/**
|
|
@@ -1207,6 +1216,8 @@ declare class ProductDetail$1 implements PageObject {
|
|
|
1207
1216
|
readonly offCanvasLineItemImages: Locator;
|
|
1208
1217
|
readonly offCanvasSummaryTotalPrice: Locator;
|
|
1209
1218
|
readonly offCanvas: Locator;
|
|
1219
|
+
readonly wishlistAddedButton: Locator;
|
|
1220
|
+
readonly wishlistNotAddedButton: Locator;
|
|
1210
1221
|
constructor(page: Page);
|
|
1211
1222
|
url(productData: Product): string;
|
|
1212
1223
|
}
|
|
@@ -1573,6 +1584,16 @@ declare class ContactForm extends Home implements PageObject {
|
|
|
1573
1584
|
url(): string;
|
|
1574
1585
|
}
|
|
1575
1586
|
|
|
1587
|
+
declare class Wishlist extends Home implements PageObject {
|
|
1588
|
+
readonly page: Page;
|
|
1589
|
+
readonly wishListHeader: Locator;
|
|
1590
|
+
readonly removeAlert: Locator;
|
|
1591
|
+
readonly emptyListing: Locator;
|
|
1592
|
+
constructor(page: Page);
|
|
1593
|
+
getListingItemByProductName(productListingName: string): Promise<Record<string, Locator>>;
|
|
1594
|
+
url(): string;
|
|
1595
|
+
}
|
|
1596
|
+
|
|
1576
1597
|
interface StorefrontPageTypes {
|
|
1577
1598
|
StorefrontHome: Home;
|
|
1578
1599
|
StorefrontProductDetail: ProductDetail$1;
|
|
@@ -1596,6 +1617,7 @@ interface StorefrontPageTypes {
|
|
|
1596
1617
|
StorefrontCheckoutOrderEdit: CheckoutOrderEdit;
|
|
1597
1618
|
StorefrontPageNotFound: PageNotFound;
|
|
1598
1619
|
StorefrontContactForm: ContactForm;
|
|
1620
|
+
StorefrontWishlist: Wishlist;
|
|
1599
1621
|
}
|
|
1600
1622
|
declare const StorefrontPageObjects: {
|
|
1601
1623
|
Home: typeof Home;
|
|
@@ -1620,6 +1642,7 @@ declare const StorefrontPageObjects: {
|
|
|
1620
1642
|
CheckoutOrderEdit: typeof CheckoutOrderEdit;
|
|
1621
1643
|
PageNotFound: typeof PageNotFound;
|
|
1622
1644
|
ContactForm: typeof ContactForm;
|
|
1645
|
+
Wishlist: typeof Wishlist;
|
|
1623
1646
|
};
|
|
1624
1647
|
|
|
1625
1648
|
declare class ProductDetail implements PageObject {
|
|
@@ -1753,6 +1776,7 @@ declare class CustomerGroupListing implements PageObject {
|
|
|
1753
1776
|
|
|
1754
1777
|
declare class CustomerGroupCreate implements PageObject {
|
|
1755
1778
|
readonly page: Page;
|
|
1779
|
+
readonly instanceMeta: HelperFixtureTypes$1['InstanceMeta'];
|
|
1756
1780
|
readonly headline: Locator;
|
|
1757
1781
|
readonly saveButton: Locator;
|
|
1758
1782
|
readonly cancelButton: Locator;
|
|
@@ -1767,17 +1791,18 @@ declare class CustomerGroupCreate implements PageObject {
|
|
|
1767
1791
|
readonly signupFormCompanySignupToggle: Locator;
|
|
1768
1792
|
readonly customerGroupSaleschannelSelection: Locator;
|
|
1769
1793
|
readonly customerGroupSaleschannelResultList: Locator;
|
|
1770
|
-
constructor(page: Page);
|
|
1794
|
+
constructor(page: Page, instanceMeta: HelperFixtureTypes$1['InstanceMeta']);
|
|
1771
1795
|
url(): string;
|
|
1772
1796
|
}
|
|
1773
1797
|
|
|
1774
1798
|
declare class CustomerGroupDetail extends CustomerGroupCreate implements PageObject {
|
|
1775
1799
|
readonly page: Page;
|
|
1800
|
+
readonly instanceMeta: HelperFixtureTypes$1['InstanceMeta'];
|
|
1776
1801
|
readonly headline: Locator;
|
|
1777
1802
|
readonly selectedSalesChannel: Locator;
|
|
1778
1803
|
readonly technicalUrl: Locator;
|
|
1779
1804
|
readonly saleschannelUrl: Locator;
|
|
1780
|
-
constructor(page: Page);
|
|
1805
|
+
constructor(page: Page, instanceMeta: HelperFixtureTypes$1['InstanceMeta']);
|
|
1781
1806
|
url(customerGroupId?: string): string;
|
|
1782
1807
|
}
|
|
1783
1808
|
|
|
@@ -2490,6 +2515,12 @@ declare const test: _playwright_test.TestType<_playwright_test.PlaywrightTestArg
|
|
|
2490
2515
|
SearchForTerm: Task;
|
|
2491
2516
|
} & {
|
|
2492
2517
|
ValidateAccessibility: (pageName: string, assertViolations?: number | boolean | undefined, createReport?: boolean | undefined, ruleTags?: string[] | undefined, outputDir?: string | undefined) => () => Promise<axe_core.Result[]>;
|
|
2518
|
+
} & {
|
|
2519
|
+
RemoveProductFromWishlist: Task;
|
|
2520
|
+
} & {
|
|
2521
|
+
AddProductToCartFromWishlist: Task;
|
|
2522
|
+
} & {
|
|
2523
|
+
AddProductToWishlist: Task;
|
|
2493
2524
|
}, _playwright_test.PlaywrightWorkerArgs & _playwright_test.PlaywrightWorkerOptions & FixtureTypes>;
|
|
2494
2525
|
|
|
2495
2526
|
export { type AccountData, type Address, AdminPageObjects, type CalculatedTaxes, type Category$1 as Category, type CategoryCustomizableLinkData, type CategoryData, type CmsPage, type Country, type CreatedRecord, type Currency$1 as Currency, type CustomField, type CustomFieldData, type CustomFieldSet, type Customer, type CustomerAddress, type CustomerGroup, type DataServiceOptions, type DeliveryTime, type FixtureTypes, type Language$1 as Language, type Manufacturer, type Media, type Order, type OrderDelivery, type OrderLineItem, type OrderStatus, type PageObject, type PaymentMethod, type Price, type Product, type ProductCrossSelling, type ProductPrice, 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, type SimpleLineItem, type StateMachine, type StateMachineState, StorefrontPageObjects, type SyncApiOperation, type SystemConfig, type Tag, type TagData, type Task, type Tax, type TaxRules, TestDataService, type VariantListingConfig, createRandomImage, extractIdFromUrl, getCountryId, getCurrency, getDefaultShippingMethodId, getFlowId, getLanguageData, getMediaId, getOrderTransactionId, getPaymentMethodId, getPromotionWithDiscount, getSalutationId, getSnippetSetId, getStateMachineId, getStateMachineStateId, getTaxId, getThemeId, isSaaSInstance, isThemeCompiled, setOrderStatus, test };
|
package/dist/index.d.ts
CHANGED
|
@@ -983,11 +983,18 @@ declare class TestDataService {
|
|
|
983
983
|
*/
|
|
984
984
|
combineAll: (array: Record<string, string>[][]) => Record<string, string>[][];
|
|
985
985
|
/**
|
|
986
|
+
* @deprecated Use `getCountry` instead.
|
|
986
987
|
* Retrieves a country Id based on its iso2 code.
|
|
987
988
|
*
|
|
988
989
|
* @param iso2 - The iso2 code of the country, for example "DE".
|
|
989
990
|
*/
|
|
990
991
|
getCountryId(iso2: string): Promise<Country>;
|
|
992
|
+
/**
|
|
993
|
+
* Retrieves a country based on its iso2 code.
|
|
994
|
+
*
|
|
995
|
+
* @param iso2 - The iso2 code of the country, for example "DE".
|
|
996
|
+
*/
|
|
997
|
+
getCountry(iso2: string): Promise<Country>;
|
|
991
998
|
getCountryStruct(overrides?: Partial<Country>): Partial<Country>;
|
|
992
999
|
getCurrencyStruct(overrides: Partial<Currency$1> | undefined, roundingDecimals: number): Partial<Currency$1>;
|
|
993
1000
|
getBasicProductStruct(taxId?: string, currencyId?: string, overrides?: Partial<Product>): Partial<Product>;
|
|
@@ -1181,6 +1188,8 @@ declare class Home implements PageObject {
|
|
|
1181
1188
|
readonly offcanvasBackdrop: Locator;
|
|
1182
1189
|
readonly mainNavigationLink: Locator;
|
|
1183
1190
|
readonly contactFormLink: Locator;
|
|
1191
|
+
readonly wishlistIcon: Locator;
|
|
1192
|
+
readonly wishlistBasket: Locator;
|
|
1184
1193
|
constructor(page: Page);
|
|
1185
1194
|
getMenuItemByCategoryName(categoryName: string): Promise<Record<string, Locator>>;
|
|
1186
1195
|
/**
|
|
@@ -1207,6 +1216,8 @@ declare class ProductDetail$1 implements PageObject {
|
|
|
1207
1216
|
readonly offCanvasLineItemImages: Locator;
|
|
1208
1217
|
readonly offCanvasSummaryTotalPrice: Locator;
|
|
1209
1218
|
readonly offCanvas: Locator;
|
|
1219
|
+
readonly wishlistAddedButton: Locator;
|
|
1220
|
+
readonly wishlistNotAddedButton: Locator;
|
|
1210
1221
|
constructor(page: Page);
|
|
1211
1222
|
url(productData: Product): string;
|
|
1212
1223
|
}
|
|
@@ -1573,6 +1584,16 @@ declare class ContactForm extends Home implements PageObject {
|
|
|
1573
1584
|
url(): string;
|
|
1574
1585
|
}
|
|
1575
1586
|
|
|
1587
|
+
declare class Wishlist extends Home implements PageObject {
|
|
1588
|
+
readonly page: Page;
|
|
1589
|
+
readonly wishListHeader: Locator;
|
|
1590
|
+
readonly removeAlert: Locator;
|
|
1591
|
+
readonly emptyListing: Locator;
|
|
1592
|
+
constructor(page: Page);
|
|
1593
|
+
getListingItemByProductName(productListingName: string): Promise<Record<string, Locator>>;
|
|
1594
|
+
url(): string;
|
|
1595
|
+
}
|
|
1596
|
+
|
|
1576
1597
|
interface StorefrontPageTypes {
|
|
1577
1598
|
StorefrontHome: Home;
|
|
1578
1599
|
StorefrontProductDetail: ProductDetail$1;
|
|
@@ -1596,6 +1617,7 @@ interface StorefrontPageTypes {
|
|
|
1596
1617
|
StorefrontCheckoutOrderEdit: CheckoutOrderEdit;
|
|
1597
1618
|
StorefrontPageNotFound: PageNotFound;
|
|
1598
1619
|
StorefrontContactForm: ContactForm;
|
|
1620
|
+
StorefrontWishlist: Wishlist;
|
|
1599
1621
|
}
|
|
1600
1622
|
declare const StorefrontPageObjects: {
|
|
1601
1623
|
Home: typeof Home;
|
|
@@ -1620,6 +1642,7 @@ declare const StorefrontPageObjects: {
|
|
|
1620
1642
|
CheckoutOrderEdit: typeof CheckoutOrderEdit;
|
|
1621
1643
|
PageNotFound: typeof PageNotFound;
|
|
1622
1644
|
ContactForm: typeof ContactForm;
|
|
1645
|
+
Wishlist: typeof Wishlist;
|
|
1623
1646
|
};
|
|
1624
1647
|
|
|
1625
1648
|
declare class ProductDetail implements PageObject {
|
|
@@ -1753,6 +1776,7 @@ declare class CustomerGroupListing implements PageObject {
|
|
|
1753
1776
|
|
|
1754
1777
|
declare class CustomerGroupCreate implements PageObject {
|
|
1755
1778
|
readonly page: Page;
|
|
1779
|
+
readonly instanceMeta: HelperFixtureTypes$1['InstanceMeta'];
|
|
1756
1780
|
readonly headline: Locator;
|
|
1757
1781
|
readonly saveButton: Locator;
|
|
1758
1782
|
readonly cancelButton: Locator;
|
|
@@ -1767,17 +1791,18 @@ declare class CustomerGroupCreate implements PageObject {
|
|
|
1767
1791
|
readonly signupFormCompanySignupToggle: Locator;
|
|
1768
1792
|
readonly customerGroupSaleschannelSelection: Locator;
|
|
1769
1793
|
readonly customerGroupSaleschannelResultList: Locator;
|
|
1770
|
-
constructor(page: Page);
|
|
1794
|
+
constructor(page: Page, instanceMeta: HelperFixtureTypes$1['InstanceMeta']);
|
|
1771
1795
|
url(): string;
|
|
1772
1796
|
}
|
|
1773
1797
|
|
|
1774
1798
|
declare class CustomerGroupDetail extends CustomerGroupCreate implements PageObject {
|
|
1775
1799
|
readonly page: Page;
|
|
1800
|
+
readonly instanceMeta: HelperFixtureTypes$1['InstanceMeta'];
|
|
1776
1801
|
readonly headline: Locator;
|
|
1777
1802
|
readonly selectedSalesChannel: Locator;
|
|
1778
1803
|
readonly technicalUrl: Locator;
|
|
1779
1804
|
readonly saleschannelUrl: Locator;
|
|
1780
|
-
constructor(page: Page);
|
|
1805
|
+
constructor(page: Page, instanceMeta: HelperFixtureTypes$1['InstanceMeta']);
|
|
1781
1806
|
url(customerGroupId?: string): string;
|
|
1782
1807
|
}
|
|
1783
1808
|
|
|
@@ -2490,6 +2515,12 @@ declare const test: _playwright_test.TestType<_playwright_test.PlaywrightTestArg
|
|
|
2490
2515
|
SearchForTerm: Task;
|
|
2491
2516
|
} & {
|
|
2492
2517
|
ValidateAccessibility: (pageName: string, assertViolations?: number | boolean | undefined, createReport?: boolean | undefined, ruleTags?: string[] | undefined, outputDir?: string | undefined) => () => Promise<axe_core.Result[]>;
|
|
2518
|
+
} & {
|
|
2519
|
+
RemoveProductFromWishlist: Task;
|
|
2520
|
+
} & {
|
|
2521
|
+
AddProductToCartFromWishlist: Task;
|
|
2522
|
+
} & {
|
|
2523
|
+
AddProductToWishlist: Task;
|
|
2493
2524
|
}, _playwright_test.PlaywrightWorkerArgs & _playwright_test.PlaywrightWorkerOptions & FixtureTypes>;
|
|
2494
2525
|
|
|
2495
2526
|
export { type AccountData, type Address, AdminPageObjects, type CalculatedTaxes, type Category$1 as Category, type CategoryCustomizableLinkData, type CategoryData, type CmsPage, type Country, type CreatedRecord, type Currency$1 as Currency, type CustomField, type CustomFieldData, type CustomFieldSet, type Customer, type CustomerAddress, type CustomerGroup, type DataServiceOptions, type DeliveryTime, type FixtureTypes, type Language$1 as Language, type Manufacturer, type Media, type Order, type OrderDelivery, type OrderLineItem, type OrderStatus, type PageObject, type PaymentMethod, type Price, type Product, type ProductCrossSelling, type ProductPrice, 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, type SimpleLineItem, type StateMachine, type StateMachineState, StorefrontPageObjects, type SyncApiOperation, type SystemConfig, type Tag, type TagData, type Task, type Tax, type TaxRules, TestDataService, type VariantListingConfig, createRandomImage, extractIdFromUrl, getCountryId, getCurrency, getDefaultShippingMethodId, getFlowId, getLanguageData, getMediaId, getOrderTransactionId, getPaymentMethodId, getPromotionWithDiscount, getSalutationId, getSnippetSetId, getStateMachineId, getStateMachineStateId, getTaxId, getThemeId, isSaaSInstance, isThemeCompiled, setOrderStatus, test };
|