@shopware-ag/acceptance-test-suite 3.9.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 {
@@ -1191,12 +1202,17 @@ declare class FlowBuilderListing implements PageObject {
1191
1202
  readonly firstFlowContextButton: Locator;
1192
1203
  readonly flowContextMenu: Locator;
1193
1204
  readonly contextMenuDownload: Locator;
1205
+ readonly contextMenuDuplicate: Locator;
1206
+ readonly contextMenuEdit: Locator;
1207
+ readonly contextMenuDelete: Locator;
1194
1208
  readonly flowDownloadModal: Locator;
1195
1209
  readonly downloadFlowButton: Locator;
1210
+ readonly flowDeleteButton: Locator;
1196
1211
  readonly successAlert: Locator;
1197
1212
  readonly successAlertMessage: Locator;
1198
1213
  constructor(page: Page);
1199
1214
  url(): string;
1215
+ getLineItemByFlowName(flowName: string): Promise<Record<string, Locator>>;
1200
1216
  }
1201
1217
 
1202
1218
  declare class FlowBuilderDetail implements PageObject {
@@ -1233,6 +1249,87 @@ declare class Dashboard implements PageObject {
1233
1249
  url(): string;
1234
1250
  }
1235
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
+
1236
1333
  interface AdministrationPageTypes {
1237
1334
  AdminProductDetail: ProductDetail;
1238
1335
  AdminOrderDetail: OrderDetail;
@@ -1243,6 +1340,10 @@ interface AdministrationPageTypes {
1243
1340
  AdminFlowBuilderDetail: FlowBuilderDetail;
1244
1341
  AdminDataSharing: DataSharing;
1245
1342
  AdminDashboard: Dashboard;
1343
+ AdminShippingListing: ShippingListing;
1344
+ AdminCategories: Categories;
1345
+ AdminLandingPageCreate: LandingPageCreate;
1346
+ AdminLandingPageDetail: LandingPageDetail;
1246
1347
  }
1247
1348
  declare const AdminPageObjects: {
1248
1349
  ProductDetail: typeof ProductDetail;
@@ -1254,6 +1355,10 @@ declare const AdminPageObjects: {
1254
1355
  FlowBuilderDetail: typeof FlowBuilderDetail;
1255
1356
  Dashboard: typeof Dashboard;
1256
1357
  DataSharing: typeof DataSharing;
1358
+ ShippingListing: typeof ShippingListing;
1359
+ Categories: typeof Categories;
1360
+ LandingPageCreate: typeof LandingPageCreate;
1361
+ LandingPageDetail: typeof LandingPageDetail;
1257
1362
  };
1258
1363
 
1259
1364
  interface DataFixtureTypes {
@@ -1310,6 +1415,10 @@ type Currency = components['schemas']['Currency'] & {
1310
1415
  declare const getCurrency: (isoCode: string, adminApiContext: AdminApiContext) => Promise<Currency>;
1311
1416
  declare const getTaxId: (adminApiContext: AdminApiContext) => Promise<string>;
1312
1417
  declare const getPaymentMethodId: (adminApiContext: AdminApiContext, handlerId?: string) => Promise<string>;
1418
+ /**
1419
+ * Gives the default shipping method back called Standard
1420
+ * @param adminApiContext - An AdminApiContext entity
1421
+ */
1313
1422
  declare const getDefaultShippingMethodId: (adminApiContext: AdminApiContext) => Promise<string>;
1314
1423
  declare const getCountryId: (iso2: string, adminApiContext: AdminApiContext) => Promise<string>;
1315
1424
  declare const getThemeId: (technicalName: string, adminApiContext: AdminApiContext) => Promise<string>;
@@ -1374,4 +1483,4 @@ declare const test: _playwright_test.TestType<_playwright_test.PlaywrightTestArg
1374
1483
  ValidateAccessibility: (pageName: string, assertViolations?: number | boolean | undefined, createReport?: boolean | undefined, ruleTags?: string[] | undefined, outputDir?: string | undefined) => () => Promise<axe_core.Result[]>;
1375
1484
  }, _playwright_test.PlaywrightWorkerArgs & _playwright_test.PlaywrightWorkerOptions & FixtureTypes>;
1376
1485
 
1377
- 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 {
@@ -1191,12 +1202,17 @@ declare class FlowBuilderListing implements PageObject {
1191
1202
  readonly firstFlowContextButton: Locator;
1192
1203
  readonly flowContextMenu: Locator;
1193
1204
  readonly contextMenuDownload: Locator;
1205
+ readonly contextMenuDuplicate: Locator;
1206
+ readonly contextMenuEdit: Locator;
1207
+ readonly contextMenuDelete: Locator;
1194
1208
  readonly flowDownloadModal: Locator;
1195
1209
  readonly downloadFlowButton: Locator;
1210
+ readonly flowDeleteButton: Locator;
1196
1211
  readonly successAlert: Locator;
1197
1212
  readonly successAlertMessage: Locator;
1198
1213
  constructor(page: Page);
1199
1214
  url(): string;
1215
+ getLineItemByFlowName(flowName: string): Promise<Record<string, Locator>>;
1200
1216
  }
1201
1217
 
1202
1218
  declare class FlowBuilderDetail implements PageObject {
@@ -1233,6 +1249,87 @@ declare class Dashboard implements PageObject {
1233
1249
  url(): string;
1234
1250
  }
1235
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
+
1236
1333
  interface AdministrationPageTypes {
1237
1334
  AdminProductDetail: ProductDetail;
1238
1335
  AdminOrderDetail: OrderDetail;
@@ -1243,6 +1340,10 @@ interface AdministrationPageTypes {
1243
1340
  AdminFlowBuilderDetail: FlowBuilderDetail;
1244
1341
  AdminDataSharing: DataSharing;
1245
1342
  AdminDashboard: Dashboard;
1343
+ AdminShippingListing: ShippingListing;
1344
+ AdminCategories: Categories;
1345
+ AdminLandingPageCreate: LandingPageCreate;
1346
+ AdminLandingPageDetail: LandingPageDetail;
1246
1347
  }
1247
1348
  declare const AdminPageObjects: {
1248
1349
  ProductDetail: typeof ProductDetail;
@@ -1254,6 +1355,10 @@ declare const AdminPageObjects: {
1254
1355
  FlowBuilderDetail: typeof FlowBuilderDetail;
1255
1356
  Dashboard: typeof Dashboard;
1256
1357
  DataSharing: typeof DataSharing;
1358
+ ShippingListing: typeof ShippingListing;
1359
+ Categories: typeof Categories;
1360
+ LandingPageCreate: typeof LandingPageCreate;
1361
+ LandingPageDetail: typeof LandingPageDetail;
1257
1362
  };
1258
1363
 
1259
1364
  interface DataFixtureTypes {
@@ -1310,6 +1415,10 @@ type Currency = components['schemas']['Currency'] & {
1310
1415
  declare const getCurrency: (isoCode: string, adminApiContext: AdminApiContext) => Promise<Currency>;
1311
1416
  declare const getTaxId: (adminApiContext: AdminApiContext) => Promise<string>;
1312
1417
  declare const getPaymentMethodId: (adminApiContext: AdminApiContext, handlerId?: string) => Promise<string>;
1418
+ /**
1419
+ * Gives the default shipping method back called Standard
1420
+ * @param adminApiContext - An AdminApiContext entity
1421
+ */
1313
1422
  declare const getDefaultShippingMethodId: (adminApiContext: AdminApiContext) => Promise<string>;
1314
1423
  declare const getCountryId: (iso2: string, adminApiContext: AdminApiContext) => Promise<string>;
1315
1424
  declare const getThemeId: (technicalName: string, adminApiContext: AdminApiContext) => Promise<string>;
@@ -1374,4 +1483,4 @@ declare const test: _playwright_test.TestType<_playwright_test.PlaywrightTestArg
1374
1483
  ValidateAccessibility: (pageName: string, assertViolations?: number | boolean | undefined, createReport?: boolean | undefined, ruleTags?: string[] | undefined, outputDir?: string | undefined) => () => Promise<axe_core.Result[]>;
1375
1484
  }, _playwright_test.PlaywrightWorkerArgs & _playwright_test.PlaywrightWorkerOptions & FixtureTypes>;
1376
1485
 
1377
- 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 };