@shopware-ag/acceptance-test-suite 3.5.0 → 3.6.1
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 +4 -2
- package/dist/index.d.ts +4 -2
- package/dist/index.mjs +9 -0
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -189,7 +189,7 @@ interface ProductPrice {
|
|
|
189
189
|
ruleId: string;
|
|
190
190
|
price: Price[];
|
|
191
191
|
quantityStart: number;
|
|
192
|
-
quantityEnd: number;
|
|
192
|
+
quantityEnd: number | null;
|
|
193
193
|
}
|
|
194
194
|
type Product = Omit<components['schemas']['Product'], 'price' | 'prices'> & {
|
|
195
195
|
id: string;
|
|
@@ -762,6 +762,7 @@ interface PageObject {
|
|
|
762
762
|
declare class Home implements PageObject {
|
|
763
763
|
readonly page: Page;
|
|
764
764
|
readonly productImages: Locator;
|
|
765
|
+
readonly productListItems: Locator;
|
|
765
766
|
constructor(page: Page);
|
|
766
767
|
url(): string;
|
|
767
768
|
}
|
|
@@ -772,6 +773,7 @@ declare class ProductDetail$1 implements PageObject {
|
|
|
772
773
|
readonly quantitySelect: Locator;
|
|
773
774
|
readonly productSingleImage: Locator;
|
|
774
775
|
readonly productSinglePrice: Locator;
|
|
776
|
+
readonly productPriceRangesRow: Locator;
|
|
775
777
|
readonly offCanvasCartTitle: Locator;
|
|
776
778
|
readonly offCanvasCart: Locator;
|
|
777
779
|
readonly offCanvasCartGoToCheckoutButton: Locator;
|
|
@@ -1289,4 +1291,4 @@ declare const test: _playwright_test.TestType<_playwright_test.PlaywrightTestArg
|
|
|
1289
1291
|
ValidateAccessibility: (pageName: string, assertViolations?: number | boolean | undefined, createReport?: boolean | undefined, ruleTags?: string[] | undefined, outputDir?: string | undefined) => () => Promise<axe_core.Result[]>;
|
|
1290
1292
|
}, _playwright_test.PlaywrightWorkerArgs & _playwright_test.PlaywrightWorkerOptions & FixtureTypes>;
|
|
1291
1293
|
|
|
1292
|
-
export { AdminPageObjects, type CalculatedTaxes, type Category$1 as Category, type CreatedRecord, type Currency$1 as Currency, type Customer, type CustomerAddress, type DataServiceOptions, type FixtureTypes, type Manufacturer, type Media, type Order, type OrderDelivery, type OrderLineItem, type PageObject, type PaymentMethod, type Price, type Product, type ProductPrice, type Promotion, type PromotionDiscount, type PropertyGroup, type Rule, type SalesChannel, type Salutation, type ShippingMethod, type SimpleLineItem, type StateMachine, type StateMachineState, StorefrontPageObjects, type SyncApiOperation, type Tag, type Task, type TaxRules, TestDataService, createRandomImage, extractIdFromUrl, getCountryId, getCurrency, getDefaultShippingMethodId, getFlowId, getLanguageData, getMediaId, getOrderTransactionId, getPaymentMethodId, getPromotionWithDiscount, getSalutationId, getSnippetSetId, getStateMachineId, getStateMachineStateId, getTaxId, getThemeId, isSaaSInstance, isThemeCompiled, setOrderStatus, test };
|
|
1294
|
+
export { AdminPageObjects, type CalculatedTaxes, type Category$1 as Category, type CreatedRecord, type Currency$1 as Currency, type Customer, type CustomerAddress, type DataServiceOptions, type FixtureTypes, type Manufacturer, type Media, type Order, type OrderDelivery, type OrderLineItem, type OrderStatus, type PageObject, type PaymentMethod, type Price, type Product, type ProductPrice, type Promotion, type PromotionDiscount, type PropertyGroup, type Rule, type SalesChannel, type Salutation, type ShippingMethod, type SimpleLineItem, type StateMachine, type StateMachineState, StorefrontPageObjects, type SyncApiOperation, type Tag, type Task, type TaxRules, TestDataService, 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
|
@@ -189,7 +189,7 @@ interface ProductPrice {
|
|
|
189
189
|
ruleId: string;
|
|
190
190
|
price: Price[];
|
|
191
191
|
quantityStart: number;
|
|
192
|
-
quantityEnd: number;
|
|
192
|
+
quantityEnd: number | null;
|
|
193
193
|
}
|
|
194
194
|
type Product = Omit<components['schemas']['Product'], 'price' | 'prices'> & {
|
|
195
195
|
id: string;
|
|
@@ -762,6 +762,7 @@ interface PageObject {
|
|
|
762
762
|
declare class Home implements PageObject {
|
|
763
763
|
readonly page: Page;
|
|
764
764
|
readonly productImages: Locator;
|
|
765
|
+
readonly productListItems: Locator;
|
|
765
766
|
constructor(page: Page);
|
|
766
767
|
url(): string;
|
|
767
768
|
}
|
|
@@ -772,6 +773,7 @@ declare class ProductDetail$1 implements PageObject {
|
|
|
772
773
|
readonly quantitySelect: Locator;
|
|
773
774
|
readonly productSingleImage: Locator;
|
|
774
775
|
readonly productSinglePrice: Locator;
|
|
776
|
+
readonly productPriceRangesRow: Locator;
|
|
775
777
|
readonly offCanvasCartTitle: Locator;
|
|
776
778
|
readonly offCanvasCart: Locator;
|
|
777
779
|
readonly offCanvasCartGoToCheckoutButton: Locator;
|
|
@@ -1289,4 +1291,4 @@ declare const test: _playwright_test.TestType<_playwright_test.PlaywrightTestArg
|
|
|
1289
1291
|
ValidateAccessibility: (pageName: string, assertViolations?: number | boolean | undefined, createReport?: boolean | undefined, ruleTags?: string[] | undefined, outputDir?: string | undefined) => () => Promise<axe_core.Result[]>;
|
|
1290
1292
|
}, _playwright_test.PlaywrightWorkerArgs & _playwright_test.PlaywrightWorkerOptions & FixtureTypes>;
|
|
1291
1293
|
|
|
1292
|
-
export { AdminPageObjects, type CalculatedTaxes, type Category$1 as Category, type CreatedRecord, type Currency$1 as Currency, type Customer, type CustomerAddress, type DataServiceOptions, type FixtureTypes, type Manufacturer, type Media, type Order, type OrderDelivery, type OrderLineItem, type PageObject, type PaymentMethod, type Price, type Product, type ProductPrice, type Promotion, type PromotionDiscount, type PropertyGroup, type Rule, type SalesChannel, type Salutation, type ShippingMethod, type SimpleLineItem, type StateMachine, type StateMachineState, StorefrontPageObjects, type SyncApiOperation, type Tag, type Task, type TaxRules, TestDataService, createRandomImage, extractIdFromUrl, getCountryId, getCurrency, getDefaultShippingMethodId, getFlowId, getLanguageData, getMediaId, getOrderTransactionId, getPaymentMethodId, getPromotionWithDiscount, getSalutationId, getSnippetSetId, getStateMachineId, getStateMachineStateId, getTaxId, getThemeId, isSaaSInstance, isThemeCompiled, setOrderStatus, test };
|
|
1294
|
+
export { AdminPageObjects, type CalculatedTaxes, type Category$1 as Category, type CreatedRecord, type Currency$1 as Currency, type Customer, type CustomerAddress, type DataServiceOptions, type FixtureTypes, type Manufacturer, type Media, type Order, type OrderDelivery, type OrderLineItem, type OrderStatus, type PageObject, type PaymentMethod, type Price, type Product, type ProductPrice, type Promotion, type PromotionDiscount, type PropertyGroup, type Rule, type SalesChannel, type Salutation, type ShippingMethod, type SimpleLineItem, type StateMachine, type StateMachineState, StorefrontPageObjects, type SyncApiOperation, type Tag, type Task, type TaxRules, TestDataService, createRandomImage, extractIdFromUrl, getCountryId, getCurrency, getDefaultShippingMethodId, getFlowId, getLanguageData, getMediaId, getOrderTransactionId, getPaymentMethodId, getPromotionWithDiscount, getSalutationId, getSnippetSetId, getStateMachineId, getStateMachineStateId, getTaxId, getThemeId, isSaaSInstance, isThemeCompiled, setOrderStatus, test };
|
package/dist/index.mjs
CHANGED
|
@@ -1785,6 +1785,11 @@ class TestDataService {
|
|
|
1785
1785
|
price: p(80, 67.23),
|
|
1786
1786
|
quantityStart: 21,
|
|
1787
1787
|
quantityEnd: 50
|
|
1788
|
+
}, {
|
|
1789
|
+
ruleId,
|
|
1790
|
+
price: p(70, 58.82),
|
|
1791
|
+
quantityStart: 51,
|
|
1792
|
+
quantityEnd: null
|
|
1788
1793
|
}]
|
|
1789
1794
|
};
|
|
1790
1795
|
}
|
|
@@ -2246,7 +2251,9 @@ class Home {
|
|
|
2246
2251
|
constructor(page) {
|
|
2247
2252
|
this.page = page;
|
|
2248
2253
|
__publicField$o(this, "productImages");
|
|
2254
|
+
__publicField$o(this, "productListItems");
|
|
2249
2255
|
this.productImages = page.locator(".product-image-link");
|
|
2256
|
+
this.productListItems = page.getByRole("listitem");
|
|
2250
2257
|
}
|
|
2251
2258
|
url() {
|
|
2252
2259
|
return "./";
|
|
@@ -2266,6 +2273,7 @@ let ProductDetail$1 = class ProductDetail {
|
|
|
2266
2273
|
__publicField$n(this, "quantitySelect");
|
|
2267
2274
|
__publicField$n(this, "productSingleImage");
|
|
2268
2275
|
__publicField$n(this, "productSinglePrice");
|
|
2276
|
+
__publicField$n(this, "productPriceRangesRow");
|
|
2269
2277
|
__publicField$n(this, "offCanvasCartTitle");
|
|
2270
2278
|
__publicField$n(this, "offCanvasCart");
|
|
2271
2279
|
__publicField$n(this, "offCanvasCartGoToCheckoutButton");
|
|
@@ -2276,6 +2284,7 @@ let ProductDetail$1 = class ProductDetail {
|
|
|
2276
2284
|
this.quantitySelect = page.getByLabel("Quantity", { exact: true });
|
|
2277
2285
|
this.productSingleImage = page.locator(".gallery-slider-single-image");
|
|
2278
2286
|
this.productSinglePrice = page.locator(".product-detail-price");
|
|
2287
|
+
this.productPriceRangesRow = page.locator(".product-block-prices-row > th");
|
|
2279
2288
|
this.offCanvas = page.locator("offcanvas-body");
|
|
2280
2289
|
this.offCanvasCartTitle = page.getByText("Shopping cart", { exact: true });
|
|
2281
2290
|
this.offCanvasCart = page.getByRole("dialog");
|