@shopware-ag/acceptance-test-suite 11.22.0 → 11.23.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
@@ -2456,6 +2456,7 @@ declare class CategoryDetail implements PageObject {
2456
2456
  }
2457
2457
 
2458
2458
  declare class RuleCreate implements PageObject {
2459
+ readonly header: Locator;
2459
2460
  readonly nameInput: Locator;
2460
2461
  readonly priorityInput: Locator;
2461
2462
  readonly conditionTypeSelectionInput: Locator;
@@ -2472,6 +2473,7 @@ declare class RuleCreate implements PageObject {
2472
2473
  }
2473
2474
 
2474
2475
  declare class RuleDetail extends RuleCreate implements PageObject {
2476
+ readonly contentView: Locator;
2475
2477
  readonly shippingMethodAvailabilityRulesCard: Locator;
2476
2478
  readonly shippingMethodAvailabilityRulesCardLink: Locator;
2477
2479
  readonly shippingMethodAvailabilityRulesCardTable: Locator;
@@ -2488,8 +2490,10 @@ declare class RuleDetail extends RuleCreate implements PageObject {
2488
2490
  readonly promotionCustomerRulesCardEmptyState: Locator;
2489
2491
  readonly promotionCartRulesCard: Locator;
2490
2492
  readonly promotionCartRulesCardEmptyState: Locator;
2493
+ readonly assignmentModal: Locator;
2491
2494
  readonly assignmentModalAddButton: Locator;
2492
2495
  readonly assignmentModalSearchField: Locator;
2496
+ readonly conditionORContainer: Locator;
2493
2497
  constructor(page: Page, instanceMeta: HelperFixtureTypes['InstanceMeta']);
2494
2498
  getEntityCard(cardLocator: Locator): Promise<Record<string, Locator>>;
2495
2499
  url(ruleId?: string, tabName?: string): string;
@@ -2497,6 +2501,8 @@ declare class RuleDetail extends RuleCreate implements PageObject {
2497
2501
 
2498
2502
  declare class RuleListing implements PageObject {
2499
2503
  readonly createRuleButton: Locator;
2504
+ readonly header: Locator;
2505
+ readonly grid: Locator;
2500
2506
  readonly page: Page;
2501
2507
  constructor(page: Page);
2502
2508
  url(): string;
package/dist/index.d.ts CHANGED
@@ -2456,6 +2456,7 @@ declare class CategoryDetail implements PageObject {
2456
2456
  }
2457
2457
 
2458
2458
  declare class RuleCreate implements PageObject {
2459
+ readonly header: Locator;
2459
2460
  readonly nameInput: Locator;
2460
2461
  readonly priorityInput: Locator;
2461
2462
  readonly conditionTypeSelectionInput: Locator;
@@ -2472,6 +2473,7 @@ declare class RuleCreate implements PageObject {
2472
2473
  }
2473
2474
 
2474
2475
  declare class RuleDetail extends RuleCreate implements PageObject {
2476
+ readonly contentView: Locator;
2475
2477
  readonly shippingMethodAvailabilityRulesCard: Locator;
2476
2478
  readonly shippingMethodAvailabilityRulesCardLink: Locator;
2477
2479
  readonly shippingMethodAvailabilityRulesCardTable: Locator;
@@ -2488,8 +2490,10 @@ declare class RuleDetail extends RuleCreate implements PageObject {
2488
2490
  readonly promotionCustomerRulesCardEmptyState: Locator;
2489
2491
  readonly promotionCartRulesCard: Locator;
2490
2492
  readonly promotionCartRulesCardEmptyState: Locator;
2493
+ readonly assignmentModal: Locator;
2491
2494
  readonly assignmentModalAddButton: Locator;
2492
2495
  readonly assignmentModalSearchField: Locator;
2496
+ readonly conditionORContainer: Locator;
2493
2497
  constructor(page: Page, instanceMeta: HelperFixtureTypes['InstanceMeta']);
2494
2498
  getEntityCard(cardLocator: Locator): Promise<Record<string, Locator>>;
2495
2499
  url(ruleId?: string, tabName?: string): string;
@@ -2497,6 +2501,8 @@ declare class RuleDetail extends RuleCreate implements PageObject {
2497
2501
 
2498
2502
  declare class RuleListing implements PageObject {
2499
2503
  readonly createRuleButton: Locator;
2504
+ readonly header: Locator;
2505
+ readonly grid: Locator;
2500
2506
  readonly page: Page;
2501
2507
  constructor(page: Page);
2502
2508
  url(): string;
package/dist/index.mjs CHANGED
@@ -6306,6 +6306,7 @@ var __publicField$f = (obj, key, value) => {
6306
6306
  };
6307
6307
  class RuleCreate {
6308
6308
  constructor(page, instanceMeta) {
6309
+ __publicField$f(this, "header");
6309
6310
  __publicField$f(this, "nameInput");
6310
6311
  __publicField$f(this, "priorityInput");
6311
6312
  __publicField$f(this, "conditionTypeSelectionInput");
@@ -6318,6 +6319,7 @@ class RuleCreate {
6318
6319
  __publicField$f(this, "instanceMeta");
6319
6320
  this.page = page;
6320
6321
  this.instanceMeta = instanceMeta;
6322
+ this.header = page.locator(".smart-bar__header");
6321
6323
  this.nameInput = page.getByLabel("Name");
6322
6324
  this.priorityInput = page.getByLabel("Priority");
6323
6325
  this.conditionTypeSelectionInput = page.locator(".sw-condition-type-select").locator(".sw-single-select__selection");
@@ -6344,6 +6346,7 @@ var __publicField$e = (obj, key, value) => {
6344
6346
  class RuleDetail extends RuleCreate {
6345
6347
  constructor(page, instanceMeta) {
6346
6348
  super(page, instanceMeta);
6349
+ __publicField$e(this, "contentView");
6347
6350
  __publicField$e(this, "shippingMethodAvailabilityRulesCard");
6348
6351
  __publicField$e(this, "shippingMethodAvailabilityRulesCardLink");
6349
6352
  __publicField$e(this, "shippingMethodAvailabilityRulesCardTable");
@@ -6360,8 +6363,11 @@ class RuleDetail extends RuleCreate {
6360
6363
  __publicField$e(this, "promotionCustomerRulesCardEmptyState");
6361
6364
  __publicField$e(this, "promotionCartRulesCard");
6362
6365
  __publicField$e(this, "promotionCartRulesCardEmptyState");
6366
+ __publicField$e(this, "assignmentModal");
6363
6367
  __publicField$e(this, "assignmentModalAddButton");
6364
6368
  __publicField$e(this, "assignmentModalSearchField");
6369
+ __publicField$e(this, "conditionORContainer");
6370
+ this.contentView = page.locator(".sw-desktop__content");
6365
6371
  this.shippingMethodAvailabilityRulesCard = page.locator(".sw-settings-rule-detail-assignments__card-shipping_method_availability_rule");
6366
6372
  this.shippingMethodAvailabilityRulesCardLink = this.shippingMethodAvailabilityRulesCard.getByRole("link");
6367
6373
  this.shippingMethodAvailabilityRulesCardTable = page.locator(".sw-settings-rule-detail-assignments__entity-listing-shipping_method_availability_rule");
@@ -6378,12 +6384,14 @@ class RuleDetail extends RuleCreate {
6378
6384
  this.promotionCustomerRulesCardEmptyState = this.promotionCustomerRulesCard.getByRole("alert");
6379
6385
  this.promotionCartRulesCard = page.locator(".sw-settings-rule-detail-assignments__card-promotion_cart_rule");
6380
6386
  this.promotionCartRulesCardEmptyState = this.promotionCartRulesCard.getByRole("alert");
6381
- this.assignmentModalSearchField = page.locator(".sw-settings-rule-add-assignment-modal").getByRole("textbox");
6387
+ this.assignmentModal = page.locator(".sw-settings-rule-add-assignment-modal");
6388
+ this.assignmentModalSearchField = this.assignmentModal.getByRole("textbox");
6382
6389
  if (satisfies(instanceMeta.version, "<6.7")) {
6383
- this.assignmentModalAddButton = page.locator(".sw-button--primary").getByText("Add");
6390
+ this.assignmentModalAddButton = this.assignmentModal.locator(".sw-button--primary").getByText("Add");
6384
6391
  } else {
6385
- this.assignmentModalAddButton = page.locator(".mt-button--primary").getByText("Add");
6392
+ this.assignmentModalAddButton = this.assignmentModal.locator(".mt-button--primary").getByText("Add");
6386
6393
  }
6394
+ this.conditionORContainer = page.locator(".sw-condition-or-container");
6387
6395
  }
6388
6396
  async getEntityCard(cardLocator) {
6389
6397
  return {
@@ -6404,9 +6412,13 @@ var __publicField$d = (obj, key, value) => {
6404
6412
  class RuleListing {
6405
6413
  constructor(page) {
6406
6414
  __publicField$d(this, "createRuleButton");
6415
+ __publicField$d(this, "header");
6416
+ __publicField$d(this, "grid");
6407
6417
  __publicField$d(this, "page");
6408
6418
  this.page = page;
6409
6419
  this.createRuleButton = page.getByText("Create rule");
6420
+ this.header = page.locator(".smart-bar__header");
6421
+ this.grid = page.locator(".sw-data-grid__table)");
6410
6422
  }
6411
6423
  url() {
6412
6424
  return `#/sw/settings/rule/index`;
@@ -8817,7 +8829,7 @@ async function setViewport(page, options = {}) {
8817
8829
  try {
8818
8830
  await page.waitForResponse((response) => response.url().includes(config.requestURL));
8819
8831
  } catch {
8820
- console.warn(`[Info] Timed out waiting for API request: "${config.requestURL}".`);
8832
+ console.warn(`[Error] Timed out waiting for request: "${config.requestURL}".`);
8821
8833
  }
8822
8834
  }
8823
8835
  if (config.waitForSelector) {
@@ -8825,7 +8837,7 @@ async function setViewport(page, options = {}) {
8825
8837
  const locator2 = typeof config.waitForSelector === "string" ? page.locator(config.waitForSelector) : config.waitForSelector;
8826
8838
  await locator2.waitFor({ state: "visible", timeout: 1e4 });
8827
8839
  } catch {
8828
- console.warn(`[Info] ${config.waitForSelector} not found or timed out.`);
8840
+ console.warn(`[Error] ${config.waitForSelector} not found or timed out.`);
8829
8841
  }
8830
8842
  }
8831
8843
  const locator = typeof config.scrollableElementVertical === "string" ? page.locator(config.scrollableElementVertical) : config.scrollableElementVertical;
@@ -8838,7 +8850,7 @@ async function setViewport(page, options = {}) {
8838
8850
  contentHeight = await scrollableElementVertical.evaluate((el) => el.scrollHeight);
8839
8851
  }
8840
8852
  } catch {
8841
- console.warn(`[Info] No scrollable element found. Applying default height: ${config.contentHeight}.`);
8853
+ console.warn(`[Warning] Scrollable element not found. Applying default height: ${config.contentHeight}.`);
8842
8854
  }
8843
8855
  }
8844
8856
  let headerHeight = config.headerHeight;
@@ -8859,7 +8871,7 @@ async function setViewport(page, options = {}) {
8859
8871
  }
8860
8872
  }
8861
8873
  } catch {
8862
- console.warn(`[Info] No header found.`);
8874
+ console.warn(`[Info] Header not found.`);
8863
8875
  }
8864
8876
  }
8865
8877
  let contentWidth = config.width;
@@ -8873,12 +8885,12 @@ async function setViewport(page, options = {}) {
8873
8885
  contentWidth = config.width;
8874
8886
  }
8875
8887
  } catch {
8876
- console.warn(`[Info] No scrollable element found. Applying default width: ${config.width}.`);
8888
+ console.warn(`[Warning] Scrollable element not found. Applying default width: ${config.width}.`);
8877
8889
  }
8878
8890
  }
8879
8891
  const totalHeight = contentHeight + headerHeight + config.additionalHeight;
8880
8892
  await page.setViewportSize({ width: contentWidth, height: totalHeight });
8881
- console.warn(`[Info] Viewport size: width=${contentWidth}, height=${totalHeight}`);
8893
+ console.warn(`[Success] Viewport size: width=${contentWidth}, height=${totalHeight}`);
8882
8894
  return;
8883
8895
  }
8884
8896
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shopware-ag/acceptance-test-suite",
3
- "version": "11.22.0",
3
+ "version": "11.23.0",
4
4
  "description": "Shopware Acceptance Test Suite",
5
5
  "author": "shopware AG",
6
6
  "license": "MIT",