@shopware-ag/acceptance-test-suite 11.13.2 → 11.14.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
@@ -2,9 +2,7 @@ import * as axe_core from 'axe-core';
2
2
  import * as _playwright_test from '@playwright/test';
3
3
  import { APIRequestContext, APIResponse, Page, BrowserContext, Locator } from '@playwright/test';
4
4
  export * from '@playwright/test';
5
- import * as playwright_core from 'playwright-core';
6
5
  import { components } from '@shopware/api-client/admin-api-types';
7
- import { HelperFixtureTypes as HelperFixtureTypes$1 } from 'src/fixtures/HelperFixtures';
8
6
  import { Image } from 'image-js';
9
7
 
10
8
  type Task = (...args: any[]) => () => Promise<void>;
@@ -794,14 +792,14 @@ declare class TestDataService {
794
792
  * @param productId - The uuid of the product.
795
793
  * @param categoryId - The uuid of the category.
796
794
  */
797
- assignProductCategory(productId: string, categoryId: string): Promise<playwright_core.APIResponse>;
795
+ assignProductCategory(productId: string, categoryId: string): Promise<_playwright_test.APIResponse>;
798
796
  /**
799
797
  * Assigns a tag to a product.
800
798
  *
801
799
  * @param productId - The uuid of the product.
802
800
  * @param tagId - The uuid of the tag.
803
801
  */
804
- assignProductTag(productId: string, tagId: string): Promise<playwright_core.APIResponse>;
802
+ assignProductTag(productId: string, tagId: string): Promise<_playwright_test.APIResponse>;
805
803
  /**
806
804
  * Assigns a media resource to a manufacturer as a logo.
807
805
  *
@@ -992,7 +990,7 @@ declare class TestDataService {
992
990
  /**
993
991
  * Will delete all entities created by the data service via sync API.
994
992
  */
995
- cleanUp(): Promise<playwright_core.APIResponse | null>;
993
+ cleanUp(): Promise<_playwright_test.APIResponse | null>;
996
994
  isProduct(item: Product | Promotion): item is Product;
997
995
  isPromotion(item: Product | Promotion): item is Promotion;
998
996
  /**
@@ -1853,7 +1851,7 @@ declare class CustomerGroupListing implements PageObject {
1853
1851
 
1854
1852
  declare class CustomerGroupCreate implements PageObject {
1855
1853
  readonly page: Page;
1856
- readonly instanceMeta: HelperFixtureTypes$1['InstanceMeta'];
1854
+ readonly instanceMeta: HelperFixtureTypes['InstanceMeta'];
1857
1855
  readonly headline: Locator;
1858
1856
  readonly saveButton: Locator;
1859
1857
  readonly cancelButton: Locator;
@@ -1868,18 +1866,18 @@ declare class CustomerGroupCreate implements PageObject {
1868
1866
  readonly signupFormCompanySignupToggle: Locator;
1869
1867
  readonly customerGroupSaleschannelSelection: Locator;
1870
1868
  readonly customerGroupSaleschannelResultList: Locator;
1871
- constructor(page: Page, instanceMeta: HelperFixtureTypes$1['InstanceMeta']);
1869
+ constructor(page: Page, instanceMeta: HelperFixtureTypes['InstanceMeta']);
1872
1870
  url(): string;
1873
1871
  }
1874
1872
 
1875
1873
  declare class CustomerGroupDetail extends CustomerGroupCreate implements PageObject {
1876
1874
  readonly page: Page;
1877
- readonly instanceMeta: HelperFixtureTypes$1['InstanceMeta'];
1875
+ readonly instanceMeta: HelperFixtureTypes['InstanceMeta'];
1878
1876
  readonly headline: Locator;
1879
1877
  readonly selectedSalesChannel: Locator;
1880
1878
  readonly technicalUrl: Locator;
1881
1879
  readonly saleschannelUrl: Locator;
1882
- constructor(page: Page, instanceMeta: HelperFixtureTypes$1['InstanceMeta']);
1880
+ constructor(page: Page, instanceMeta: HelperFixtureTypes['InstanceMeta']);
1883
1881
  url(customerGroupId?: string): string;
1884
1882
  }
1885
1883
 
@@ -1980,9 +1978,9 @@ declare class FlowBuilderTemplates extends FlowBuilderListing implements PageObj
1980
1978
  constructor(page: Page);
1981
1979
  url(): string;
1982
1980
  getLineItemByFlowName(flowName: string): Promise<{
1983
- createFlowLink: playwright_core.Locator;
1984
- lineItem: playwright_core.Locator;
1985
- templateDetailLink: playwright_core.Locator;
1981
+ createFlowLink: _playwright_test.Locator;
1982
+ lineItem: _playwright_test.Locator;
1983
+ templateDetailLink: _playwright_test.Locator;
1986
1984
  }>;
1987
1985
  }
1988
1986
 
@@ -2285,13 +2283,13 @@ declare class RuleListing implements PageObject {
2285
2283
 
2286
2284
  declare class ManufacturerCreate implements PageObject {
2287
2285
  readonly page: Page;
2288
- readonly instanceMeta: HelperFixtureTypes$1['InstanceMeta'];
2286
+ readonly instanceMeta: HelperFixtureTypes['InstanceMeta'];
2289
2287
  readonly saveButton: Locator;
2290
2288
  readonly cancelButton: Locator;
2291
2289
  readonly nameInput: Locator;
2292
2290
  readonly websiteInput: Locator;
2293
2291
  readonly descriptionInput: Locator;
2294
- constructor(page: Page, instanceMeta: HelperFixtureTypes$1['InstanceMeta']);
2292
+ constructor(page: Page, instanceMeta: HelperFixtureTypes['InstanceMeta']);
2295
2293
  url(): string;
2296
2294
  }
2297
2295
 
@@ -2306,11 +2304,11 @@ declare class ManufacturerListing implements PageObject {
2306
2304
 
2307
2305
  declare class ManufacturerDetail extends ManufacturerCreate {
2308
2306
  readonly page: Page;
2309
- readonly instanceMeta: HelperFixtureTypes$1['InstanceMeta'];
2307
+ readonly instanceMeta: HelperFixtureTypes['InstanceMeta'];
2310
2308
  readonly customFieldCard: Locator;
2311
2309
  readonly customFieldSetTabs: Locator;
2312
2310
  readonly customFieldSetTabCustomContent: Locator;
2313
- constructor(page: Page, instanceMeta: HelperFixtureTypes$1['InstanceMeta']);
2311
+ constructor(page: Page, instanceMeta: HelperFixtureTypes['InstanceMeta']);
2314
2312
  getCustomFieldSetCardContentByName(customFieldSetName: string): Promise<Record<string, Locator>>;
2315
2313
  url(manufacturerUuid?: string): string;
2316
2314
  }
package/dist/index.d.ts CHANGED
@@ -2,9 +2,7 @@ import * as axe_core from 'axe-core';
2
2
  import * as _playwright_test from '@playwright/test';
3
3
  import { APIRequestContext, APIResponse, Page, BrowserContext, Locator } from '@playwright/test';
4
4
  export * from '@playwright/test';
5
- import * as playwright_core from 'playwright-core';
6
5
  import { components } from '@shopware/api-client/admin-api-types';
7
- import { HelperFixtureTypes as HelperFixtureTypes$1 } from 'src/fixtures/HelperFixtures';
8
6
  import { Image } from 'image-js';
9
7
 
10
8
  type Task = (...args: any[]) => () => Promise<void>;
@@ -794,14 +792,14 @@ declare class TestDataService {
794
792
  * @param productId - The uuid of the product.
795
793
  * @param categoryId - The uuid of the category.
796
794
  */
797
- assignProductCategory(productId: string, categoryId: string): Promise<playwright_core.APIResponse>;
795
+ assignProductCategory(productId: string, categoryId: string): Promise<_playwright_test.APIResponse>;
798
796
  /**
799
797
  * Assigns a tag to a product.
800
798
  *
801
799
  * @param productId - The uuid of the product.
802
800
  * @param tagId - The uuid of the tag.
803
801
  */
804
- assignProductTag(productId: string, tagId: string): Promise<playwright_core.APIResponse>;
802
+ assignProductTag(productId: string, tagId: string): Promise<_playwright_test.APIResponse>;
805
803
  /**
806
804
  * Assigns a media resource to a manufacturer as a logo.
807
805
  *
@@ -992,7 +990,7 @@ declare class TestDataService {
992
990
  /**
993
991
  * Will delete all entities created by the data service via sync API.
994
992
  */
995
- cleanUp(): Promise<playwright_core.APIResponse | null>;
993
+ cleanUp(): Promise<_playwright_test.APIResponse | null>;
996
994
  isProduct(item: Product | Promotion): item is Product;
997
995
  isPromotion(item: Product | Promotion): item is Promotion;
998
996
  /**
@@ -1853,7 +1851,7 @@ declare class CustomerGroupListing implements PageObject {
1853
1851
 
1854
1852
  declare class CustomerGroupCreate implements PageObject {
1855
1853
  readonly page: Page;
1856
- readonly instanceMeta: HelperFixtureTypes$1['InstanceMeta'];
1854
+ readonly instanceMeta: HelperFixtureTypes['InstanceMeta'];
1857
1855
  readonly headline: Locator;
1858
1856
  readonly saveButton: Locator;
1859
1857
  readonly cancelButton: Locator;
@@ -1868,18 +1866,18 @@ declare class CustomerGroupCreate implements PageObject {
1868
1866
  readonly signupFormCompanySignupToggle: Locator;
1869
1867
  readonly customerGroupSaleschannelSelection: Locator;
1870
1868
  readonly customerGroupSaleschannelResultList: Locator;
1871
- constructor(page: Page, instanceMeta: HelperFixtureTypes$1['InstanceMeta']);
1869
+ constructor(page: Page, instanceMeta: HelperFixtureTypes['InstanceMeta']);
1872
1870
  url(): string;
1873
1871
  }
1874
1872
 
1875
1873
  declare class CustomerGroupDetail extends CustomerGroupCreate implements PageObject {
1876
1874
  readonly page: Page;
1877
- readonly instanceMeta: HelperFixtureTypes$1['InstanceMeta'];
1875
+ readonly instanceMeta: HelperFixtureTypes['InstanceMeta'];
1878
1876
  readonly headline: Locator;
1879
1877
  readonly selectedSalesChannel: Locator;
1880
1878
  readonly technicalUrl: Locator;
1881
1879
  readonly saleschannelUrl: Locator;
1882
- constructor(page: Page, instanceMeta: HelperFixtureTypes$1['InstanceMeta']);
1880
+ constructor(page: Page, instanceMeta: HelperFixtureTypes['InstanceMeta']);
1883
1881
  url(customerGroupId?: string): string;
1884
1882
  }
1885
1883
 
@@ -1980,9 +1978,9 @@ declare class FlowBuilderTemplates extends FlowBuilderListing implements PageObj
1980
1978
  constructor(page: Page);
1981
1979
  url(): string;
1982
1980
  getLineItemByFlowName(flowName: string): Promise<{
1983
- createFlowLink: playwright_core.Locator;
1984
- lineItem: playwright_core.Locator;
1985
- templateDetailLink: playwright_core.Locator;
1981
+ createFlowLink: _playwright_test.Locator;
1982
+ lineItem: _playwright_test.Locator;
1983
+ templateDetailLink: _playwright_test.Locator;
1986
1984
  }>;
1987
1985
  }
1988
1986
 
@@ -2285,13 +2283,13 @@ declare class RuleListing implements PageObject {
2285
2283
 
2286
2284
  declare class ManufacturerCreate implements PageObject {
2287
2285
  readonly page: Page;
2288
- readonly instanceMeta: HelperFixtureTypes$1['InstanceMeta'];
2286
+ readonly instanceMeta: HelperFixtureTypes['InstanceMeta'];
2289
2287
  readonly saveButton: Locator;
2290
2288
  readonly cancelButton: Locator;
2291
2289
  readonly nameInput: Locator;
2292
2290
  readonly websiteInput: Locator;
2293
2291
  readonly descriptionInput: Locator;
2294
- constructor(page: Page, instanceMeta: HelperFixtureTypes$1['InstanceMeta']);
2292
+ constructor(page: Page, instanceMeta: HelperFixtureTypes['InstanceMeta']);
2295
2293
  url(): string;
2296
2294
  }
2297
2295
 
@@ -2306,11 +2304,11 @@ declare class ManufacturerListing implements PageObject {
2306
2304
 
2307
2305
  declare class ManufacturerDetail extends ManufacturerCreate {
2308
2306
  readonly page: Page;
2309
- readonly instanceMeta: HelperFixtureTypes$1['InstanceMeta'];
2307
+ readonly instanceMeta: HelperFixtureTypes['InstanceMeta'];
2310
2308
  readonly customFieldCard: Locator;
2311
2309
  readonly customFieldSetTabs: Locator;
2312
2310
  readonly customFieldSetTabCustomContent: Locator;
2313
- constructor(page: Page, instanceMeta: HelperFixtureTypes$1['InstanceMeta']);
2311
+ constructor(page: Page, instanceMeta: HelperFixtureTypes['InstanceMeta']);
2314
2312
  getCustomFieldSetCardContentByName(customFieldSetName: string): Promise<Record<string, Locator>>;
2315
2313
  url(manufacturerUuid?: string): string;
2316
2314
  }
package/dist/index.mjs CHANGED
@@ -5237,12 +5237,13 @@ class FlowBuilderDetail extends FlowBuilderCreate {
5237
5237
  __publicField$m(this, "alertWarning");
5238
5238
  __publicField$m(this, "templateName");
5239
5239
  __publicField$m(this, "alertMessage");
5240
- this.saveButtonLoader = page.locator(".mt-button--primary").locator(".mt-button__loader");
5241
5240
  this.generalTab = page.locator(".sw-flow-detail__tab-general");
5242
5241
  if (satisfies(instanceMeta.version, "<6.7")) {
5242
+ this.saveButtonLoader = page.locator(".sw-button--primary").locator(".sw-button_loader");
5243
5243
  this.alertWarning = page.getByRole("alert").first();
5244
5244
  this.alertMessage = page.locator(".sw-alert__title");
5245
5245
  } else {
5246
+ this.saveButtonLoader = page.locator(".mt-button--primary").locator(".mt-button__loader");
5246
5247
  this.alertWarning = page.getByRole("banner").first();
5247
5248
  this.alertMessage = page.locator(".mt-banner__title");
5248
5249
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shopware-ag/acceptance-test-suite",
3
- "version": "11.13.2",
3
+ "version": "11.14.0",
4
4
  "description": "Shopware Acceptance Test Suite",
5
5
  "author": "shopware AG",
6
6
  "license": "MIT",
@@ -38,7 +38,7 @@
38
38
  "dependencies": {
39
39
  "@axe-core/playwright": "4.9.1",
40
40
  "@playwright/test": "^1.49.1",
41
- "@shopware/api-client": "0.5.0",
41
+ "@shopware/api-client": "1.2.1",
42
42
  "axe-html-reporter": "2.2.3",
43
43
  "compare-versions": "^6.1.1",
44
44
  "image-js": "0.35.5",