@shopware-ag/acceptance-test-suite 3.10.0 → 3.11.1

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