@shopware-ag/acceptance-test-suite 3.9.0 → 3.10.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
@@ -1191,12 +1191,17 @@ declare class FlowBuilderListing implements PageObject {
1191
1191
  readonly firstFlowContextButton: Locator;
1192
1192
  readonly flowContextMenu: Locator;
1193
1193
  readonly contextMenuDownload: Locator;
1194
+ readonly contextMenuDuplicate: Locator;
1195
+ readonly contextMenuEdit: Locator;
1196
+ readonly contextMenuDelete: Locator;
1194
1197
  readonly flowDownloadModal: Locator;
1195
1198
  readonly downloadFlowButton: Locator;
1199
+ readonly flowDeleteButton: Locator;
1196
1200
  readonly successAlert: Locator;
1197
1201
  readonly successAlertMessage: Locator;
1198
1202
  constructor(page: Page);
1199
1203
  url(): string;
1204
+ getLineItemByFlowName(flowName: string): Promise<Record<string, Locator>>;
1200
1205
  }
1201
1206
 
1202
1207
  declare class FlowBuilderDetail implements PageObject {
@@ -1310,6 +1315,10 @@ type Currency = components['schemas']['Currency'] & {
1310
1315
  declare const getCurrency: (isoCode: string, adminApiContext: AdminApiContext) => Promise<Currency>;
1311
1316
  declare const getTaxId: (adminApiContext: AdminApiContext) => Promise<string>;
1312
1317
  declare const getPaymentMethodId: (adminApiContext: AdminApiContext, handlerId?: string) => Promise<string>;
1318
+ /**
1319
+ * Gives the default shipping method back called Standard
1320
+ * @param adminApiContext - An AdminApiContext entity
1321
+ */
1313
1322
  declare const getDefaultShippingMethodId: (adminApiContext: AdminApiContext) => Promise<string>;
1314
1323
  declare const getCountryId: (iso2: string, adminApiContext: AdminApiContext) => Promise<string>;
1315
1324
  declare const getThemeId: (technicalName: string, adminApiContext: AdminApiContext) => Promise<string>;
package/dist/index.d.ts CHANGED
@@ -1191,12 +1191,17 @@ declare class FlowBuilderListing implements PageObject {
1191
1191
  readonly firstFlowContextButton: Locator;
1192
1192
  readonly flowContextMenu: Locator;
1193
1193
  readonly contextMenuDownload: Locator;
1194
+ readonly contextMenuDuplicate: Locator;
1195
+ readonly contextMenuEdit: Locator;
1196
+ readonly contextMenuDelete: Locator;
1194
1197
  readonly flowDownloadModal: Locator;
1195
1198
  readonly downloadFlowButton: Locator;
1199
+ readonly flowDeleteButton: Locator;
1196
1200
  readonly successAlert: Locator;
1197
1201
  readonly successAlertMessage: Locator;
1198
1202
  constructor(page: Page);
1199
1203
  url(): string;
1204
+ getLineItemByFlowName(flowName: string): Promise<Record<string, Locator>>;
1200
1205
  }
1201
1206
 
1202
1207
  declare class FlowBuilderDetail implements PageObject {
@@ -1310,6 +1315,10 @@ type Currency = components['schemas']['Currency'] & {
1310
1315
  declare const getCurrency: (isoCode: string, adminApiContext: AdminApiContext) => Promise<Currency>;
1311
1316
  declare const getTaxId: (adminApiContext: AdminApiContext) => Promise<string>;
1312
1317
  declare const getPaymentMethodId: (adminApiContext: AdminApiContext, handlerId?: string) => Promise<string>;
1318
+ /**
1319
+ * Gives the default shipping method back called Standard
1320
+ * @param adminApiContext - An AdminApiContext entity
1321
+ */
1313
1322
  declare const getDefaultShippingMethodId: (adminApiContext: AdminApiContext) => Promise<string>;
1314
1323
  declare const getCountryId: (iso2: string, adminApiContext: AdminApiContext) => Promise<string>;
1315
1324
  declare const getThemeId: (technicalName: string, adminApiContext: AdminApiContext) => Promise<string>;
package/dist/index.mjs CHANGED
@@ -3290,16 +3290,24 @@ class FlowBuilderListing {
3290
3290
  __publicField$4(this, "firstFlowContextButton");
3291
3291
  __publicField$4(this, "flowContextMenu");
3292
3292
  __publicField$4(this, "contextMenuDownload");
3293
+ __publicField$4(this, "contextMenuDuplicate");
3294
+ __publicField$4(this, "contextMenuEdit");
3295
+ __publicField$4(this, "contextMenuDelete");
3293
3296
  __publicField$4(this, "flowDownloadModal");
3294
3297
  __publicField$4(this, "downloadFlowButton");
3298
+ __publicField$4(this, "flowDeleteButton");
3295
3299
  __publicField$4(this, "successAlert");
3296
3300
  __publicField$4(this, "successAlertMessage");
3297
3301
  this.createFlowButton = page.locator(".sw-flow-list__create");
3298
3302
  this.firstFlowName = page.locator(".sw-data-grid__cell--name a").first();
3299
3303
  this.firstFlowContextButton = page.locator(".sw-data-grid__actions-menu").first();
3300
3304
  this.flowContextMenu = page.locator(".sw-context-menu__content");
3301
- this.contextMenuDownload = page.locator(".sw-flow-list__item-download");
3302
- this.flowDownloadModal = page.locator(" .sw-flow-download-modal");
3305
+ this.contextMenuDownload = this.flowContextMenu.locator(".sw-flow-list__item-download");
3306
+ this.contextMenuDuplicate = this.flowContextMenu.locator(".sw-flow-list__item-duplicate");
3307
+ this.contextMenuEdit = this.flowContextMenu.locator(".sw-flow-list__item-edit");
3308
+ this.contextMenuDelete = this.flowContextMenu.locator(".sw-flow-list__item-delete");
3309
+ this.flowDownloadModal = page.locator(".sw-flow-download-modal");
3310
+ this.flowDeleteButton = page.getByRole("dialog").filter({ hasText: "If you delete this flow, no more actions will be performed for the trigger. Are you sure you want to delete this flow?" }).getByRole("button", { name: "Delete" });
3303
3311
  this.downloadFlowButton = page.getByRole("button", { name: "Download flow" });
3304
3312
  this.successAlert = page.locator(".sw-alert__body");
3305
3313
  this.successAlertMessage = page.locator(".sw-alert__message");
@@ -3307,6 +3315,23 @@ class FlowBuilderListing {
3307
3315
  url() {
3308
3316
  return "#/sw/flow/index/";
3309
3317
  }
3318
+ async getLineItemByFlowName(flowName) {
3319
+ const lineItem = this.page.locator(".sw-data-grid__row").filter({ hasText: flowName });
3320
+ const flowSelectionCheckbox = lineItem.locator(".sw-data-grid__cell--selection").locator(".sw-field__checkbox");
3321
+ const flowActiveCheckmark = lineItem.locator(".sw-data-grid__cell--active").locator(".icon--regular-checkmark-xs");
3322
+ const flowDisabledCheckmark = lineItem.locator(".sw-data-grid__cell--active").locator(".icon--regular-times-s");
3323
+ const flowNameText = lineItem.locator(".sw-data-grid__cell--name");
3324
+ const flowEventNameText = lineItem.locator(".sw-data-grid__cell--eventName");
3325
+ const flowContextMenuButton = lineItem.locator(".sw-data-grid__actions-menu");
3326
+ return {
3327
+ flowSelectionCheckbox,
3328
+ flowActiveCheckmark,
3329
+ flowDisabledCheckmark,
3330
+ flowNameText,
3331
+ flowEventNameText,
3332
+ flowContextMenuButton
3333
+ };
3334
+ }
3310
3335
  }
3311
3336
 
3312
3337
  var __defProp$3 = Object.defineProperty;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shopware-ag/acceptance-test-suite",
3
- "version": "3.9.0",
3
+ "version": "3.10.0",
4
4
  "description": "Shopware Acceptance Test Suite",
5
5
  "author": "shopware AG",
6
6
  "license": "MIT",