@shopware-ag/acceptance-test-suite 3.10.0 → 3.11.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
@@ -297,6 +297,9 @@ type PropertyGroupOption = components['schemas']['PropertyGroupOption'] & {
297
297
  type DeliveryTime = components['schemas']['DeliveryTime'] & {
298
298
  id: string;
299
299
  };
300
+ type CmsPage = components['schemas']['CmsPage'] & {
301
+ id: string;
302
+ };
300
303
 
301
304
  interface CreatedRecord {
302
305
  resource: string;
@@ -485,6 +488,13 @@ declare class TestDataService {
485
488
  * @param overrides - Specific data overrides that will be applied to the payment method data struct.
486
489
  */
487
490
  createBasicRule(overrides?: Partial<Rule>): Promise<Rule>;
491
+ /**
492
+ * Creates a new basic page layout.
493
+ *
494
+ * @param cmsPageType - The type of the cms page layout (page/landingpage/product_detail/product_list).
495
+ * @param overrides - Specific data overrides that will be applied to the cms page layout data struct.
496
+ */
497
+ createBasicPageLayout(cmsPageType: string, overrides?: Partial<CmsPage>): Promise<CmsPage>;
488
498
  /**
489
499
  * Creates a payment method with one randomly generated image.
490
500
  *
@@ -772,6 +782,7 @@ declare class TestDataService {
772
782
  };
773
783
  } & Partial<OrderLineItem>;
774
784
  getBasicPromotionStruct(salesChannelId?: string, overrides?: Partial<Promotion>): Partial<Promotion>;
785
+ getBasicCmsStruct(cmsType: string, overrides: Partial<CmsPage>): Partial<CmsPage>;
775
786
  }
776
787
 
777
788
  interface TestDataFixtureTypes {
@@ -1238,6 +1249,87 @@ declare class Dashboard implements PageObject {
1238
1249
  url(): string;
1239
1250
  }
1240
1251
 
1252
+ declare class ShippingListing implements PageObject {
1253
+ readonly page: Page;
1254
+ readonly header: Locator;
1255
+ readonly addShippingMethod: Locator;
1256
+ readonly contextMenu: Locator;
1257
+ readonly editButton: Locator;
1258
+ readonly deleteButton: Locator;
1259
+ readonly modal: Locator;
1260
+ readonly modalHeader: Locator;
1261
+ readonly modalCancelButton: Locator;
1262
+ readonly modalDeleteButton: Locator;
1263
+ constructor(page: Page);
1264
+ url(): string;
1265
+ }
1266
+
1267
+ declare class LandingPageCreate implements PageObject {
1268
+ readonly page: Page;
1269
+ /**
1270
+ * General
1271
+ */
1272
+ readonly nameInput: Locator;
1273
+ readonly landingPageStatus: Locator;
1274
+ readonly salesChannelSelectionList: Locator;
1275
+ readonly filtersResultPopoverItemList: Locator;
1276
+ readonly saveLandingPageButton: Locator;
1277
+ readonly loadingSpinner: Locator;
1278
+ readonly seoUrlInput: Locator;
1279
+ /**
1280
+ * Layout
1281
+ */
1282
+ readonly layoutTab: Locator;
1283
+ readonly assignLayoutButton: Locator;
1284
+ readonly searchLayoutInput: Locator;
1285
+ readonly layoutItems: Locator;
1286
+ readonly layoutSaveButton: Locator;
1287
+ readonly layoutEmptyState: Locator;
1288
+ readonly createNewLayoutButton: Locator;
1289
+ constructor(page: Page);
1290
+ url(): string;
1291
+ }
1292
+
1293
+ declare class LandingPageDetail implements PageObject {
1294
+ readonly page: Page;
1295
+ /**
1296
+ * General
1297
+ */
1298
+ readonly nameInput: Locator;
1299
+ readonly landingPageStatus: Locator;
1300
+ readonly salesChannelSelectionList: Locator;
1301
+ readonly filtersResultPopoverItemList: Locator;
1302
+ readonly saveLandingPageButton: Locator;
1303
+ readonly loadingSpinner: Locator;
1304
+ readonly seoUrlInput: Locator;
1305
+ /**
1306
+ * Layout
1307
+ */
1308
+ readonly layoutTab: Locator;
1309
+ readonly layoutAssignmentCardTitle: Locator;
1310
+ readonly layoutAssignmentCardHeadline: Locator;
1311
+ readonly changeLayoutButton: Locator;
1312
+ readonly editInDesignerButton: Locator;
1313
+ readonly layoutResetButton: Locator;
1314
+ readonly layoutAssignmentStatus: Locator;
1315
+ readonly layoutAssignmentContentSection: Locator;
1316
+ constructor(page: Page);
1317
+ url(landingPageUuid: string): string;
1318
+ }
1319
+
1320
+ declare class Categories implements PageObject {
1321
+ readonly page: Page;
1322
+ /**
1323
+ * Landing pages
1324
+ */
1325
+ readonly landingPageArea: Locator;
1326
+ readonly landingPageHeadline: Locator;
1327
+ readonly addLandingPageButton: Locator;
1328
+ readonly landingPageItems: Locator;
1329
+ constructor(page: Page);
1330
+ url(): string;
1331
+ }
1332
+
1241
1333
  interface AdministrationPageTypes {
1242
1334
  AdminProductDetail: ProductDetail;
1243
1335
  AdminOrderDetail: OrderDetail;
@@ -1248,6 +1340,10 @@ interface AdministrationPageTypes {
1248
1340
  AdminFlowBuilderDetail: FlowBuilderDetail;
1249
1341
  AdminDataSharing: DataSharing;
1250
1342
  AdminDashboard: Dashboard;
1343
+ AdminShippingListing: ShippingListing;
1344
+ AdminCategories: Categories;
1345
+ AdminLandingPageCreate: LandingPageCreate;
1346
+ AdminLandingPageDetail: LandingPageDetail;
1251
1347
  }
1252
1348
  declare const AdminPageObjects: {
1253
1349
  ProductDetail: typeof ProductDetail;
@@ -1259,6 +1355,10 @@ declare const AdminPageObjects: {
1259
1355
  FlowBuilderDetail: typeof FlowBuilderDetail;
1260
1356
  Dashboard: typeof Dashboard;
1261
1357
  DataSharing: typeof DataSharing;
1358
+ ShippingListing: typeof ShippingListing;
1359
+ Categories: typeof Categories;
1360
+ LandingPageCreate: typeof LandingPageCreate;
1361
+ LandingPageDetail: typeof LandingPageDetail;
1262
1362
  };
1263
1363
 
1264
1364
  interface DataFixtureTypes {
@@ -1383,4 +1483,4 @@ declare const test: _playwright_test.TestType<_playwright_test.PlaywrightTestArg
1383
1483
  ValidateAccessibility: (pageName: string, assertViolations?: number | boolean | undefined, createReport?: boolean | undefined, ruleTags?: string[] | undefined, outputDir?: string | undefined) => () => Promise<axe_core.Result[]>;
1384
1484
  }, _playwright_test.PlaywrightWorkerArgs & _playwright_test.PlaywrightWorkerOptions & FixtureTypes>;
1385
1485
 
1386
- export { AdminPageObjects, type CalculatedTaxes, type Category$1 as Category, 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 };
1486
+ 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 };
package/dist/index.d.ts CHANGED
@@ -297,6 +297,9 @@ type PropertyGroupOption = components['schemas']['PropertyGroupOption'] & {
297
297
  type DeliveryTime = components['schemas']['DeliveryTime'] & {
298
298
  id: string;
299
299
  };
300
+ type CmsPage = components['schemas']['CmsPage'] & {
301
+ id: string;
302
+ };
300
303
 
301
304
  interface CreatedRecord {
302
305
  resource: string;
@@ -485,6 +488,13 @@ declare class TestDataService {
485
488
  * @param overrides - Specific data overrides that will be applied to the payment method data struct.
486
489
  */
487
490
  createBasicRule(overrides?: Partial<Rule>): Promise<Rule>;
491
+ /**
492
+ * Creates a new basic page layout.
493
+ *
494
+ * @param cmsPageType - The type of the cms page layout (page/landingpage/product_detail/product_list).
495
+ * @param overrides - Specific data overrides that will be applied to the cms page layout data struct.
496
+ */
497
+ createBasicPageLayout(cmsPageType: string, overrides?: Partial<CmsPage>): Promise<CmsPage>;
488
498
  /**
489
499
  * Creates a payment method with one randomly generated image.
490
500
  *
@@ -772,6 +782,7 @@ declare class TestDataService {
772
782
  };
773
783
  } & Partial<OrderLineItem>;
774
784
  getBasicPromotionStruct(salesChannelId?: string, overrides?: Partial<Promotion>): Partial<Promotion>;
785
+ getBasicCmsStruct(cmsType: string, overrides: Partial<CmsPage>): Partial<CmsPage>;
775
786
  }
776
787
 
777
788
  interface TestDataFixtureTypes {
@@ -1238,6 +1249,87 @@ declare class Dashboard implements PageObject {
1238
1249
  url(): string;
1239
1250
  }
1240
1251
 
1252
+ declare class ShippingListing implements PageObject {
1253
+ readonly page: Page;
1254
+ readonly header: Locator;
1255
+ readonly addShippingMethod: Locator;
1256
+ readonly contextMenu: Locator;
1257
+ readonly editButton: Locator;
1258
+ readonly deleteButton: Locator;
1259
+ readonly modal: Locator;
1260
+ readonly modalHeader: Locator;
1261
+ readonly modalCancelButton: Locator;
1262
+ readonly modalDeleteButton: Locator;
1263
+ constructor(page: Page);
1264
+ url(): string;
1265
+ }
1266
+
1267
+ declare class LandingPageCreate implements PageObject {
1268
+ readonly page: Page;
1269
+ /**
1270
+ * General
1271
+ */
1272
+ readonly nameInput: Locator;
1273
+ readonly landingPageStatus: Locator;
1274
+ readonly salesChannelSelectionList: Locator;
1275
+ readonly filtersResultPopoverItemList: Locator;
1276
+ readonly saveLandingPageButton: Locator;
1277
+ readonly loadingSpinner: Locator;
1278
+ readonly seoUrlInput: Locator;
1279
+ /**
1280
+ * Layout
1281
+ */
1282
+ readonly layoutTab: Locator;
1283
+ readonly assignLayoutButton: Locator;
1284
+ readonly searchLayoutInput: Locator;
1285
+ readonly layoutItems: Locator;
1286
+ readonly layoutSaveButton: Locator;
1287
+ readonly layoutEmptyState: Locator;
1288
+ readonly createNewLayoutButton: Locator;
1289
+ constructor(page: Page);
1290
+ url(): string;
1291
+ }
1292
+
1293
+ declare class LandingPageDetail implements PageObject {
1294
+ readonly page: Page;
1295
+ /**
1296
+ * General
1297
+ */
1298
+ readonly nameInput: Locator;
1299
+ readonly landingPageStatus: Locator;
1300
+ readonly salesChannelSelectionList: Locator;
1301
+ readonly filtersResultPopoverItemList: Locator;
1302
+ readonly saveLandingPageButton: Locator;
1303
+ readonly loadingSpinner: Locator;
1304
+ readonly seoUrlInput: Locator;
1305
+ /**
1306
+ * Layout
1307
+ */
1308
+ readonly layoutTab: Locator;
1309
+ readonly layoutAssignmentCardTitle: Locator;
1310
+ readonly layoutAssignmentCardHeadline: Locator;
1311
+ readonly changeLayoutButton: Locator;
1312
+ readonly editInDesignerButton: Locator;
1313
+ readonly layoutResetButton: Locator;
1314
+ readonly layoutAssignmentStatus: Locator;
1315
+ readonly layoutAssignmentContentSection: Locator;
1316
+ constructor(page: Page);
1317
+ url(landingPageUuid: string): string;
1318
+ }
1319
+
1320
+ declare class Categories implements PageObject {
1321
+ readonly page: Page;
1322
+ /**
1323
+ * Landing pages
1324
+ */
1325
+ readonly landingPageArea: Locator;
1326
+ readonly landingPageHeadline: Locator;
1327
+ readonly addLandingPageButton: Locator;
1328
+ readonly landingPageItems: Locator;
1329
+ constructor(page: Page);
1330
+ url(): string;
1331
+ }
1332
+
1241
1333
  interface AdministrationPageTypes {
1242
1334
  AdminProductDetail: ProductDetail;
1243
1335
  AdminOrderDetail: OrderDetail;
@@ -1248,6 +1340,10 @@ interface AdministrationPageTypes {
1248
1340
  AdminFlowBuilderDetail: FlowBuilderDetail;
1249
1341
  AdminDataSharing: DataSharing;
1250
1342
  AdminDashboard: Dashboard;
1343
+ AdminShippingListing: ShippingListing;
1344
+ AdminCategories: Categories;
1345
+ AdminLandingPageCreate: LandingPageCreate;
1346
+ AdminLandingPageDetail: LandingPageDetail;
1251
1347
  }
1252
1348
  declare const AdminPageObjects: {
1253
1349
  ProductDetail: typeof ProductDetail;
@@ -1259,6 +1355,10 @@ declare const AdminPageObjects: {
1259
1355
  FlowBuilderDetail: typeof FlowBuilderDetail;
1260
1356
  Dashboard: typeof Dashboard;
1261
1357
  DataSharing: typeof DataSharing;
1358
+ ShippingListing: typeof ShippingListing;
1359
+ Categories: typeof Categories;
1360
+ LandingPageCreate: typeof LandingPageCreate;
1361
+ LandingPageDetail: typeof LandingPageDetail;
1262
1362
  };
1263
1363
 
1264
1364
  interface DataFixtureTypes {
@@ -1383,4 +1483,4 @@ declare const test: _playwright_test.TestType<_playwright_test.PlaywrightTestArg
1383
1483
  ValidateAccessibility: (pageName: string, assertViolations?: number | boolean | undefined, createReport?: boolean | undefined, ruleTags?: string[] | undefined, outputDir?: string | undefined) => () => Promise<axe_core.Result[]>;
1384
1484
  }, _playwright_test.PlaywrightWorkerArgs & _playwright_test.PlaywrightWorkerOptions & FixtureTypes>;
1385
1485
 
1386
- export { AdminPageObjects, type CalculatedTaxes, type Category$1 as Category, 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 };
1486
+ 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 };