@shopware-ag/acceptance-test-suite 11.16.2 → 11.17.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
@@ -1161,6 +1161,7 @@ interface HelperFixtureTypes {
1161
1161
  isSaaS: boolean;
1162
1162
  features: FeaturesType;
1163
1163
  };
1164
+ HideElementsForScreenshot: (page: Page, selectors: string[]) => Promise<void>;
1164
1165
  }
1165
1166
 
1166
1167
  interface StoreBaseConfig {
@@ -1912,6 +1913,12 @@ declare class OrderDetail implements PageObject {
1912
1913
  readonly dataGridContextButton: Locator;
1913
1914
  readonly orderTag: Locator;
1914
1915
  readonly itemsCardHeader: Locator;
1916
+ /**
1917
+ * Tabs
1918
+ */
1919
+ readonly generalTabLink: Locator;
1920
+ readonly detailsTabLink: Locator;
1921
+ readonly documentsTabLink: Locator;
1915
1922
  constructor(page: Page, instanceMeta: HelperFixtureTypes['InstanceMeta']);
1916
1923
  url(orderId: string, tabName?: string): string;
1917
1924
  getCustomFieldCardLocators(customFieldSetName: string, customFieldTextName: string): Promise<{
package/dist/index.d.ts CHANGED
@@ -1161,6 +1161,7 @@ interface HelperFixtureTypes {
1161
1161
  isSaaS: boolean;
1162
1162
  features: FeaturesType;
1163
1163
  };
1164
+ HideElementsForScreenshot: (page: Page, selectors: string[]) => Promise<void>;
1164
1165
  }
1165
1166
 
1166
1167
  interface StoreBaseConfig {
@@ -1912,6 +1913,12 @@ declare class OrderDetail implements PageObject {
1912
1913
  readonly dataGridContextButton: Locator;
1913
1914
  readonly orderTag: Locator;
1914
1915
  readonly itemsCardHeader: Locator;
1916
+ /**
1917
+ * Tabs
1918
+ */
1919
+ readonly generalTabLink: Locator;
1920
+ readonly detailsTabLink: Locator;
1921
+ readonly documentsTabLink: Locator;
1915
1922
  constructor(page: Page, instanceMeta: HelperFixtureTypes['InstanceMeta']);
1916
1923
  url(orderId: string, tabName?: string): string;
1917
1924
  getCustomFieldCardLocators(customFieldSetName: string, customFieldTextName: string): Promise<{
package/dist/index.mjs CHANGED
@@ -3343,6 +3343,18 @@ const test$8 = test$f.extend({
3343
3343
  });
3344
3344
  },
3345
3345
  { scope: "worker" }
3346
+ ],
3347
+ HideElementsForScreenshot: [
3348
+ async ({}, use) => {
3349
+ const fn = async (page, selectors) => {
3350
+ if (!selectors.length)
3351
+ return;
3352
+ const css = selectors.map((selector) => `${selector} { display: none !important; }`).join("\n");
3353
+ await page.addStyleTag({ content: css });
3354
+ };
3355
+ await use(fn);
3356
+ },
3357
+ { scope: "worker" }
3346
3358
  ]
3347
3359
  });
3348
3360
 
@@ -4945,6 +4957,12 @@ class OrderDetail {
4945
4957
  __publicField$v(this, "dataGridContextButton");
4946
4958
  __publicField$v(this, "orderTag");
4947
4959
  __publicField$v(this, "itemsCardHeader");
4960
+ /**
4961
+ * Tabs
4962
+ */
4963
+ __publicField$v(this, "generalTabLink");
4964
+ __publicField$v(this, "detailsTabLink");
4965
+ __publicField$v(this, "documentsTabLink");
4948
4966
  this.saveButton = page.locator(".sw-order-detail__smart-bar-save-button");
4949
4967
  this.dataGridContextButton = page.locator(".sw-data-grid__actions-menu").and(page.getByRole("button"));
4950
4968
  this.orderTag = page.locator(".sw-select-selection-list__item");
@@ -4953,6 +4971,9 @@ class OrderDetail {
4953
4971
  } else {
4954
4972
  this.itemsCardHeader = page.locator(".mt-card__header").getByText("Items");
4955
4973
  }
4974
+ this.generalTabLink = page.getByRole("tab", { name: "General" });
4975
+ this.detailsTabLink = page.getByRole("tab", { name: "Details" });
4976
+ this.documentsTabLink = page.getByRole("tab", { name: "Documents" });
4956
4977
  }
4957
4978
  url(orderId, tabName = "general") {
4958
4979
  return `#/sw/order/detail/${orderId}/${tabName}`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shopware-ag/acceptance-test-suite",
3
- "version": "11.16.2",
3
+ "version": "11.17.0",
4
4
  "description": "Shopware Acceptance Test Suite",
5
5
  "author": "shopware AG",
6
6
  "license": "MIT",