@shopware-ag/acceptance-test-suite 5.1.0 → 5.3.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 +114 -2
- package/dist/index.d.ts +114 -2
- package/dist/index.mjs +888 -506
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -171,9 +171,27 @@ declare class IdProvider {
|
|
|
171
171
|
type SalesChannel = components['schemas']['SalesChannel'] & {
|
|
172
172
|
id: string;
|
|
173
173
|
};
|
|
174
|
-
type Customer = components['schemas']['Customer'] & {
|
|
174
|
+
type Customer = Omit<components['schemas']['Customer'], 'defaultShippingAddress' | 'defaultBillingAddress'> & {
|
|
175
175
|
id: string;
|
|
176
176
|
password: string;
|
|
177
|
+
defaultShippingAddress: {
|
|
178
|
+
firstName: string;
|
|
179
|
+
lastName: string;
|
|
180
|
+
city: string;
|
|
181
|
+
street: string;
|
|
182
|
+
zipcode: string;
|
|
183
|
+
countryId: string;
|
|
184
|
+
salutationId: string;
|
|
185
|
+
};
|
|
186
|
+
defaultBillingAddress: {
|
|
187
|
+
firstName: string;
|
|
188
|
+
lastName: string;
|
|
189
|
+
city: string;
|
|
190
|
+
street: string;
|
|
191
|
+
zipcode: string;
|
|
192
|
+
countryId: string;
|
|
193
|
+
salutationId: string;
|
|
194
|
+
};
|
|
177
195
|
};
|
|
178
196
|
type CustomerAddress = components['schemas']['CustomerAddress'] & {
|
|
179
197
|
id: string;
|
|
@@ -235,6 +253,9 @@ type Rule = components['schemas']['Rule'] & {
|
|
|
235
253
|
type Currency$1 = components['schemas']['Currency'] & {
|
|
236
254
|
id: string;
|
|
237
255
|
};
|
|
256
|
+
type Country = components['schemas']['Country'] & {
|
|
257
|
+
id: string;
|
|
258
|
+
};
|
|
238
259
|
interface CalculatedTaxes {
|
|
239
260
|
tax: number;
|
|
240
261
|
taxRate: number;
|
|
@@ -522,6 +543,19 @@ declare class TestDataService {
|
|
|
522
543
|
* @param overrides - Specific data overrides that will be applied to the cms page layout data struct.
|
|
523
544
|
*/
|
|
524
545
|
createBasicPageLayout(cmsPageType: string, overrides?: Partial<CmsPage>): Promise<CmsPage>;
|
|
546
|
+
/**
|
|
547
|
+
* Creates a random country
|
|
548
|
+
*
|
|
549
|
+
* @param overrides - Specific data overrides that will be applied to the country data struct.
|
|
550
|
+
*/
|
|
551
|
+
createCountry(overrides?: Partial<Country>): Promise<Country>;
|
|
552
|
+
/**
|
|
553
|
+
* Creates a random currency with default rounding of 2 decimals
|
|
554
|
+
*
|
|
555
|
+
* @param roundingDecimals - Decimals of the rounding shown in Storefront, default value 2
|
|
556
|
+
* @param overrides - Specific data overrides that will be applied to the currency data struct.
|
|
557
|
+
*/
|
|
558
|
+
createCurrency(overrides?: Partial<Currency$1>, roundingDecimals?: number): Promise<Currency$1>;
|
|
525
559
|
/**
|
|
526
560
|
* Assigns a media resource as the download of a digital product.
|
|
527
561
|
*
|
|
@@ -543,6 +577,14 @@ declare class TestDataService {
|
|
|
543
577
|
* @param manufacturerId - The uuid of the manufacturer.
|
|
544
578
|
*/
|
|
545
579
|
assignProductManufacturer(productId: string, manufacturerId: string): Promise<void>;
|
|
580
|
+
/**
|
|
581
|
+
* Assigns a country to a currency with default roundings of 2.
|
|
582
|
+
*
|
|
583
|
+
* @param currencyId - The uuid of currency.
|
|
584
|
+
* @param countryId - The uuid of country.
|
|
585
|
+
* @param roundingDecimals - The roundings of item and total values in storefront, default 2 decimals
|
|
586
|
+
*/
|
|
587
|
+
assignCurrencyCountryRounding(currencyId: string, countryId: string, roundingDecimals?: number): Promise<any>;
|
|
546
588
|
/**
|
|
547
589
|
* Assigns a product to a category.
|
|
548
590
|
*
|
|
@@ -573,6 +615,20 @@ declare class TestDataService {
|
|
|
573
615
|
* @param productId - The uuid of the product.
|
|
574
616
|
*/
|
|
575
617
|
assignManufacturerProduct(manufacturerId: string, productId: string): Promise<void>;
|
|
618
|
+
/**
|
|
619
|
+
* Assigns a currency to a sales channel.
|
|
620
|
+
*
|
|
621
|
+
* @param salesChannelId - The uuid of the sales channel.
|
|
622
|
+
* @param currencyId - The uuid of the currency.
|
|
623
|
+
*/
|
|
624
|
+
assignSalesChannelCurrency(salesChannelId: string, currencyId: string): Promise<any>;
|
|
625
|
+
/**
|
|
626
|
+
* Assigns a country to a sales channel.
|
|
627
|
+
*
|
|
628
|
+
* @param salesChannelId - The uuid of the sales channel.
|
|
629
|
+
* @param countryId - The uuid of the country.
|
|
630
|
+
*/
|
|
631
|
+
assignSalesChannelCountry(salesChannelId: string, countryId: string): Promise<any>;
|
|
576
632
|
/**
|
|
577
633
|
* Assigns a media resource to a payment method as a logo.
|
|
578
634
|
*
|
|
@@ -691,6 +747,14 @@ declare class TestDataService {
|
|
|
691
747
|
* @param array
|
|
692
748
|
*/
|
|
693
749
|
combineAll: (array: Record<string, string>[][]) => Record<string, string>[][];
|
|
750
|
+
/**
|
|
751
|
+
* Retrieves a country Id based on its iso2 code.
|
|
752
|
+
*
|
|
753
|
+
* @param iso2 - The iso2 code of the country, for example "DE".
|
|
754
|
+
*/
|
|
755
|
+
getCountryId(iso2: string): Promise<Country>;
|
|
756
|
+
getCountryStruct(overrides?: Partial<Country>): Partial<Country>;
|
|
757
|
+
getCurrencyStruct(overrides: Partial<Currency$1> | undefined, roundingDecimals: number): Partial<Currency$1>;
|
|
694
758
|
getBasicProductStruct(taxId?: string, currencyId?: string, overrides?: Partial<Product>): Partial<Product>;
|
|
695
759
|
getBasicRuleStruct(overrides: Partial<Rule> | undefined, conditionType: string, operator: string, amount: number): Partial<Rule>;
|
|
696
760
|
getProductPriceRangeStruct(currencyId: string, ruleId: string): Partial<Product>;
|
|
@@ -847,7 +911,10 @@ declare class Home implements PageObject {
|
|
|
847
911
|
readonly page: Page;
|
|
848
912
|
readonly productImages: Locator;
|
|
849
913
|
readonly productListItems: Locator;
|
|
914
|
+
readonly languagesDropdown: Locator;
|
|
915
|
+
readonly currenciesDropdown: Locator;
|
|
850
916
|
constructor(page: Page);
|
|
917
|
+
getListingItemByProductId(productId: string): Promise<Record<string, Locator>>;
|
|
851
918
|
url(): string;
|
|
852
919
|
}
|
|
853
920
|
|
|
@@ -916,6 +983,7 @@ declare class CheckoutConfirm implements PageObject {
|
|
|
916
983
|
readonly termsAndConditionsCheckbox: Locator;
|
|
917
984
|
readonly immediateAccessToDigitalProductCheckbox: Locator;
|
|
918
985
|
readonly grandTotalPrice: Locator;
|
|
986
|
+
readonly taxPrice: Locator;
|
|
919
987
|
readonly submitOrderButton: Locator;
|
|
920
988
|
/**
|
|
921
989
|
* Payment options
|
|
@@ -941,6 +1009,7 @@ declare class CheckoutFinish implements PageObject {
|
|
|
941
1009
|
readonly headline: Locator;
|
|
942
1010
|
readonly orderNumberText: Locator;
|
|
943
1011
|
readonly grandTotalPrice: Locator;
|
|
1012
|
+
readonly taxPrice: Locator;
|
|
944
1013
|
readonly cartLineItemImages: Locator;
|
|
945
1014
|
private readonly orderNumberRegex;
|
|
946
1015
|
constructor(page: Page);
|
|
@@ -1365,6 +1434,7 @@ declare class Categories implements PageObject {
|
|
|
1365
1434
|
readonly categoryTypeSelectionList: Locator;
|
|
1366
1435
|
readonly filtersResultPopoverItemList: Locator;
|
|
1367
1436
|
readonly saveButton: Locator;
|
|
1437
|
+
readonly loadingSpinner: Locator;
|
|
1368
1438
|
/**
|
|
1369
1439
|
* Customisable link
|
|
1370
1440
|
*/
|
|
@@ -1375,8 +1445,10 @@ declare class Categories implements PageObject {
|
|
|
1375
1445
|
readonly landingPageSelectionList: Locator;
|
|
1376
1446
|
readonly filterResultPopoverTreeCheckboxItemList: Locator;
|
|
1377
1447
|
readonly openInNewTabCheckbox: Locator;
|
|
1448
|
+
readonly popoverCategoryTree: Locator;
|
|
1378
1449
|
constructor(page: Page);
|
|
1379
1450
|
getLandingPageByName(landingPageName: string): Promise<Locator>;
|
|
1451
|
+
getPopOverCategoryByName(categoryName: string): Promise<Locator>;
|
|
1380
1452
|
url(): string;
|
|
1381
1453
|
}
|
|
1382
1454
|
|
|
@@ -1462,6 +1534,36 @@ declare class RuleCreate implements PageObject {
|
|
|
1462
1534
|
url(): string;
|
|
1463
1535
|
}
|
|
1464
1536
|
|
|
1537
|
+
declare class ManufacturerCreate implements PageObject {
|
|
1538
|
+
readonly page: Page;
|
|
1539
|
+
readonly saveButton: Locator;
|
|
1540
|
+
readonly cancelButton: Locator;
|
|
1541
|
+
readonly nameInput: Locator;
|
|
1542
|
+
readonly websiteInput: Locator;
|
|
1543
|
+
readonly descriptionInput: Locator;
|
|
1544
|
+
constructor(page: Page);
|
|
1545
|
+
url(): string;
|
|
1546
|
+
}
|
|
1547
|
+
|
|
1548
|
+
declare class ManufacturerListing implements PageObject {
|
|
1549
|
+
readonly page: Page;
|
|
1550
|
+
readonly addManufacturerButton: Locator;
|
|
1551
|
+
readonly manufacturerRows: Locator;
|
|
1552
|
+
constructor(page: Page);
|
|
1553
|
+
getLineItemByManufacturerName(manufacturerName: string): Promise<Record<string, Locator>>;
|
|
1554
|
+
url(): string;
|
|
1555
|
+
}
|
|
1556
|
+
|
|
1557
|
+
declare class ManufacturerDetail extends ManufacturerCreate {
|
|
1558
|
+
readonly page: Page;
|
|
1559
|
+
readonly customFieldCard: Locator;
|
|
1560
|
+
readonly customFieldSetTabs: Locator;
|
|
1561
|
+
readonly customFieldSetTabCustomContent: Locator;
|
|
1562
|
+
constructor(page: Page);
|
|
1563
|
+
getCustomFieldSetCardContentByName(customFieldSetName: string): Promise<Record<string, Locator>>;
|
|
1564
|
+
url(manufacturerUuid?: string): string;
|
|
1565
|
+
}
|
|
1566
|
+
|
|
1465
1567
|
interface AdministrationPageTypes {
|
|
1466
1568
|
AdminProductDetail: ProductDetail;
|
|
1467
1569
|
AdminOrderDetail: OrderDetail;
|
|
@@ -1482,6 +1584,9 @@ interface AdministrationPageTypes {
|
|
|
1482
1584
|
AdminCustomFieldListing: CustomFieldListing;
|
|
1483
1585
|
AdminCustomFieldCreate: CustomFieldCreate;
|
|
1484
1586
|
AdminCustomFieldDetail: CustomFieldDetail;
|
|
1587
|
+
AdminManufacturerCreate: ManufacturerCreate;
|
|
1588
|
+
AdminManufacturerListing: ManufacturerListing;
|
|
1589
|
+
AdminManufacturerDetail: ManufacturerDetail;
|
|
1485
1590
|
}
|
|
1486
1591
|
declare const AdminPageObjects: {
|
|
1487
1592
|
ProductDetail: typeof ProductDetail;
|
|
@@ -1503,6 +1608,9 @@ declare const AdminPageObjects: {
|
|
|
1503
1608
|
CustomFieldListing: typeof CustomFieldListing;
|
|
1504
1609
|
CustomFieldCreate: typeof CustomFieldCreate;
|
|
1505
1610
|
CustomFieldDetail: typeof CustomFieldDetail;
|
|
1611
|
+
ManufacturerCreate: typeof ManufacturerCreate;
|
|
1612
|
+
ManufacturerDetail: typeof ManufacturerDetail;
|
|
1613
|
+
ManufacturerListing: typeof ManufacturerListing;
|
|
1506
1614
|
};
|
|
1507
1615
|
|
|
1508
1616
|
interface DataFixtureTypes {
|
|
@@ -1597,6 +1705,10 @@ declare const test: _playwright_test.TestType<_playwright_test.PlaywrightTestArg
|
|
|
1597
1705
|
Logout: Task;
|
|
1598
1706
|
} & {
|
|
1599
1707
|
Register: Task;
|
|
1708
|
+
} & {
|
|
1709
|
+
RegisterGuest: Task;
|
|
1710
|
+
} & {
|
|
1711
|
+
ChangeStorefrontCurrency: Task;
|
|
1600
1712
|
} & {
|
|
1601
1713
|
AddProductToCart: Task;
|
|
1602
1714
|
} & {
|
|
@@ -1627,4 +1739,4 @@ declare const test: _playwright_test.TestType<_playwright_test.PlaywrightTestArg
|
|
|
1627
1739
|
ValidateAccessibility: (pageName: string, assertViolations?: number | boolean | undefined, createReport?: boolean | undefined, ruleTags?: string[] | undefined, outputDir?: string | undefined) => () => Promise<axe_core.Result[]>;
|
|
1628
1740
|
}, _playwright_test.PlaywrightWorkerArgs & _playwright_test.PlaywrightWorkerOptions & FixtureTypes>;
|
|
1629
1741
|
|
|
1630
|
-
export { AdminPageObjects, type CalculatedTaxes, type Category$1 as Category, type CmsPage, type CreatedRecord, type Currency$1 as Currency, type Customer, type CustomerAddress, type DataServiceOptions, type DeliveryTime, 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 PropertyGroupOption, 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 };
|
|
1742
|
+
export { AdminPageObjects, type CalculatedTaxes, type Category$1 as Category, type CmsPage, type Country, type CreatedRecord, type Currency$1 as Currency, type Customer, type CustomerAddress, type DataServiceOptions, type DeliveryTime, 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 PropertyGroupOption, 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
|
@@ -171,9 +171,27 @@ declare class IdProvider {
|
|
|
171
171
|
type SalesChannel = components['schemas']['SalesChannel'] & {
|
|
172
172
|
id: string;
|
|
173
173
|
};
|
|
174
|
-
type Customer = components['schemas']['Customer'] & {
|
|
174
|
+
type Customer = Omit<components['schemas']['Customer'], 'defaultShippingAddress' | 'defaultBillingAddress'> & {
|
|
175
175
|
id: string;
|
|
176
176
|
password: string;
|
|
177
|
+
defaultShippingAddress: {
|
|
178
|
+
firstName: string;
|
|
179
|
+
lastName: string;
|
|
180
|
+
city: string;
|
|
181
|
+
street: string;
|
|
182
|
+
zipcode: string;
|
|
183
|
+
countryId: string;
|
|
184
|
+
salutationId: string;
|
|
185
|
+
};
|
|
186
|
+
defaultBillingAddress: {
|
|
187
|
+
firstName: string;
|
|
188
|
+
lastName: string;
|
|
189
|
+
city: string;
|
|
190
|
+
street: string;
|
|
191
|
+
zipcode: string;
|
|
192
|
+
countryId: string;
|
|
193
|
+
salutationId: string;
|
|
194
|
+
};
|
|
177
195
|
};
|
|
178
196
|
type CustomerAddress = components['schemas']['CustomerAddress'] & {
|
|
179
197
|
id: string;
|
|
@@ -235,6 +253,9 @@ type Rule = components['schemas']['Rule'] & {
|
|
|
235
253
|
type Currency$1 = components['schemas']['Currency'] & {
|
|
236
254
|
id: string;
|
|
237
255
|
};
|
|
256
|
+
type Country = components['schemas']['Country'] & {
|
|
257
|
+
id: string;
|
|
258
|
+
};
|
|
238
259
|
interface CalculatedTaxes {
|
|
239
260
|
tax: number;
|
|
240
261
|
taxRate: number;
|
|
@@ -522,6 +543,19 @@ declare class TestDataService {
|
|
|
522
543
|
* @param overrides - Specific data overrides that will be applied to the cms page layout data struct.
|
|
523
544
|
*/
|
|
524
545
|
createBasicPageLayout(cmsPageType: string, overrides?: Partial<CmsPage>): Promise<CmsPage>;
|
|
546
|
+
/**
|
|
547
|
+
* Creates a random country
|
|
548
|
+
*
|
|
549
|
+
* @param overrides - Specific data overrides that will be applied to the country data struct.
|
|
550
|
+
*/
|
|
551
|
+
createCountry(overrides?: Partial<Country>): Promise<Country>;
|
|
552
|
+
/**
|
|
553
|
+
* Creates a random currency with default rounding of 2 decimals
|
|
554
|
+
*
|
|
555
|
+
* @param roundingDecimals - Decimals of the rounding shown in Storefront, default value 2
|
|
556
|
+
* @param overrides - Specific data overrides that will be applied to the currency data struct.
|
|
557
|
+
*/
|
|
558
|
+
createCurrency(overrides?: Partial<Currency$1>, roundingDecimals?: number): Promise<Currency$1>;
|
|
525
559
|
/**
|
|
526
560
|
* Assigns a media resource as the download of a digital product.
|
|
527
561
|
*
|
|
@@ -543,6 +577,14 @@ declare class TestDataService {
|
|
|
543
577
|
* @param manufacturerId - The uuid of the manufacturer.
|
|
544
578
|
*/
|
|
545
579
|
assignProductManufacturer(productId: string, manufacturerId: string): Promise<void>;
|
|
580
|
+
/**
|
|
581
|
+
* Assigns a country to a currency with default roundings of 2.
|
|
582
|
+
*
|
|
583
|
+
* @param currencyId - The uuid of currency.
|
|
584
|
+
* @param countryId - The uuid of country.
|
|
585
|
+
* @param roundingDecimals - The roundings of item and total values in storefront, default 2 decimals
|
|
586
|
+
*/
|
|
587
|
+
assignCurrencyCountryRounding(currencyId: string, countryId: string, roundingDecimals?: number): Promise<any>;
|
|
546
588
|
/**
|
|
547
589
|
* Assigns a product to a category.
|
|
548
590
|
*
|
|
@@ -573,6 +615,20 @@ declare class TestDataService {
|
|
|
573
615
|
* @param productId - The uuid of the product.
|
|
574
616
|
*/
|
|
575
617
|
assignManufacturerProduct(manufacturerId: string, productId: string): Promise<void>;
|
|
618
|
+
/**
|
|
619
|
+
* Assigns a currency to a sales channel.
|
|
620
|
+
*
|
|
621
|
+
* @param salesChannelId - The uuid of the sales channel.
|
|
622
|
+
* @param currencyId - The uuid of the currency.
|
|
623
|
+
*/
|
|
624
|
+
assignSalesChannelCurrency(salesChannelId: string, currencyId: string): Promise<any>;
|
|
625
|
+
/**
|
|
626
|
+
* Assigns a country to a sales channel.
|
|
627
|
+
*
|
|
628
|
+
* @param salesChannelId - The uuid of the sales channel.
|
|
629
|
+
* @param countryId - The uuid of the country.
|
|
630
|
+
*/
|
|
631
|
+
assignSalesChannelCountry(salesChannelId: string, countryId: string): Promise<any>;
|
|
576
632
|
/**
|
|
577
633
|
* Assigns a media resource to a payment method as a logo.
|
|
578
634
|
*
|
|
@@ -691,6 +747,14 @@ declare class TestDataService {
|
|
|
691
747
|
* @param array
|
|
692
748
|
*/
|
|
693
749
|
combineAll: (array: Record<string, string>[][]) => Record<string, string>[][];
|
|
750
|
+
/**
|
|
751
|
+
* Retrieves a country Id based on its iso2 code.
|
|
752
|
+
*
|
|
753
|
+
* @param iso2 - The iso2 code of the country, for example "DE".
|
|
754
|
+
*/
|
|
755
|
+
getCountryId(iso2: string): Promise<Country>;
|
|
756
|
+
getCountryStruct(overrides?: Partial<Country>): Partial<Country>;
|
|
757
|
+
getCurrencyStruct(overrides: Partial<Currency$1> | undefined, roundingDecimals: number): Partial<Currency$1>;
|
|
694
758
|
getBasicProductStruct(taxId?: string, currencyId?: string, overrides?: Partial<Product>): Partial<Product>;
|
|
695
759
|
getBasicRuleStruct(overrides: Partial<Rule> | undefined, conditionType: string, operator: string, amount: number): Partial<Rule>;
|
|
696
760
|
getProductPriceRangeStruct(currencyId: string, ruleId: string): Partial<Product>;
|
|
@@ -847,7 +911,10 @@ declare class Home implements PageObject {
|
|
|
847
911
|
readonly page: Page;
|
|
848
912
|
readonly productImages: Locator;
|
|
849
913
|
readonly productListItems: Locator;
|
|
914
|
+
readonly languagesDropdown: Locator;
|
|
915
|
+
readonly currenciesDropdown: Locator;
|
|
850
916
|
constructor(page: Page);
|
|
917
|
+
getListingItemByProductId(productId: string): Promise<Record<string, Locator>>;
|
|
851
918
|
url(): string;
|
|
852
919
|
}
|
|
853
920
|
|
|
@@ -916,6 +983,7 @@ declare class CheckoutConfirm implements PageObject {
|
|
|
916
983
|
readonly termsAndConditionsCheckbox: Locator;
|
|
917
984
|
readonly immediateAccessToDigitalProductCheckbox: Locator;
|
|
918
985
|
readonly grandTotalPrice: Locator;
|
|
986
|
+
readonly taxPrice: Locator;
|
|
919
987
|
readonly submitOrderButton: Locator;
|
|
920
988
|
/**
|
|
921
989
|
* Payment options
|
|
@@ -941,6 +1009,7 @@ declare class CheckoutFinish implements PageObject {
|
|
|
941
1009
|
readonly headline: Locator;
|
|
942
1010
|
readonly orderNumberText: Locator;
|
|
943
1011
|
readonly grandTotalPrice: Locator;
|
|
1012
|
+
readonly taxPrice: Locator;
|
|
944
1013
|
readonly cartLineItemImages: Locator;
|
|
945
1014
|
private readonly orderNumberRegex;
|
|
946
1015
|
constructor(page: Page);
|
|
@@ -1365,6 +1434,7 @@ declare class Categories implements PageObject {
|
|
|
1365
1434
|
readonly categoryTypeSelectionList: Locator;
|
|
1366
1435
|
readonly filtersResultPopoverItemList: Locator;
|
|
1367
1436
|
readonly saveButton: Locator;
|
|
1437
|
+
readonly loadingSpinner: Locator;
|
|
1368
1438
|
/**
|
|
1369
1439
|
* Customisable link
|
|
1370
1440
|
*/
|
|
@@ -1375,8 +1445,10 @@ declare class Categories implements PageObject {
|
|
|
1375
1445
|
readonly landingPageSelectionList: Locator;
|
|
1376
1446
|
readonly filterResultPopoverTreeCheckboxItemList: Locator;
|
|
1377
1447
|
readonly openInNewTabCheckbox: Locator;
|
|
1448
|
+
readonly popoverCategoryTree: Locator;
|
|
1378
1449
|
constructor(page: Page);
|
|
1379
1450
|
getLandingPageByName(landingPageName: string): Promise<Locator>;
|
|
1451
|
+
getPopOverCategoryByName(categoryName: string): Promise<Locator>;
|
|
1380
1452
|
url(): string;
|
|
1381
1453
|
}
|
|
1382
1454
|
|
|
@@ -1462,6 +1534,36 @@ declare class RuleCreate implements PageObject {
|
|
|
1462
1534
|
url(): string;
|
|
1463
1535
|
}
|
|
1464
1536
|
|
|
1537
|
+
declare class ManufacturerCreate implements PageObject {
|
|
1538
|
+
readonly page: Page;
|
|
1539
|
+
readonly saveButton: Locator;
|
|
1540
|
+
readonly cancelButton: Locator;
|
|
1541
|
+
readonly nameInput: Locator;
|
|
1542
|
+
readonly websiteInput: Locator;
|
|
1543
|
+
readonly descriptionInput: Locator;
|
|
1544
|
+
constructor(page: Page);
|
|
1545
|
+
url(): string;
|
|
1546
|
+
}
|
|
1547
|
+
|
|
1548
|
+
declare class ManufacturerListing implements PageObject {
|
|
1549
|
+
readonly page: Page;
|
|
1550
|
+
readonly addManufacturerButton: Locator;
|
|
1551
|
+
readonly manufacturerRows: Locator;
|
|
1552
|
+
constructor(page: Page);
|
|
1553
|
+
getLineItemByManufacturerName(manufacturerName: string): Promise<Record<string, Locator>>;
|
|
1554
|
+
url(): string;
|
|
1555
|
+
}
|
|
1556
|
+
|
|
1557
|
+
declare class ManufacturerDetail extends ManufacturerCreate {
|
|
1558
|
+
readonly page: Page;
|
|
1559
|
+
readonly customFieldCard: Locator;
|
|
1560
|
+
readonly customFieldSetTabs: Locator;
|
|
1561
|
+
readonly customFieldSetTabCustomContent: Locator;
|
|
1562
|
+
constructor(page: Page);
|
|
1563
|
+
getCustomFieldSetCardContentByName(customFieldSetName: string): Promise<Record<string, Locator>>;
|
|
1564
|
+
url(manufacturerUuid?: string): string;
|
|
1565
|
+
}
|
|
1566
|
+
|
|
1465
1567
|
interface AdministrationPageTypes {
|
|
1466
1568
|
AdminProductDetail: ProductDetail;
|
|
1467
1569
|
AdminOrderDetail: OrderDetail;
|
|
@@ -1482,6 +1584,9 @@ interface AdministrationPageTypes {
|
|
|
1482
1584
|
AdminCustomFieldListing: CustomFieldListing;
|
|
1483
1585
|
AdminCustomFieldCreate: CustomFieldCreate;
|
|
1484
1586
|
AdminCustomFieldDetail: CustomFieldDetail;
|
|
1587
|
+
AdminManufacturerCreate: ManufacturerCreate;
|
|
1588
|
+
AdminManufacturerListing: ManufacturerListing;
|
|
1589
|
+
AdminManufacturerDetail: ManufacturerDetail;
|
|
1485
1590
|
}
|
|
1486
1591
|
declare const AdminPageObjects: {
|
|
1487
1592
|
ProductDetail: typeof ProductDetail;
|
|
@@ -1503,6 +1608,9 @@ declare const AdminPageObjects: {
|
|
|
1503
1608
|
CustomFieldListing: typeof CustomFieldListing;
|
|
1504
1609
|
CustomFieldCreate: typeof CustomFieldCreate;
|
|
1505
1610
|
CustomFieldDetail: typeof CustomFieldDetail;
|
|
1611
|
+
ManufacturerCreate: typeof ManufacturerCreate;
|
|
1612
|
+
ManufacturerDetail: typeof ManufacturerDetail;
|
|
1613
|
+
ManufacturerListing: typeof ManufacturerListing;
|
|
1506
1614
|
};
|
|
1507
1615
|
|
|
1508
1616
|
interface DataFixtureTypes {
|
|
@@ -1597,6 +1705,10 @@ declare const test: _playwright_test.TestType<_playwright_test.PlaywrightTestArg
|
|
|
1597
1705
|
Logout: Task;
|
|
1598
1706
|
} & {
|
|
1599
1707
|
Register: Task;
|
|
1708
|
+
} & {
|
|
1709
|
+
RegisterGuest: Task;
|
|
1710
|
+
} & {
|
|
1711
|
+
ChangeStorefrontCurrency: Task;
|
|
1600
1712
|
} & {
|
|
1601
1713
|
AddProductToCart: Task;
|
|
1602
1714
|
} & {
|
|
@@ -1627,4 +1739,4 @@ declare const test: _playwright_test.TestType<_playwright_test.PlaywrightTestArg
|
|
|
1627
1739
|
ValidateAccessibility: (pageName: string, assertViolations?: number | boolean | undefined, createReport?: boolean | undefined, ruleTags?: string[] | undefined, outputDir?: string | undefined) => () => Promise<axe_core.Result[]>;
|
|
1628
1740
|
}, _playwright_test.PlaywrightWorkerArgs & _playwright_test.PlaywrightWorkerOptions & FixtureTypes>;
|
|
1629
1741
|
|
|
1630
|
-
export { AdminPageObjects, type CalculatedTaxes, type Category$1 as Category, type CmsPage, type CreatedRecord, type Currency$1 as Currency, type Customer, type CustomerAddress, type DataServiceOptions, type DeliveryTime, 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 PropertyGroupOption, 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 };
|
|
1742
|
+
export { AdminPageObjects, type CalculatedTaxes, type Category$1 as Category, type CmsPage, type Country, type CreatedRecord, type Currency$1 as Currency, type Customer, type CustomerAddress, type DataServiceOptions, type DeliveryTime, 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 PropertyGroupOption, 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 };
|