@shopware-ag/acceptance-test-suite 8.0.0 → 8.1.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 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;
@@ -956,6 +958,8 @@ declare class Home implements PageObject {
956
958
  readonly consentCookiePermissionContent: Locator;
957
959
  readonly consentDialog: Locator;
958
960
  readonly consentDialogTechnicallyRequiredCheckbox: Locator;
961
+ readonly consentDialogStatisticsCheckbox: Locator;
962
+ readonly consentDialogMarketingdCheckbox: Locator;
959
963
  readonly consentDialogAcceptAllCookiesButton: Locator;
960
964
  readonly consentDialogSaveButton: Locator;
961
965
  readonly consentCookieBannerContainer: Locator;
@@ -1261,6 +1265,29 @@ declare class ProductDetail implements PageObject {
1261
1265
  readonly savePhysicalProductButton: Locator;
1262
1266
  readonly saveButtonLoadingSpinner: Locator;
1263
1267
  readonly saveButtonCheckMark: Locator;
1268
+ /**
1269
+ * General Info
1270
+ */
1271
+ readonly manufacturerDropdownText: Locator;
1272
+ /**
1273
+ * Prices
1274
+ */
1275
+ readonly priceGrossInput: Locator;
1276
+ /**
1277
+ * Deliverability
1278
+ */
1279
+ readonly stockInput: Locator;
1280
+ readonly restockTimeInput: Locator;
1281
+ /**
1282
+ * Visibility
1283
+ */
1284
+ readonly activeForAllSalesChannelsToggle: Locator;
1285
+ readonly tagsInput: Locator;
1286
+ readonly saleChannelsInput: Locator;
1287
+ /**
1288
+ * Labelling
1289
+ */
1290
+ readonly releaseDateInput: Locator;
1264
1291
  /**
1265
1292
  * Media Upload interactions
1266
1293
  */
@@ -1709,6 +1736,86 @@ declare class ManufacturerDetail extends ManufacturerCreate {
1709
1736
  url(manufacturerUuid?: string): string;
1710
1737
  }
1711
1738
 
1739
+ declare class ProductListing implements PageObject {
1740
+ readonly page: Page;
1741
+ /**
1742
+ * Multi selection
1743
+ */
1744
+ readonly productsTable: Locator;
1745
+ readonly bulkEditButton: Locator;
1746
+ /**
1747
+ * Bulk edit modal
1748
+ */
1749
+ readonly bulkEditModal: Locator;
1750
+ readonly startBulkEditButton: Locator;
1751
+ constructor(page: Page);
1752
+ /**
1753
+ * Returns the url to the listing page.
1754
+ *
1755
+ * @param searchTerms - Includes search terms for filtering of the product list.
1756
+ */
1757
+ url(searchTerms?: string[]): string;
1758
+ /**
1759
+ * Returns the table row containing the product with the given product number.
1760
+ *
1761
+ * @param productNumber - Product number you are looking for.
1762
+ */
1763
+ getProductRow(productNumber: string): Promise<Record<string, Locator>>;
1764
+ }
1765
+
1766
+ declare class ProductBulkEdit implements PageObject {
1767
+ readonly page: Page;
1768
+ /**
1769
+ * Bulk edit values
1770
+ */
1771
+ readonly changeManufacturerRow: Locator;
1772
+ readonly changeManufacturerCheckbox: Locator;
1773
+ readonly manufacturerDropdown: Locator;
1774
+ readonly manufacturerDropdownInput: Locator;
1775
+ readonly manufacturerListResult: Locator;
1776
+ readonly changeActiveRow: Locator;
1777
+ readonly changeActiveCheckbox: Locator;
1778
+ readonly activeToggle: Locator;
1779
+ readonly changePriceRow: Locator;
1780
+ readonly changePriceCheckbox: Locator;
1781
+ readonly grossPriceInput: Locator;
1782
+ readonly changeReleaseDateRow: Locator;
1783
+ readonly changeReleaseDateCheckbox: Locator;
1784
+ readonly releaseDateInput: Locator;
1785
+ readonly changeStockRow: Locator;
1786
+ readonly changeStockCheckbox: Locator;
1787
+ readonly stockChangeMethodDropdown: Locator;
1788
+ readonly stockChangeMethodInput: Locator;
1789
+ readonly stockInput: Locator;
1790
+ readonly changeRestockTimeRow: Locator;
1791
+ readonly changeRestockTimeCheckbox: Locator;
1792
+ readonly restockTimeChangeMethodDropdown: Locator;
1793
+ readonly restockTimeChangeMethodInput: Locator;
1794
+ readonly restockTimeInput: Locator;
1795
+ readonly changeTagsRow: Locator;
1796
+ readonly changeTagsCheckbox: Locator;
1797
+ readonly tagsChangeMethodDropdown: Locator;
1798
+ readonly tagsChangeMethodInput: Locator;
1799
+ readonly tagsInput: Locator;
1800
+ readonly changeSalesChannelRow: Locator;
1801
+ readonly changeSalesChannelCheckbox: Locator;
1802
+ readonly salesChannelChangeMethodDropdown: Locator;
1803
+ readonly salesChannelChangeMethodInput: Locator;
1804
+ readonly salesChannelInput: Locator;
1805
+ readonly applyChangesButton: Locator;
1806
+ /**
1807
+ * Confirmation modal
1808
+ */
1809
+ readonly confirmModal: Locator;
1810
+ readonly confirmModalApplyChangesButton: Locator;
1811
+ readonly confirmModalLoadingSpinner: Locator;
1812
+ readonly confirmModalSuccessHeader: Locator;
1813
+ readonly confirmModalSuccessCloseButton: Locator;
1814
+ constructor(page: Page);
1815
+ url(): string;
1816
+ getDropdownEntry(entry: string): Promise<Locator>;
1817
+ }
1818
+
1712
1819
  interface AdministrationPageTypes {
1713
1820
  AdminProductDetail: ProductDetail;
1714
1821
  AdminOrderDetail: OrderDetail;
@@ -1736,6 +1843,8 @@ interface AdministrationPageTypes {
1736
1843
  AdminManufacturerCreate: ManufacturerCreate;
1737
1844
  AdminManufacturerListing: ManufacturerListing;
1738
1845
  AdminManufacturerDetail: ManufacturerDetail;
1846
+ AdminProductListing: ProductListing;
1847
+ AdminProductBulkEdit: ProductBulkEdit;
1739
1848
  }
1740
1849
  declare const AdminPageObjects: {
1741
1850
  ProductDetail: typeof ProductDetail;
@@ -1764,6 +1873,8 @@ declare const AdminPageObjects: {
1764
1873
  ManufacturerCreate: typeof ManufacturerCreate;
1765
1874
  ManufacturerDetail: typeof ManufacturerDetail;
1766
1875
  ManufacturerListing: typeof ManufacturerListing;
1876
+ ProductListing: typeof ProductListing;
1877
+ ProductBulkEdit: typeof ProductBulkEdit;
1767
1878
  };
1768
1879
 
1769
1880
  interface DataFixtureTypes {
@@ -1856,6 +1967,8 @@ declare const test: _playwright_test.TestType<_playwright_test.PlaywrightTestArg
1856
1967
  CreateLinkTypeCategory: Task;
1857
1968
  } & {
1858
1969
  SetSystemConfigValues: Task;
1970
+ } & {
1971
+ BulkEditProducts: Task;
1859
1972
  } & {
1860
1973
  Login: Task;
1861
1974
  } & {
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;
@@ -956,6 +958,8 @@ declare class Home implements PageObject {
956
958
  readonly consentCookiePermissionContent: Locator;
957
959
  readonly consentDialog: Locator;
958
960
  readonly consentDialogTechnicallyRequiredCheckbox: Locator;
961
+ readonly consentDialogStatisticsCheckbox: Locator;
962
+ readonly consentDialogMarketingdCheckbox: Locator;
959
963
  readonly consentDialogAcceptAllCookiesButton: Locator;
960
964
  readonly consentDialogSaveButton: Locator;
961
965
  readonly consentCookieBannerContainer: Locator;
@@ -1261,6 +1265,29 @@ declare class ProductDetail implements PageObject {
1261
1265
  readonly savePhysicalProductButton: Locator;
1262
1266
  readonly saveButtonLoadingSpinner: Locator;
1263
1267
  readonly saveButtonCheckMark: Locator;
1268
+ /**
1269
+ * General Info
1270
+ */
1271
+ readonly manufacturerDropdownText: Locator;
1272
+ /**
1273
+ * Prices
1274
+ */
1275
+ readonly priceGrossInput: Locator;
1276
+ /**
1277
+ * Deliverability
1278
+ */
1279
+ readonly stockInput: Locator;
1280
+ readonly restockTimeInput: Locator;
1281
+ /**
1282
+ * Visibility
1283
+ */
1284
+ readonly activeForAllSalesChannelsToggle: Locator;
1285
+ readonly tagsInput: Locator;
1286
+ readonly saleChannelsInput: Locator;
1287
+ /**
1288
+ * Labelling
1289
+ */
1290
+ readonly releaseDateInput: Locator;
1264
1291
  /**
1265
1292
  * Media Upload interactions
1266
1293
  */
@@ -1709,6 +1736,86 @@ declare class ManufacturerDetail extends ManufacturerCreate {
1709
1736
  url(manufacturerUuid?: string): string;
1710
1737
  }
1711
1738
 
1739
+ declare class ProductListing implements PageObject {
1740
+ readonly page: Page;
1741
+ /**
1742
+ * Multi selection
1743
+ */
1744
+ readonly productsTable: Locator;
1745
+ readonly bulkEditButton: Locator;
1746
+ /**
1747
+ * Bulk edit modal
1748
+ */
1749
+ readonly bulkEditModal: Locator;
1750
+ readonly startBulkEditButton: Locator;
1751
+ constructor(page: Page);
1752
+ /**
1753
+ * Returns the url to the listing page.
1754
+ *
1755
+ * @param searchTerms - Includes search terms for filtering of the product list.
1756
+ */
1757
+ url(searchTerms?: string[]): string;
1758
+ /**
1759
+ * Returns the table row containing the product with the given product number.
1760
+ *
1761
+ * @param productNumber - Product number you are looking for.
1762
+ */
1763
+ getProductRow(productNumber: string): Promise<Record<string, Locator>>;
1764
+ }
1765
+
1766
+ declare class ProductBulkEdit implements PageObject {
1767
+ readonly page: Page;
1768
+ /**
1769
+ * Bulk edit values
1770
+ */
1771
+ readonly changeManufacturerRow: Locator;
1772
+ readonly changeManufacturerCheckbox: Locator;
1773
+ readonly manufacturerDropdown: Locator;
1774
+ readonly manufacturerDropdownInput: Locator;
1775
+ readonly manufacturerListResult: Locator;
1776
+ readonly changeActiveRow: Locator;
1777
+ readonly changeActiveCheckbox: Locator;
1778
+ readonly activeToggle: Locator;
1779
+ readonly changePriceRow: Locator;
1780
+ readonly changePriceCheckbox: Locator;
1781
+ readonly grossPriceInput: Locator;
1782
+ readonly changeReleaseDateRow: Locator;
1783
+ readonly changeReleaseDateCheckbox: Locator;
1784
+ readonly releaseDateInput: Locator;
1785
+ readonly changeStockRow: Locator;
1786
+ readonly changeStockCheckbox: Locator;
1787
+ readonly stockChangeMethodDropdown: Locator;
1788
+ readonly stockChangeMethodInput: Locator;
1789
+ readonly stockInput: Locator;
1790
+ readonly changeRestockTimeRow: Locator;
1791
+ readonly changeRestockTimeCheckbox: Locator;
1792
+ readonly restockTimeChangeMethodDropdown: Locator;
1793
+ readonly restockTimeChangeMethodInput: Locator;
1794
+ readonly restockTimeInput: Locator;
1795
+ readonly changeTagsRow: Locator;
1796
+ readonly changeTagsCheckbox: Locator;
1797
+ readonly tagsChangeMethodDropdown: Locator;
1798
+ readonly tagsChangeMethodInput: Locator;
1799
+ readonly tagsInput: Locator;
1800
+ readonly changeSalesChannelRow: Locator;
1801
+ readonly changeSalesChannelCheckbox: Locator;
1802
+ readonly salesChannelChangeMethodDropdown: Locator;
1803
+ readonly salesChannelChangeMethodInput: Locator;
1804
+ readonly salesChannelInput: Locator;
1805
+ readonly applyChangesButton: Locator;
1806
+ /**
1807
+ * Confirmation modal
1808
+ */
1809
+ readonly confirmModal: Locator;
1810
+ readonly confirmModalApplyChangesButton: Locator;
1811
+ readonly confirmModalLoadingSpinner: Locator;
1812
+ readonly confirmModalSuccessHeader: Locator;
1813
+ readonly confirmModalSuccessCloseButton: Locator;
1814
+ constructor(page: Page);
1815
+ url(): string;
1816
+ getDropdownEntry(entry: string): Promise<Locator>;
1817
+ }
1818
+
1712
1819
  interface AdministrationPageTypes {
1713
1820
  AdminProductDetail: ProductDetail;
1714
1821
  AdminOrderDetail: OrderDetail;
@@ -1736,6 +1843,8 @@ interface AdministrationPageTypes {
1736
1843
  AdminManufacturerCreate: ManufacturerCreate;
1737
1844
  AdminManufacturerListing: ManufacturerListing;
1738
1845
  AdminManufacturerDetail: ManufacturerDetail;
1846
+ AdminProductListing: ProductListing;
1847
+ AdminProductBulkEdit: ProductBulkEdit;
1739
1848
  }
1740
1849
  declare const AdminPageObjects: {
1741
1850
  ProductDetail: typeof ProductDetail;
@@ -1764,6 +1873,8 @@ declare const AdminPageObjects: {
1764
1873
  ManufacturerCreate: typeof ManufacturerCreate;
1765
1874
  ManufacturerDetail: typeof ManufacturerDetail;
1766
1875
  ManufacturerListing: typeof ManufacturerListing;
1876
+ ProductListing: typeof ProductListing;
1877
+ ProductBulkEdit: typeof ProductBulkEdit;
1767
1878
  };
1768
1879
 
1769
1880
  interface DataFixtureTypes {
@@ -1856,6 +1967,8 @@ declare const test: _playwright_test.TestType<_playwright_test.PlaywrightTestArg
1856
1967
  CreateLinkTypeCategory: Task;
1857
1968
  } & {
1858
1969
  SetSystemConfigValues: Task;
1970
+ } & {
1971
+ BulkEditProducts: Task;
1859
1972
  } & {
1860
1973
  Login: Task;
1861
1974
  } & {