@shopware-ag/acceptance-test-suite 7.0.0 → 8.0.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
@@ -956,9 +956,12 @@ declare class Home implements PageObject {
956
956
  readonly consentCookiePermissionContent: Locator;
957
957
  readonly consentDialog: Locator;
958
958
  readonly consentDialogTechnicallyRequiredCheckbox: Locator;
959
+ readonly consentDialogStatisticsCheckbox: Locator;
960
+ readonly consentDialogMarketingdCheckbox: Locator;
959
961
  readonly consentDialogAcceptAllCookiesButton: Locator;
960
962
  readonly consentDialogSaveButton: Locator;
961
963
  readonly consentCookieBannerContainer: Locator;
964
+ readonly offcanvasBackdrop: Locator;
962
965
  constructor(page: Page);
963
966
  getListingItemByProductId(productId: string): Promise<Record<string, Locator>>;
964
967
  url(): string;
package/dist/index.d.ts CHANGED
@@ -956,9 +956,12 @@ declare class Home implements PageObject {
956
956
  readonly consentCookiePermissionContent: Locator;
957
957
  readonly consentDialog: Locator;
958
958
  readonly consentDialogTechnicallyRequiredCheckbox: Locator;
959
+ readonly consentDialogStatisticsCheckbox: Locator;
960
+ readonly consentDialogMarketingdCheckbox: Locator;
959
961
  readonly consentDialogAcceptAllCookiesButton: Locator;
960
962
  readonly consentDialogSaveButton: Locator;
961
963
  readonly consentCookieBannerContainer: Locator;
964
+ readonly offcanvasBackdrop: Locator;
962
965
  constructor(page: Page);
963
966
  getListingItemByProductId(productId: string): Promise<Record<string, Locator>>;
964
967
  url(): string;
package/dist/index.mjs CHANGED
@@ -2776,9 +2776,12 @@ class Home {
2776
2776
  __publicField$H(this, "consentCookiePermissionContent");
2777
2777
  __publicField$H(this, "consentDialog");
2778
2778
  __publicField$H(this, "consentDialogTechnicallyRequiredCheckbox");
2779
+ __publicField$H(this, "consentDialogStatisticsCheckbox");
2780
+ __publicField$H(this, "consentDialogMarketingdCheckbox");
2779
2781
  __publicField$H(this, "consentDialogAcceptAllCookiesButton");
2780
2782
  __publicField$H(this, "consentDialogSaveButton");
2781
2783
  __publicField$H(this, "consentCookieBannerContainer");
2784
+ __publicField$H(this, "offcanvasBackdrop");
2782
2785
  this.productImages = page.locator(".product-image-link");
2783
2786
  this.productListItems = page.getByRole("listitem");
2784
2787
  this.languagesDropdown = page.getByLabel("Shop settings").locator(".languages-menu");
@@ -2791,8 +2794,11 @@ class Home {
2791
2794
  this.consentCookiePermissionContent = page.locator(".cookie-permission-content");
2792
2795
  this.consentDialog = page.getByRole("dialog").filter({ hasText: "Cookie preferences" });
2793
2796
  this.consentDialogTechnicallyRequiredCheckbox = this.consentDialog.getByRole("checkbox", { name: "Technically required" });
2797
+ this.consentDialogStatisticsCheckbox = this.consentDialog.getByRole("checkbox", { name: "Statistics" });
2798
+ this.consentDialogMarketingdCheckbox = this.consentDialog.getByRole("checkbox", { name: "Marketing" });
2794
2799
  this.consentDialogSaveButton = this.consentDialog.getByRole("button", { name: "Save" });
2795
2800
  this.consentDialogAcceptAllCookiesButton = this.consentDialog.getByRole("button", { name: "Accept all cookies" });
2801
+ this.offcanvasBackdrop = page.locator(".offcanvas-backdrop");
2796
2802
  }
2797
2803
  async getListingItemByProductId(productId) {
2798
2804
  const listingItem = this.page.getByRole("listitem").filter({ has: this.page.locator(`[value="${productId}"]`) });
@@ -5343,7 +5349,7 @@ const CreateLinkTypeCategory = test$e.extend({
5343
5349
  });
5344
5350
 
5345
5351
  const SetSystemConfigValues = test$e.extend({
5346
- SetSystemConfigValues: async ({ AdminApiContext, DefaultSalesChannel }, use) => {
5352
+ SetSystemConfigValues: async ({ AdminApiContext, DefaultSalesChannel, TestDataService }, use) => {
5347
5353
  let defaultSettings;
5348
5354
  const task = (newValues, defaultValues) => {
5349
5355
  return async function LoginRegistration() {
@@ -5355,6 +5361,7 @@ const SetSystemConfigValues = test$e.extend({
5355
5361
  }
5356
5362
  });
5357
5363
  expect(newSettings.ok()).toBeTruthy();
5364
+ await TestDataService.clearCaches();
5358
5365
  };
5359
5366
  };
5360
5367
  await use(task);
@@ -5426,9 +5433,6 @@ const Register = test$e.extend({
5426
5433
  return async function() {
5427
5434
  const registrationData = { ...defaultRegistrationData, ...overrides };
5428
5435
  registeredEmail = registrationData.email;
5429
- if (isCommercial) {
5430
- await StorefrontAccountLogin.accountTypeSelect.selectOption("Commercial");
5431
- }
5432
5436
  await StorefrontAccountLogin.salutationSelect.selectOption(registrationData.salutation);
5433
5437
  await StorefrontAccountLogin.firstNameInput.fill(registrationData.firstName);
5434
5438
  await StorefrontAccountLogin.lastNameInput.fill(registrationData.lastName);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shopware-ag/acceptance-test-suite",
3
- "version": "7.0.0",
3
+ "version": "8.0.1",
4
4
  "description": "Shopware Acceptance Test Suite",
5
5
  "author": "shopware AG",
6
6
  "license": "MIT",