@shopware-ag/acceptance-test-suite 8.0.1 → 8.2.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 +148 -2
- package/dist/index.d.ts +148 -2
- package/dist/index.mjs +1013 -622
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -212,7 +212,7 @@ interface ProductPrice {
|
|
|
212
212
|
quantityStart: number;
|
|
213
213
|
quantityEnd: number | null;
|
|
214
214
|
}
|
|
215
|
-
type Product = Omit<components['schemas']['Product'], 'price' | 'prices' | 'options'> & {
|
|
215
|
+
type Product = Omit<components['schemas']['Product'], 'price' | 'prices' | 'options' | 'tags' | 'visibilities'> & {
|
|
216
216
|
id: string;
|
|
217
217
|
price: Price[];
|
|
218
218
|
prices?: ProductPrice[];
|
|
@@ -220,6 +220,8 @@ type Product = Omit<components['schemas']['Product'], 'price' | 'prices' | 'opti
|
|
|
220
220
|
name: string;
|
|
221
221
|
};
|
|
222
222
|
options?: Record<string, string>[];
|
|
223
|
+
tags?: Record<string, string>[];
|
|
224
|
+
visibilities?: Record<string, unknown>[];
|
|
223
225
|
};
|
|
224
226
|
type OrderDelivery = Omit<components['schemas']['OrderDelivery'], 'shippingOrderAddress' | 'shippingCosts'> & {
|
|
225
227
|
id: string;
|
|
@@ -328,6 +330,9 @@ type CmsPage = components['schemas']['CmsPage'] & {
|
|
|
328
330
|
type CustomerGroup = components['schemas']['CustomerGroup'] & {
|
|
329
331
|
id: string;
|
|
330
332
|
};
|
|
333
|
+
type SalesChannelAnalytics = components['schemas']['SalesChannelAnalytics'] & {
|
|
334
|
+
id: string;
|
|
335
|
+
};
|
|
331
336
|
interface RegistrationData {
|
|
332
337
|
salutation: string;
|
|
333
338
|
firstName: string;
|
|
@@ -343,6 +348,10 @@ interface RegistrationData {
|
|
|
343
348
|
vatRegNo: string;
|
|
344
349
|
}
|
|
345
350
|
|
|
351
|
+
interface SalesChannelRecord {
|
|
352
|
+
salesChannelId: string;
|
|
353
|
+
field: string;
|
|
354
|
+
}
|
|
346
355
|
interface CreatedRecord {
|
|
347
356
|
resource: string;
|
|
348
357
|
payload: Record<string, string>;
|
|
@@ -401,6 +410,12 @@ declare class TestDataService {
|
|
|
401
410
|
* @private
|
|
402
411
|
*/
|
|
403
412
|
private createdRecords;
|
|
413
|
+
/**
|
|
414
|
+
* A registry of all created sales channel records.
|
|
415
|
+
*
|
|
416
|
+
* @private
|
|
417
|
+
*/
|
|
418
|
+
private createdSalesChannelRecords;
|
|
404
419
|
constructor(AdminApiClient: AdminApiContext, IdProvider: IdProvider, options: DataServiceOptions);
|
|
405
420
|
/**
|
|
406
421
|
* Creates a basic product without images or other special configuration.
|
|
@@ -590,6 +605,12 @@ declare class TestDataService {
|
|
|
590
605
|
* @param salesChannelId - Unique identity of sales channel.
|
|
591
606
|
*/
|
|
592
607
|
createSystemConfigEntry(configurationKey: string, configurationValue?: {}, salesChannelId?: string): Promise<SystemConfig>;
|
|
608
|
+
/**
|
|
609
|
+
* Creates a random sales channel analytics entity
|
|
610
|
+
*
|
|
611
|
+
* @param overrides - Specific data overrides that will be applied to the sales channel analytics data struct.
|
|
612
|
+
*/
|
|
613
|
+
createSalesChannelAnalytics(overrides?: Partial<SalesChannelAnalytics>): Promise<SalesChannelAnalytics>;
|
|
593
614
|
/**
|
|
594
615
|
* Assigns a media resource as the download of a digital product.
|
|
595
616
|
*
|
|
@@ -656,6 +677,13 @@ declare class TestDataService {
|
|
|
656
677
|
* @param currencyId - The uuid of the currency.
|
|
657
678
|
*/
|
|
658
679
|
assignSalesChannelCurrency(salesChannelId: string, currencyId: string): Promise<any>;
|
|
680
|
+
/**
|
|
681
|
+
* Assigns a sales channel analytics entity to a sales channel.
|
|
682
|
+
*
|
|
683
|
+
* @param salesChannelId - The uuid of the sales channel.
|
|
684
|
+
* @param salesChannelAnalyticsId - The uuid of the sales channel analytics entity.
|
|
685
|
+
*/
|
|
686
|
+
assignSalesChannelAnalytics(salesChannelId: string, salesChannelAnalyticsId: string): Promise<SalesChannel>;
|
|
659
687
|
/**
|
|
660
688
|
* Assigns a country to a sales channel.
|
|
661
689
|
*
|
|
@@ -756,6 +784,14 @@ declare class TestDataService {
|
|
|
756
784
|
* @param payload - You can pass a payload object for the delete operation or simply pass the uuid of the entity.
|
|
757
785
|
*/
|
|
758
786
|
addCreatedRecord(resource: string, payload: string | Record<string, string>): void;
|
|
787
|
+
/**
|
|
788
|
+
* Adds a sales channel related property to the registry of created sales channel records.
|
|
789
|
+
* The property added to the registry will be overridden with null value by the cleanup call.
|
|
790
|
+
*
|
|
791
|
+
* @param salesChannelId - The sales channel id where the property pair is located
|
|
792
|
+
* @param field - The database field which has to be overridden
|
|
793
|
+
*/
|
|
794
|
+
addCreatedSalesChannelRecord(salesChannelId: string, field: string): void;
|
|
759
795
|
/**
|
|
760
796
|
* Set the configuration of automated data clean up.
|
|
761
797
|
* If set to "true" the data service will delete all entities created by it.
|
|
@@ -892,6 +928,7 @@ declare class TestDataService {
|
|
|
892
928
|
getBasicPromotionStruct(salesChannelId?: string, overrides?: Partial<Promotion>): Partial<Promotion>;
|
|
893
929
|
getBasicCmsStruct(cmsType: string, overrides: Partial<CmsPage>): Partial<CmsPage>;
|
|
894
930
|
getBasicCustomerGroupStruct(overrides?: Partial<CustomerGroup>): Partial<CustomerGroup>;
|
|
931
|
+
getSalesChannelAnalyticsStruct(overrides?: Partial<SalesChannelAnalytics>): Partial<SalesChannelAnalytics>;
|
|
895
932
|
clearCaches(): Promise<void>;
|
|
896
933
|
}
|
|
897
934
|
|
|
@@ -1263,6 +1300,29 @@ declare class ProductDetail implements PageObject {
|
|
|
1263
1300
|
readonly savePhysicalProductButton: Locator;
|
|
1264
1301
|
readonly saveButtonLoadingSpinner: Locator;
|
|
1265
1302
|
readonly saveButtonCheckMark: Locator;
|
|
1303
|
+
/**
|
|
1304
|
+
* General Info
|
|
1305
|
+
*/
|
|
1306
|
+
readonly manufacturerDropdownText: Locator;
|
|
1307
|
+
/**
|
|
1308
|
+
* Prices
|
|
1309
|
+
*/
|
|
1310
|
+
readonly priceGrossInput: Locator;
|
|
1311
|
+
/**
|
|
1312
|
+
* Deliverability
|
|
1313
|
+
*/
|
|
1314
|
+
readonly stockInput: Locator;
|
|
1315
|
+
readonly restockTimeInput: Locator;
|
|
1316
|
+
/**
|
|
1317
|
+
* Visibility
|
|
1318
|
+
*/
|
|
1319
|
+
readonly activeForAllSalesChannelsToggle: Locator;
|
|
1320
|
+
readonly tagsInput: Locator;
|
|
1321
|
+
readonly saleChannelsInput: Locator;
|
|
1322
|
+
/**
|
|
1323
|
+
* Labelling
|
|
1324
|
+
*/
|
|
1325
|
+
readonly releaseDateInput: Locator;
|
|
1266
1326
|
/**
|
|
1267
1327
|
* Media Upload interactions
|
|
1268
1328
|
*/
|
|
@@ -1711,6 +1771,86 @@ declare class ManufacturerDetail extends ManufacturerCreate {
|
|
|
1711
1771
|
url(manufacturerUuid?: string): string;
|
|
1712
1772
|
}
|
|
1713
1773
|
|
|
1774
|
+
declare class ProductListing implements PageObject {
|
|
1775
|
+
readonly page: Page;
|
|
1776
|
+
/**
|
|
1777
|
+
* Multi selection
|
|
1778
|
+
*/
|
|
1779
|
+
readonly productsTable: Locator;
|
|
1780
|
+
readonly bulkEditButton: Locator;
|
|
1781
|
+
/**
|
|
1782
|
+
* Bulk edit modal
|
|
1783
|
+
*/
|
|
1784
|
+
readonly bulkEditModal: Locator;
|
|
1785
|
+
readonly startBulkEditButton: Locator;
|
|
1786
|
+
constructor(page: Page);
|
|
1787
|
+
/**
|
|
1788
|
+
* Returns the url to the listing page.
|
|
1789
|
+
*
|
|
1790
|
+
* @param searchTerms - Includes search terms for filtering of the product list.
|
|
1791
|
+
*/
|
|
1792
|
+
url(searchTerms?: string[]): string;
|
|
1793
|
+
/**
|
|
1794
|
+
* Returns the table row containing the product with the given product number.
|
|
1795
|
+
*
|
|
1796
|
+
* @param productNumber - Product number you are looking for.
|
|
1797
|
+
*/
|
|
1798
|
+
getProductRow(productNumber: string): Promise<Record<string, Locator>>;
|
|
1799
|
+
}
|
|
1800
|
+
|
|
1801
|
+
declare class ProductBulkEdit implements PageObject {
|
|
1802
|
+
readonly page: Page;
|
|
1803
|
+
/**
|
|
1804
|
+
* Bulk edit values
|
|
1805
|
+
*/
|
|
1806
|
+
readonly changeManufacturerRow: Locator;
|
|
1807
|
+
readonly changeManufacturerCheckbox: Locator;
|
|
1808
|
+
readonly manufacturerDropdown: Locator;
|
|
1809
|
+
readonly manufacturerDropdownInput: Locator;
|
|
1810
|
+
readonly manufacturerListResult: Locator;
|
|
1811
|
+
readonly changeActiveRow: Locator;
|
|
1812
|
+
readonly changeActiveCheckbox: Locator;
|
|
1813
|
+
readonly activeToggle: Locator;
|
|
1814
|
+
readonly changePriceRow: Locator;
|
|
1815
|
+
readonly changePriceCheckbox: Locator;
|
|
1816
|
+
readonly grossPriceInput: Locator;
|
|
1817
|
+
readonly changeReleaseDateRow: Locator;
|
|
1818
|
+
readonly changeReleaseDateCheckbox: Locator;
|
|
1819
|
+
readonly releaseDateInput: Locator;
|
|
1820
|
+
readonly changeStockRow: Locator;
|
|
1821
|
+
readonly changeStockCheckbox: Locator;
|
|
1822
|
+
readonly stockChangeMethodDropdown: Locator;
|
|
1823
|
+
readonly stockChangeMethodInput: Locator;
|
|
1824
|
+
readonly stockInput: Locator;
|
|
1825
|
+
readonly changeRestockTimeRow: Locator;
|
|
1826
|
+
readonly changeRestockTimeCheckbox: Locator;
|
|
1827
|
+
readonly restockTimeChangeMethodDropdown: Locator;
|
|
1828
|
+
readonly restockTimeChangeMethodInput: Locator;
|
|
1829
|
+
readonly restockTimeInput: Locator;
|
|
1830
|
+
readonly changeTagsRow: Locator;
|
|
1831
|
+
readonly changeTagsCheckbox: Locator;
|
|
1832
|
+
readonly tagsChangeMethodDropdown: Locator;
|
|
1833
|
+
readonly tagsChangeMethodInput: Locator;
|
|
1834
|
+
readonly tagsInput: Locator;
|
|
1835
|
+
readonly changeSalesChannelRow: Locator;
|
|
1836
|
+
readonly changeSalesChannelCheckbox: Locator;
|
|
1837
|
+
readonly salesChannelChangeMethodDropdown: Locator;
|
|
1838
|
+
readonly salesChannelChangeMethodInput: Locator;
|
|
1839
|
+
readonly salesChannelInput: Locator;
|
|
1840
|
+
readonly applyChangesButton: Locator;
|
|
1841
|
+
/**
|
|
1842
|
+
* Confirmation modal
|
|
1843
|
+
*/
|
|
1844
|
+
readonly confirmModal: Locator;
|
|
1845
|
+
readonly confirmModalApplyChangesButton: Locator;
|
|
1846
|
+
readonly confirmModalLoadingSpinner: Locator;
|
|
1847
|
+
readonly confirmModalSuccessHeader: Locator;
|
|
1848
|
+
readonly confirmModalSuccessCloseButton: Locator;
|
|
1849
|
+
constructor(page: Page);
|
|
1850
|
+
url(): string;
|
|
1851
|
+
getDropdownEntry(entry: string): Promise<Locator>;
|
|
1852
|
+
}
|
|
1853
|
+
|
|
1714
1854
|
interface AdministrationPageTypes {
|
|
1715
1855
|
AdminProductDetail: ProductDetail;
|
|
1716
1856
|
AdminOrderDetail: OrderDetail;
|
|
@@ -1738,6 +1878,8 @@ interface AdministrationPageTypes {
|
|
|
1738
1878
|
AdminManufacturerCreate: ManufacturerCreate;
|
|
1739
1879
|
AdminManufacturerListing: ManufacturerListing;
|
|
1740
1880
|
AdminManufacturerDetail: ManufacturerDetail;
|
|
1881
|
+
AdminProductListing: ProductListing;
|
|
1882
|
+
AdminProductBulkEdit: ProductBulkEdit;
|
|
1741
1883
|
}
|
|
1742
1884
|
declare const AdminPageObjects: {
|
|
1743
1885
|
ProductDetail: typeof ProductDetail;
|
|
@@ -1766,6 +1908,8 @@ declare const AdminPageObjects: {
|
|
|
1766
1908
|
ManufacturerCreate: typeof ManufacturerCreate;
|
|
1767
1909
|
ManufacturerDetail: typeof ManufacturerDetail;
|
|
1768
1910
|
ManufacturerListing: typeof ManufacturerListing;
|
|
1911
|
+
ProductListing: typeof ProductListing;
|
|
1912
|
+
ProductBulkEdit: typeof ProductBulkEdit;
|
|
1769
1913
|
};
|
|
1770
1914
|
|
|
1771
1915
|
interface DataFixtureTypes {
|
|
@@ -1858,6 +2002,8 @@ declare const test: _playwright_test.TestType<_playwright_test.PlaywrightTestArg
|
|
|
1858
2002
|
CreateLinkTypeCategory: Task;
|
|
1859
2003
|
} & {
|
|
1860
2004
|
SetSystemConfigValues: Task;
|
|
2005
|
+
} & {
|
|
2006
|
+
BulkEditProducts: Task;
|
|
1861
2007
|
} & {
|
|
1862
2008
|
Login: Task;
|
|
1863
2009
|
} & {
|
|
@@ -1898,4 +2044,4 @@ declare const test: _playwright_test.TestType<_playwright_test.PlaywrightTestArg
|
|
|
1898
2044
|
ValidateAccessibility: (pageName: string, assertViolations?: number | boolean | undefined, createReport?: boolean | undefined, ruleTags?: string[] | undefined, outputDir?: string | undefined) => () => Promise<axe_core.Result[]>;
|
|
1899
2045
|
}, _playwright_test.PlaywrightWorkerArgs & _playwright_test.PlaywrightWorkerOptions & FixtureTypes>;
|
|
1900
2046
|
|
|
1901
|
-
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 CustomerGroup, 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 RegistrationData, type Rule, type SalesChannel, type Salutation, type ShippingMethod, type SimpleLineItem, type StateMachine, type StateMachineState, StorefrontPageObjects, type SyncApiOperation, type SystemConfig, 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 };
|
|
2047
|
+
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 CustomerGroup, 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 RegistrationData, type Rule, type SalesChannel, type SalesChannelAnalytics, type SalesChannelRecord, type Salutation, type ShippingMethod, type SimpleLineItem, type StateMachine, type StateMachineState, StorefrontPageObjects, type SyncApiOperation, type SystemConfig, 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
|
@@ -212,7 +212,7 @@ interface ProductPrice {
|
|
|
212
212
|
quantityStart: number;
|
|
213
213
|
quantityEnd: number | null;
|
|
214
214
|
}
|
|
215
|
-
type Product = Omit<components['schemas']['Product'], 'price' | 'prices' | 'options'> & {
|
|
215
|
+
type Product = Omit<components['schemas']['Product'], 'price' | 'prices' | 'options' | 'tags' | 'visibilities'> & {
|
|
216
216
|
id: string;
|
|
217
217
|
price: Price[];
|
|
218
218
|
prices?: ProductPrice[];
|
|
@@ -220,6 +220,8 @@ type Product = Omit<components['schemas']['Product'], 'price' | 'prices' | 'opti
|
|
|
220
220
|
name: string;
|
|
221
221
|
};
|
|
222
222
|
options?: Record<string, string>[];
|
|
223
|
+
tags?: Record<string, string>[];
|
|
224
|
+
visibilities?: Record<string, unknown>[];
|
|
223
225
|
};
|
|
224
226
|
type OrderDelivery = Omit<components['schemas']['OrderDelivery'], 'shippingOrderAddress' | 'shippingCosts'> & {
|
|
225
227
|
id: string;
|
|
@@ -328,6 +330,9 @@ type CmsPage = components['schemas']['CmsPage'] & {
|
|
|
328
330
|
type CustomerGroup = components['schemas']['CustomerGroup'] & {
|
|
329
331
|
id: string;
|
|
330
332
|
};
|
|
333
|
+
type SalesChannelAnalytics = components['schemas']['SalesChannelAnalytics'] & {
|
|
334
|
+
id: string;
|
|
335
|
+
};
|
|
331
336
|
interface RegistrationData {
|
|
332
337
|
salutation: string;
|
|
333
338
|
firstName: string;
|
|
@@ -343,6 +348,10 @@ interface RegistrationData {
|
|
|
343
348
|
vatRegNo: string;
|
|
344
349
|
}
|
|
345
350
|
|
|
351
|
+
interface SalesChannelRecord {
|
|
352
|
+
salesChannelId: string;
|
|
353
|
+
field: string;
|
|
354
|
+
}
|
|
346
355
|
interface CreatedRecord {
|
|
347
356
|
resource: string;
|
|
348
357
|
payload: Record<string, string>;
|
|
@@ -401,6 +410,12 @@ declare class TestDataService {
|
|
|
401
410
|
* @private
|
|
402
411
|
*/
|
|
403
412
|
private createdRecords;
|
|
413
|
+
/**
|
|
414
|
+
* A registry of all created sales channel records.
|
|
415
|
+
*
|
|
416
|
+
* @private
|
|
417
|
+
*/
|
|
418
|
+
private createdSalesChannelRecords;
|
|
404
419
|
constructor(AdminApiClient: AdminApiContext, IdProvider: IdProvider, options: DataServiceOptions);
|
|
405
420
|
/**
|
|
406
421
|
* Creates a basic product without images or other special configuration.
|
|
@@ -590,6 +605,12 @@ declare class TestDataService {
|
|
|
590
605
|
* @param salesChannelId - Unique identity of sales channel.
|
|
591
606
|
*/
|
|
592
607
|
createSystemConfigEntry(configurationKey: string, configurationValue?: {}, salesChannelId?: string): Promise<SystemConfig>;
|
|
608
|
+
/**
|
|
609
|
+
* Creates a random sales channel analytics entity
|
|
610
|
+
*
|
|
611
|
+
* @param overrides - Specific data overrides that will be applied to the sales channel analytics data struct.
|
|
612
|
+
*/
|
|
613
|
+
createSalesChannelAnalytics(overrides?: Partial<SalesChannelAnalytics>): Promise<SalesChannelAnalytics>;
|
|
593
614
|
/**
|
|
594
615
|
* Assigns a media resource as the download of a digital product.
|
|
595
616
|
*
|
|
@@ -656,6 +677,13 @@ declare class TestDataService {
|
|
|
656
677
|
* @param currencyId - The uuid of the currency.
|
|
657
678
|
*/
|
|
658
679
|
assignSalesChannelCurrency(salesChannelId: string, currencyId: string): Promise<any>;
|
|
680
|
+
/**
|
|
681
|
+
* Assigns a sales channel analytics entity to a sales channel.
|
|
682
|
+
*
|
|
683
|
+
* @param salesChannelId - The uuid of the sales channel.
|
|
684
|
+
* @param salesChannelAnalyticsId - The uuid of the sales channel analytics entity.
|
|
685
|
+
*/
|
|
686
|
+
assignSalesChannelAnalytics(salesChannelId: string, salesChannelAnalyticsId: string): Promise<SalesChannel>;
|
|
659
687
|
/**
|
|
660
688
|
* Assigns a country to a sales channel.
|
|
661
689
|
*
|
|
@@ -756,6 +784,14 @@ declare class TestDataService {
|
|
|
756
784
|
* @param payload - You can pass a payload object for the delete operation or simply pass the uuid of the entity.
|
|
757
785
|
*/
|
|
758
786
|
addCreatedRecord(resource: string, payload: string | Record<string, string>): void;
|
|
787
|
+
/**
|
|
788
|
+
* Adds a sales channel related property to the registry of created sales channel records.
|
|
789
|
+
* The property added to the registry will be overridden with null value by the cleanup call.
|
|
790
|
+
*
|
|
791
|
+
* @param salesChannelId - The sales channel id where the property pair is located
|
|
792
|
+
* @param field - The database field which has to be overridden
|
|
793
|
+
*/
|
|
794
|
+
addCreatedSalesChannelRecord(salesChannelId: string, field: string): void;
|
|
759
795
|
/**
|
|
760
796
|
* Set the configuration of automated data clean up.
|
|
761
797
|
* If set to "true" the data service will delete all entities created by it.
|
|
@@ -892,6 +928,7 @@ declare class TestDataService {
|
|
|
892
928
|
getBasicPromotionStruct(salesChannelId?: string, overrides?: Partial<Promotion>): Partial<Promotion>;
|
|
893
929
|
getBasicCmsStruct(cmsType: string, overrides: Partial<CmsPage>): Partial<CmsPage>;
|
|
894
930
|
getBasicCustomerGroupStruct(overrides?: Partial<CustomerGroup>): Partial<CustomerGroup>;
|
|
931
|
+
getSalesChannelAnalyticsStruct(overrides?: Partial<SalesChannelAnalytics>): Partial<SalesChannelAnalytics>;
|
|
895
932
|
clearCaches(): Promise<void>;
|
|
896
933
|
}
|
|
897
934
|
|
|
@@ -1263,6 +1300,29 @@ declare class ProductDetail implements PageObject {
|
|
|
1263
1300
|
readonly savePhysicalProductButton: Locator;
|
|
1264
1301
|
readonly saveButtonLoadingSpinner: Locator;
|
|
1265
1302
|
readonly saveButtonCheckMark: Locator;
|
|
1303
|
+
/**
|
|
1304
|
+
* General Info
|
|
1305
|
+
*/
|
|
1306
|
+
readonly manufacturerDropdownText: Locator;
|
|
1307
|
+
/**
|
|
1308
|
+
* Prices
|
|
1309
|
+
*/
|
|
1310
|
+
readonly priceGrossInput: Locator;
|
|
1311
|
+
/**
|
|
1312
|
+
* Deliverability
|
|
1313
|
+
*/
|
|
1314
|
+
readonly stockInput: Locator;
|
|
1315
|
+
readonly restockTimeInput: Locator;
|
|
1316
|
+
/**
|
|
1317
|
+
* Visibility
|
|
1318
|
+
*/
|
|
1319
|
+
readonly activeForAllSalesChannelsToggle: Locator;
|
|
1320
|
+
readonly tagsInput: Locator;
|
|
1321
|
+
readonly saleChannelsInput: Locator;
|
|
1322
|
+
/**
|
|
1323
|
+
* Labelling
|
|
1324
|
+
*/
|
|
1325
|
+
readonly releaseDateInput: Locator;
|
|
1266
1326
|
/**
|
|
1267
1327
|
* Media Upload interactions
|
|
1268
1328
|
*/
|
|
@@ -1711,6 +1771,86 @@ declare class ManufacturerDetail extends ManufacturerCreate {
|
|
|
1711
1771
|
url(manufacturerUuid?: string): string;
|
|
1712
1772
|
}
|
|
1713
1773
|
|
|
1774
|
+
declare class ProductListing implements PageObject {
|
|
1775
|
+
readonly page: Page;
|
|
1776
|
+
/**
|
|
1777
|
+
* Multi selection
|
|
1778
|
+
*/
|
|
1779
|
+
readonly productsTable: Locator;
|
|
1780
|
+
readonly bulkEditButton: Locator;
|
|
1781
|
+
/**
|
|
1782
|
+
* Bulk edit modal
|
|
1783
|
+
*/
|
|
1784
|
+
readonly bulkEditModal: Locator;
|
|
1785
|
+
readonly startBulkEditButton: Locator;
|
|
1786
|
+
constructor(page: Page);
|
|
1787
|
+
/**
|
|
1788
|
+
* Returns the url to the listing page.
|
|
1789
|
+
*
|
|
1790
|
+
* @param searchTerms - Includes search terms for filtering of the product list.
|
|
1791
|
+
*/
|
|
1792
|
+
url(searchTerms?: string[]): string;
|
|
1793
|
+
/**
|
|
1794
|
+
* Returns the table row containing the product with the given product number.
|
|
1795
|
+
*
|
|
1796
|
+
* @param productNumber - Product number you are looking for.
|
|
1797
|
+
*/
|
|
1798
|
+
getProductRow(productNumber: string): Promise<Record<string, Locator>>;
|
|
1799
|
+
}
|
|
1800
|
+
|
|
1801
|
+
declare class ProductBulkEdit implements PageObject {
|
|
1802
|
+
readonly page: Page;
|
|
1803
|
+
/**
|
|
1804
|
+
* Bulk edit values
|
|
1805
|
+
*/
|
|
1806
|
+
readonly changeManufacturerRow: Locator;
|
|
1807
|
+
readonly changeManufacturerCheckbox: Locator;
|
|
1808
|
+
readonly manufacturerDropdown: Locator;
|
|
1809
|
+
readonly manufacturerDropdownInput: Locator;
|
|
1810
|
+
readonly manufacturerListResult: Locator;
|
|
1811
|
+
readonly changeActiveRow: Locator;
|
|
1812
|
+
readonly changeActiveCheckbox: Locator;
|
|
1813
|
+
readonly activeToggle: Locator;
|
|
1814
|
+
readonly changePriceRow: Locator;
|
|
1815
|
+
readonly changePriceCheckbox: Locator;
|
|
1816
|
+
readonly grossPriceInput: Locator;
|
|
1817
|
+
readonly changeReleaseDateRow: Locator;
|
|
1818
|
+
readonly changeReleaseDateCheckbox: Locator;
|
|
1819
|
+
readonly releaseDateInput: Locator;
|
|
1820
|
+
readonly changeStockRow: Locator;
|
|
1821
|
+
readonly changeStockCheckbox: Locator;
|
|
1822
|
+
readonly stockChangeMethodDropdown: Locator;
|
|
1823
|
+
readonly stockChangeMethodInput: Locator;
|
|
1824
|
+
readonly stockInput: Locator;
|
|
1825
|
+
readonly changeRestockTimeRow: Locator;
|
|
1826
|
+
readonly changeRestockTimeCheckbox: Locator;
|
|
1827
|
+
readonly restockTimeChangeMethodDropdown: Locator;
|
|
1828
|
+
readonly restockTimeChangeMethodInput: Locator;
|
|
1829
|
+
readonly restockTimeInput: Locator;
|
|
1830
|
+
readonly changeTagsRow: Locator;
|
|
1831
|
+
readonly changeTagsCheckbox: Locator;
|
|
1832
|
+
readonly tagsChangeMethodDropdown: Locator;
|
|
1833
|
+
readonly tagsChangeMethodInput: Locator;
|
|
1834
|
+
readonly tagsInput: Locator;
|
|
1835
|
+
readonly changeSalesChannelRow: Locator;
|
|
1836
|
+
readonly changeSalesChannelCheckbox: Locator;
|
|
1837
|
+
readonly salesChannelChangeMethodDropdown: Locator;
|
|
1838
|
+
readonly salesChannelChangeMethodInput: Locator;
|
|
1839
|
+
readonly salesChannelInput: Locator;
|
|
1840
|
+
readonly applyChangesButton: Locator;
|
|
1841
|
+
/**
|
|
1842
|
+
* Confirmation modal
|
|
1843
|
+
*/
|
|
1844
|
+
readonly confirmModal: Locator;
|
|
1845
|
+
readonly confirmModalApplyChangesButton: Locator;
|
|
1846
|
+
readonly confirmModalLoadingSpinner: Locator;
|
|
1847
|
+
readonly confirmModalSuccessHeader: Locator;
|
|
1848
|
+
readonly confirmModalSuccessCloseButton: Locator;
|
|
1849
|
+
constructor(page: Page);
|
|
1850
|
+
url(): string;
|
|
1851
|
+
getDropdownEntry(entry: string): Promise<Locator>;
|
|
1852
|
+
}
|
|
1853
|
+
|
|
1714
1854
|
interface AdministrationPageTypes {
|
|
1715
1855
|
AdminProductDetail: ProductDetail;
|
|
1716
1856
|
AdminOrderDetail: OrderDetail;
|
|
@@ -1738,6 +1878,8 @@ interface AdministrationPageTypes {
|
|
|
1738
1878
|
AdminManufacturerCreate: ManufacturerCreate;
|
|
1739
1879
|
AdminManufacturerListing: ManufacturerListing;
|
|
1740
1880
|
AdminManufacturerDetail: ManufacturerDetail;
|
|
1881
|
+
AdminProductListing: ProductListing;
|
|
1882
|
+
AdminProductBulkEdit: ProductBulkEdit;
|
|
1741
1883
|
}
|
|
1742
1884
|
declare const AdminPageObjects: {
|
|
1743
1885
|
ProductDetail: typeof ProductDetail;
|
|
@@ -1766,6 +1908,8 @@ declare const AdminPageObjects: {
|
|
|
1766
1908
|
ManufacturerCreate: typeof ManufacturerCreate;
|
|
1767
1909
|
ManufacturerDetail: typeof ManufacturerDetail;
|
|
1768
1910
|
ManufacturerListing: typeof ManufacturerListing;
|
|
1911
|
+
ProductListing: typeof ProductListing;
|
|
1912
|
+
ProductBulkEdit: typeof ProductBulkEdit;
|
|
1769
1913
|
};
|
|
1770
1914
|
|
|
1771
1915
|
interface DataFixtureTypes {
|
|
@@ -1858,6 +2002,8 @@ declare const test: _playwright_test.TestType<_playwright_test.PlaywrightTestArg
|
|
|
1858
2002
|
CreateLinkTypeCategory: Task;
|
|
1859
2003
|
} & {
|
|
1860
2004
|
SetSystemConfigValues: Task;
|
|
2005
|
+
} & {
|
|
2006
|
+
BulkEditProducts: Task;
|
|
1861
2007
|
} & {
|
|
1862
2008
|
Login: Task;
|
|
1863
2009
|
} & {
|
|
@@ -1898,4 +2044,4 @@ declare const test: _playwright_test.TestType<_playwright_test.PlaywrightTestArg
|
|
|
1898
2044
|
ValidateAccessibility: (pageName: string, assertViolations?: number | boolean | undefined, createReport?: boolean | undefined, ruleTags?: string[] | undefined, outputDir?: string | undefined) => () => Promise<axe_core.Result[]>;
|
|
1899
2045
|
}, _playwright_test.PlaywrightWorkerArgs & _playwright_test.PlaywrightWorkerOptions & FixtureTypes>;
|
|
1900
2046
|
|
|
1901
|
-
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 CustomerGroup, 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 RegistrationData, type Rule, type SalesChannel, type Salutation, type ShippingMethod, type SimpleLineItem, type StateMachine, type StateMachineState, StorefrontPageObjects, type SyncApiOperation, type SystemConfig, 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 };
|
|
2047
|
+
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 CustomerGroup, 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 RegistrationData, type Rule, type SalesChannel, type SalesChannelAnalytics, type SalesChannelRecord, type Salutation, type ShippingMethod, type SimpleLineItem, type StateMachine, type StateMachineState, StorefrontPageObjects, type SyncApiOperation, type SystemConfig, 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 };
|