@shopware-ag/acceptance-test-suite 11.33.0 → 11.33.2

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
@@ -763,7 +763,7 @@ declare class TestDataService {
763
763
  * @param productId - The uuid of the product.
764
764
  * @param manufacturerId - The uuid of the manufacturer.
765
765
  */
766
- assignProductManufacturer(productId: string, manufacturerId: string): Promise<void>;
766
+ assignProductManufacturer(productId: string, manufacturerId: string): Promise<any>;
767
767
  /**
768
768
  * Assigns a country to a currency with default roundings of 2.
769
769
  *
@@ -778,14 +778,14 @@ declare class TestDataService {
778
778
  * @param productId - The uuid of the product.
779
779
  * @param categoryId - The uuid of the category.
780
780
  */
781
- assignProductCategory(productId: string, categoryId: string): Promise<playwright_core.APIResponse>;
781
+ assignProductCategory(productId: string, categoryId: string): Promise<any>;
782
782
  /**
783
783
  * Assigns a tag to a product.
784
784
  *
785
785
  * @param productId - The uuid of the product.
786
786
  * @param tagId - The uuid of the tag.
787
787
  */
788
- assignProductTag(productId: string, tagId: string): Promise<playwright_core.APIResponse>;
788
+ assignProductTag(productId: string, tagId: string): Promise<any>;
789
789
  /**
790
790
  * Assigns a media resource to a manufacturer as a logo.
791
791
  *
@@ -1011,6 +1011,14 @@ declare class TestDataService {
1011
1011
  * @param array
1012
1012
  */
1013
1013
  combineAll: (array: Record<string, string>[][]) => Record<string, string>[][];
1014
+ /**
1015
+ * Generates a random alphanumeric string of a specified length.
1016
+ * Ensures at least one numeric character is included.
1017
+ *
1018
+ * @param length - The desired length of the random string (default: 3)
1019
+ * @returns A random alphanumeric string containing at least one digit
1020
+ */
1021
+ generateRandomId(length?: number): string;
1014
1022
  /**
1015
1023
  * @deprecated Use `getCountry` instead.
1016
1024
  * Retrieves a country Id based on its iso2 code.
@@ -1783,6 +1791,13 @@ declare const BUNDLED_RESOURCES: {
1783
1791
  cannotDeliverToCountry: string;
1784
1792
  shippingNotPossible: string;
1785
1793
  };
1794
+ navigation: {
1795
+ overview: string;
1796
+ yourProfile: string;
1797
+ addresses: string;
1798
+ orders: string;
1799
+ logout: string;
1800
+ };
1786
1801
  recovery: {
1787
1802
  title: string;
1788
1803
  subtitle: string;
@@ -2657,6 +2672,13 @@ declare const BUNDLED_RESOURCES: {
2657
2672
  defaultBillingAddress: string;
2658
2673
  defaultShippingAddress: string;
2659
2674
  };
2675
+ navigation: {
2676
+ overview: string;
2677
+ yourProfile: string;
2678
+ addresses: string;
2679
+ orders: string;
2680
+ logout: string;
2681
+ };
2660
2682
  recovery: {
2661
2683
  title: string;
2662
2684
  subtitle: string;
@@ -3539,6 +3561,13 @@ declare const baseNamespaces: {
3539
3561
  cannotDeliverToCountry: string;
3540
3562
  shippingNotPossible: string;
3541
3563
  };
3564
+ navigation: {
3565
+ overview: string;
3566
+ yourProfile: string;
3567
+ addresses: string;
3568
+ orders: string;
3569
+ logout: string;
3570
+ };
3542
3571
  recovery: {
3543
3572
  title: string;
3544
3573
  subtitle: string;
@@ -5417,7 +5446,7 @@ declare class CheckoutFinish implements PageObject {
5417
5446
  constructor(page: Page);
5418
5447
  url(): string;
5419
5448
  getOrderNumber(): Promise<string | null>;
5420
- getOrderId(): string | null;
5449
+ getOrderId(): string;
5421
5450
  }
5422
5451
 
5423
5452
  declare class CheckoutRegister implements PageObject {
@@ -5427,7 +5456,24 @@ declare class CheckoutRegister implements PageObject {
5427
5456
  url(): string;
5428
5457
  }
5429
5458
 
5430
- declare class Account implements PageObject {
5459
+ declare class AccountNavigation {
5460
+ private readonly page;
5461
+ readonly overviewLink: Locator;
5462
+ readonly yourProfileLink: Locator;
5463
+ readonly addressesLink: Locator;
5464
+ readonly ordersLink: Locator;
5465
+ readonly logoutLink: Locator;
5466
+ constructor(page: Page);
5467
+ }
5468
+
5469
+ declare abstract class BaseAccount implements PageObject {
5470
+ readonly page: Page;
5471
+ readonly navigation: AccountNavigation;
5472
+ protected constructor(page: Page);
5473
+ abstract url(): string;
5474
+ }
5475
+
5476
+ declare class Account extends BaseAccount {
5431
5477
  readonly headline: Locator;
5432
5478
  readonly personalDataCardTitle: Locator;
5433
5479
  readonly paymentMethodCardTitle: Locator;
@@ -5438,7 +5484,6 @@ declare class Account implements PageObject {
5438
5484
  readonly customerGroupRequestMessage: Locator;
5439
5485
  readonly cannotDeliverToCountryAlert: Locator;
5440
5486
  readonly shippingToAddressNotPossibleAlert: Locator;
5441
- readonly page: Page;
5442
5487
  readonly instanceMeta: HelperFixtureTypes['InstanceMeta'];
5443
5488
  constructor(page: Page, instanceMeta: HelperFixtureTypes['InstanceMeta']);
5444
5489
  getCustomerGroupAlert(customerGroup: string): Promise<Locator>;
@@ -5508,7 +5553,7 @@ declare class AccountRecover implements PageObject {
5508
5553
  url(recoverLink?: string): string;
5509
5554
  }
5510
5555
 
5511
- declare class AccountProfile implements PageObject {
5556
+ declare class AccountProfile extends BaseAccount {
5512
5557
  readonly page: Page;
5513
5558
  readonly instanceMeta: HelperFixtureTypes['InstanceMeta'];
5514
5559
  readonly salutationSelect: Locator;
@@ -5535,7 +5580,7 @@ declare class AccountProfile implements PageObject {
5535
5580
  url(): string;
5536
5581
  }
5537
5582
 
5538
- declare class AccountOrder implements PageObject {
5583
+ declare class AccountOrder extends BaseAccount {
5539
5584
  readonly cartLineItemImages: Locator;
5540
5585
  readonly orderExpandButton: Locator;
5541
5586
  readonly digitalProductDownloadButton: Locator;
@@ -5545,13 +5590,13 @@ declare class AccountOrder implements PageObject {
5545
5590
  readonly orderDetails: Locator;
5546
5591
  readonly invoiceHTML: Locator;
5547
5592
  readonly creditItem: Locator;
5548
- readonly page: Page;
5593
+ readonly noOrdersAlert: Locator;
5549
5594
  constructor(page: Page);
5550
5595
  getOrderByOrderNumber(orderNumber: string): Promise<Record<string, Locator>>;
5551
5596
  url(): string;
5552
5597
  }
5553
5598
 
5554
- declare class AccountAddresses implements PageObject {
5599
+ declare class AccountAddresses extends BaseAccount {
5555
5600
  readonly addNewAddressButton: Locator;
5556
5601
  readonly editBillingAddressButton: Locator;
5557
5602
  readonly editShippingAddressButton: Locator;
@@ -5563,7 +5608,6 @@ declare class AccountAddresses implements PageObject {
5563
5608
  readonly addressDropdownButtons: Locator | undefined;
5564
5609
  readonly availableAddressesUseAsBillingAddress: Locator | undefined;
5565
5610
  readonly availableAddressesUseAsShippingAddress: Locator | undefined;
5566
- readonly page: Page;
5567
5611
  readonly instanceMeta: HelperFixtureTypes['InstanceMeta'];
5568
5612
  constructor(page: Page, instanceMeta: HelperFixtureTypes['InstanceMeta']);
5569
5613
  url(): string;
@@ -5637,7 +5681,7 @@ declare class CheckoutOrderEdit implements PageObject {
5637
5681
  getPaymentMethodButton(paymentMethodName: string): Locator;
5638
5682
  }
5639
5683
 
5640
- declare class AccountAddressCreate implements PageObject {
5684
+ declare class AccountAddressCreate extends BaseAccount {
5641
5685
  readonly salutationDropdown: Locator;
5642
5686
  readonly firstNameInput: Locator;
5643
5687
  readonly lastNameInput: Locator;
@@ -5649,7 +5693,6 @@ declare class AccountAddressCreate implements PageObject {
5649
5693
  readonly countryDropdown: Locator;
5650
5694
  readonly saveAddressButton: Locator;
5651
5695
  readonly stateDropdown: Locator;
5652
- readonly page: Page;
5653
5696
  constructor(page: Page);
5654
5697
  url(): string;
5655
5698
  }
package/dist/index.d.ts CHANGED
@@ -763,7 +763,7 @@ declare class TestDataService {
763
763
  * @param productId - The uuid of the product.
764
764
  * @param manufacturerId - The uuid of the manufacturer.
765
765
  */
766
- assignProductManufacturer(productId: string, manufacturerId: string): Promise<void>;
766
+ assignProductManufacturer(productId: string, manufacturerId: string): Promise<any>;
767
767
  /**
768
768
  * Assigns a country to a currency with default roundings of 2.
769
769
  *
@@ -778,14 +778,14 @@ declare class TestDataService {
778
778
  * @param productId - The uuid of the product.
779
779
  * @param categoryId - The uuid of the category.
780
780
  */
781
- assignProductCategory(productId: string, categoryId: string): Promise<playwright_core.APIResponse>;
781
+ assignProductCategory(productId: string, categoryId: string): Promise<any>;
782
782
  /**
783
783
  * Assigns a tag to a product.
784
784
  *
785
785
  * @param productId - The uuid of the product.
786
786
  * @param tagId - The uuid of the tag.
787
787
  */
788
- assignProductTag(productId: string, tagId: string): Promise<playwright_core.APIResponse>;
788
+ assignProductTag(productId: string, tagId: string): Promise<any>;
789
789
  /**
790
790
  * Assigns a media resource to a manufacturer as a logo.
791
791
  *
@@ -1011,6 +1011,14 @@ declare class TestDataService {
1011
1011
  * @param array
1012
1012
  */
1013
1013
  combineAll: (array: Record<string, string>[][]) => Record<string, string>[][];
1014
+ /**
1015
+ * Generates a random alphanumeric string of a specified length.
1016
+ * Ensures at least one numeric character is included.
1017
+ *
1018
+ * @param length - The desired length of the random string (default: 3)
1019
+ * @returns A random alphanumeric string containing at least one digit
1020
+ */
1021
+ generateRandomId(length?: number): string;
1014
1022
  /**
1015
1023
  * @deprecated Use `getCountry` instead.
1016
1024
  * Retrieves a country Id based on its iso2 code.
@@ -1783,6 +1791,13 @@ declare const BUNDLED_RESOURCES: {
1783
1791
  cannotDeliverToCountry: string;
1784
1792
  shippingNotPossible: string;
1785
1793
  };
1794
+ navigation: {
1795
+ overview: string;
1796
+ yourProfile: string;
1797
+ addresses: string;
1798
+ orders: string;
1799
+ logout: string;
1800
+ };
1786
1801
  recovery: {
1787
1802
  title: string;
1788
1803
  subtitle: string;
@@ -2657,6 +2672,13 @@ declare const BUNDLED_RESOURCES: {
2657
2672
  defaultBillingAddress: string;
2658
2673
  defaultShippingAddress: string;
2659
2674
  };
2675
+ navigation: {
2676
+ overview: string;
2677
+ yourProfile: string;
2678
+ addresses: string;
2679
+ orders: string;
2680
+ logout: string;
2681
+ };
2660
2682
  recovery: {
2661
2683
  title: string;
2662
2684
  subtitle: string;
@@ -3539,6 +3561,13 @@ declare const baseNamespaces: {
3539
3561
  cannotDeliverToCountry: string;
3540
3562
  shippingNotPossible: string;
3541
3563
  };
3564
+ navigation: {
3565
+ overview: string;
3566
+ yourProfile: string;
3567
+ addresses: string;
3568
+ orders: string;
3569
+ logout: string;
3570
+ };
3542
3571
  recovery: {
3543
3572
  title: string;
3544
3573
  subtitle: string;
@@ -5417,7 +5446,7 @@ declare class CheckoutFinish implements PageObject {
5417
5446
  constructor(page: Page);
5418
5447
  url(): string;
5419
5448
  getOrderNumber(): Promise<string | null>;
5420
- getOrderId(): string | null;
5449
+ getOrderId(): string;
5421
5450
  }
5422
5451
 
5423
5452
  declare class CheckoutRegister implements PageObject {
@@ -5427,7 +5456,24 @@ declare class CheckoutRegister implements PageObject {
5427
5456
  url(): string;
5428
5457
  }
5429
5458
 
5430
- declare class Account implements PageObject {
5459
+ declare class AccountNavigation {
5460
+ private readonly page;
5461
+ readonly overviewLink: Locator;
5462
+ readonly yourProfileLink: Locator;
5463
+ readonly addressesLink: Locator;
5464
+ readonly ordersLink: Locator;
5465
+ readonly logoutLink: Locator;
5466
+ constructor(page: Page);
5467
+ }
5468
+
5469
+ declare abstract class BaseAccount implements PageObject {
5470
+ readonly page: Page;
5471
+ readonly navigation: AccountNavigation;
5472
+ protected constructor(page: Page);
5473
+ abstract url(): string;
5474
+ }
5475
+
5476
+ declare class Account extends BaseAccount {
5431
5477
  readonly headline: Locator;
5432
5478
  readonly personalDataCardTitle: Locator;
5433
5479
  readonly paymentMethodCardTitle: Locator;
@@ -5438,7 +5484,6 @@ declare class Account implements PageObject {
5438
5484
  readonly customerGroupRequestMessage: Locator;
5439
5485
  readonly cannotDeliverToCountryAlert: Locator;
5440
5486
  readonly shippingToAddressNotPossibleAlert: Locator;
5441
- readonly page: Page;
5442
5487
  readonly instanceMeta: HelperFixtureTypes['InstanceMeta'];
5443
5488
  constructor(page: Page, instanceMeta: HelperFixtureTypes['InstanceMeta']);
5444
5489
  getCustomerGroupAlert(customerGroup: string): Promise<Locator>;
@@ -5508,7 +5553,7 @@ declare class AccountRecover implements PageObject {
5508
5553
  url(recoverLink?: string): string;
5509
5554
  }
5510
5555
 
5511
- declare class AccountProfile implements PageObject {
5556
+ declare class AccountProfile extends BaseAccount {
5512
5557
  readonly page: Page;
5513
5558
  readonly instanceMeta: HelperFixtureTypes['InstanceMeta'];
5514
5559
  readonly salutationSelect: Locator;
@@ -5535,7 +5580,7 @@ declare class AccountProfile implements PageObject {
5535
5580
  url(): string;
5536
5581
  }
5537
5582
 
5538
- declare class AccountOrder implements PageObject {
5583
+ declare class AccountOrder extends BaseAccount {
5539
5584
  readonly cartLineItemImages: Locator;
5540
5585
  readonly orderExpandButton: Locator;
5541
5586
  readonly digitalProductDownloadButton: Locator;
@@ -5545,13 +5590,13 @@ declare class AccountOrder implements PageObject {
5545
5590
  readonly orderDetails: Locator;
5546
5591
  readonly invoiceHTML: Locator;
5547
5592
  readonly creditItem: Locator;
5548
- readonly page: Page;
5593
+ readonly noOrdersAlert: Locator;
5549
5594
  constructor(page: Page);
5550
5595
  getOrderByOrderNumber(orderNumber: string): Promise<Record<string, Locator>>;
5551
5596
  url(): string;
5552
5597
  }
5553
5598
 
5554
- declare class AccountAddresses implements PageObject {
5599
+ declare class AccountAddresses extends BaseAccount {
5555
5600
  readonly addNewAddressButton: Locator;
5556
5601
  readonly editBillingAddressButton: Locator;
5557
5602
  readonly editShippingAddressButton: Locator;
@@ -5563,7 +5608,6 @@ declare class AccountAddresses implements PageObject {
5563
5608
  readonly addressDropdownButtons: Locator | undefined;
5564
5609
  readonly availableAddressesUseAsBillingAddress: Locator | undefined;
5565
5610
  readonly availableAddressesUseAsShippingAddress: Locator | undefined;
5566
- readonly page: Page;
5567
5611
  readonly instanceMeta: HelperFixtureTypes['InstanceMeta'];
5568
5612
  constructor(page: Page, instanceMeta: HelperFixtureTypes['InstanceMeta']);
5569
5613
  url(): string;
@@ -5637,7 +5681,7 @@ declare class CheckoutOrderEdit implements PageObject {
5637
5681
  getPaymentMethodButton(paymentMethodName: string): Locator;
5638
5682
  }
5639
5683
 
5640
- declare class AccountAddressCreate implements PageObject {
5684
+ declare class AccountAddressCreate extends BaseAccount {
5641
5685
  readonly salutationDropdown: Locator;
5642
5686
  readonly firstNameInput: Locator;
5643
5687
  readonly lastNameInput: Locator;
@@ -5649,7 +5693,6 @@ declare class AccountAddressCreate implements PageObject {
5649
5693
  readonly countryDropdown: Locator;
5650
5694
  readonly saveAddressButton: Locator;
5651
5695
  readonly stateDropdown: Locator;
5652
- readonly page: Page;
5653
5696
  constructor(page: Page);
5654
5697
  url(): string;
5655
5698
  }
package/dist/index.mjs CHANGED
@@ -1239,6 +1239,13 @@ const general$7 = {
1239
1239
  cannotDeliverToCountry: "We can not deliver to the country that is stored in your delivery address.",
1240
1240
  shippingNotPossible: "Shipping to the selected shipping address is currently not possible."
1241
1241
  };
1242
+ const navigation$1 = {
1243
+ overview: "Overview",
1244
+ yourProfile: "Your profile",
1245
+ addresses: "Addresses",
1246
+ orders: "Orders",
1247
+ logout: "Log out"
1248
+ };
1242
1249
  const recovery$1 = {
1243
1250
  title: "Password recovery",
1244
1251
  subtitle: "We will send you a confirmation email. Click the link in that email in order to change your password.",
@@ -1259,6 +1266,7 @@ const storefrontAccount = {
1259
1266
  addresses: addresses$1,
1260
1267
  registration: registration$1,
1261
1268
  general: general$7,
1269
+ navigation: navigation$1,
1262
1270
  recovery: recovery$1,
1263
1271
  payment: payment$1
1264
1272
  };
@@ -2311,6 +2319,13 @@ const general$1 = {
2311
2319
  defaultBillingAddress: "Hinzufügen",
2312
2320
  defaultShippingAddress: "Hinzufügen"
2313
2321
  };
2322
+ const navigation = {
2323
+ overview: "Übersicht",
2324
+ yourProfile: "Persönliches Profil",
2325
+ addresses: "Adressen",
2326
+ orders: "Bestellungen",
2327
+ logout: "Abmelden"
2328
+ };
2314
2329
  const recovery = {
2315
2330
  title: "Passwort-Wiederherstellung",
2316
2331
  subtitle: "Wir senden Ihnen eine Bestätigungs-E-Mail. Klicken Sie auf den Link in dieser E-Mail, um Ihr Passwort zu ändern.",
@@ -2344,6 +2359,7 @@ const deStorefrontAccount = {
2344
2359
  addresses: addresses,
2345
2360
  registration: registration,
2346
2361
  general: general$1,
2362
+ navigation: navigation,
2347
2363
  recovery: recovery,
2348
2364
  payment: payment,
2349
2365
  tasks: tasks
@@ -4278,11 +4294,14 @@ class TestDataService {
4278
4294
  * @param manufacturerId - The uuid of the manufacturer.
4279
4295
  */
4280
4296
  async assignProductManufacturer(productId, manufacturerId) {
4281
- await this.AdminApiClient.patch(`product/${productId}?_response=basic`, {
4297
+ const assignProductManufacturerResponse = await this.AdminApiClient.patch(`product/${productId}?_response=basic`, {
4282
4298
  data: {
4283
4299
  manufacturerId
4284
4300
  }
4285
4301
  });
4302
+ expect(assignProductManufacturerResponse.ok()).toBeTruthy();
4303
+ const { data: productManufacturer } = await assignProductManufacturerResponse.json();
4304
+ return productManufacturer;
4286
4305
  }
4287
4306
  /**
4288
4307
  * Assigns a country to a currency with default roundings of 2.
@@ -4328,7 +4347,7 @@ class TestDataService {
4328
4347
  * @param categoryId - The uuid of the category.
4329
4348
  */
4330
4349
  async assignProductCategory(productId, categoryId) {
4331
- return await this.AdminApiClient.patch(`product/${productId}?_response=basic`, {
4350
+ const assignProductCategoryResponse = await this.AdminApiClient.patch(`product/${productId}?_response=basic`, {
4332
4351
  data: {
4333
4352
  categories: [
4334
4353
  {
@@ -4337,6 +4356,9 @@ class TestDataService {
4337
4356
  ]
4338
4357
  }
4339
4358
  });
4359
+ expect(assignProductCategoryResponse.ok()).toBeTruthy();
4360
+ const { data: productCategory } = await assignProductCategoryResponse.json();
4361
+ return productCategory;
4340
4362
  }
4341
4363
  /**
4342
4364
  * Assigns a tag to a product.
@@ -4345,7 +4367,7 @@ class TestDataService {
4345
4367
  * @param tagId - The uuid of the tag.
4346
4368
  */
4347
4369
  async assignProductTag(productId, tagId) {
4348
- return await this.AdminApiClient.patch(`product/${productId}?_response=basic`, {
4370
+ const assignProductTagResponse = await this.AdminApiClient.patch(`product/${productId}?_response=basic`, {
4349
4371
  data: {
4350
4372
  tags: [
4351
4373
  {
@@ -4354,6 +4376,9 @@ class TestDataService {
4354
4376
  ]
4355
4377
  }
4356
4378
  });
4379
+ expect(assignProductTagResponse.ok()).toBeTruthy();
4380
+ const { data: productTag } = await assignProductTagResponse.json();
4381
+ return productTag;
4357
4382
  }
4358
4383
  /**
4359
4384
  * Assigns a media resource to a manufacturer as a logo.
@@ -5036,6 +5061,27 @@ class TestDataService {
5036
5061
  helper([], 0);
5037
5062
  return result;
5038
5063
  };
5064
+ /**
5065
+ * Generates a random alphanumeric string of a specified length.
5066
+ * Ensures at least one numeric character is included.
5067
+ *
5068
+ * @param length - The desired length of the random string (default: 3)
5069
+ * @returns A random alphanumeric string containing at least one digit
5070
+ */
5071
+ generateRandomId(length = 3) {
5072
+ const LETTERS = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
5073
+ const DIGITS = "0123456789";
5074
+ const ALL_CHARS = LETTERS + DIGITS;
5075
+ const chars = Array.from(
5076
+ { length },
5077
+ () => ALL_CHARS.charAt(Math.floor(Math.random() * ALL_CHARS.length))
5078
+ );
5079
+ if (!chars.some((char) => DIGITS.includes(char))) {
5080
+ const randomIndex = Math.floor(Math.random() * length);
5081
+ chars[randomIndex] = DIGITS.charAt(Math.floor(Math.random() * DIGITS.length));
5082
+ }
5083
+ return chars.join("");
5084
+ }
5039
5085
  /**
5040
5086
  * @deprecated Use `getCountry` instead.
5041
5087
  * Retrieves a country Id based on its iso2 code.
@@ -5071,8 +5117,8 @@ class TestDataService {
5071
5117
  const basicCountry = {
5072
5118
  id: countryUuid,
5073
5119
  name: "Country-" + countryId,
5074
- iso: "" + countryId.substring(0, 2),
5075
- iso3: "" + countryId.substring(0, 3),
5120
+ iso: this.generateRandomId(2),
5121
+ iso3: this.generateRandomId(3),
5076
5122
  active: true,
5077
5123
  shippingAvailable: true
5078
5124
  };
@@ -5084,7 +5130,7 @@ class TestDataService {
5084
5130
  id: currencyUuid,
5085
5131
  name: "Currency-" + currencyId,
5086
5132
  shortName: "CUR" + currencyId,
5087
- isoCode: "" + currencyId.substring(0, 3),
5133
+ isoCode: this.generateRandomId(3),
5088
5134
  symbol: "C$",
5089
5135
  factor: 2.4,
5090
5136
  itemRounding: {
@@ -6509,7 +6555,7 @@ class CheckoutFinish {
6509
6555
  const url = this.page.url();
6510
6556
  const [, searchString] = url.split("?");
6511
6557
  const params = new URLSearchParams(searchString);
6512
- return params.get("orderId");
6558
+ return params.get("orderId") ?? "";
6513
6559
  }
6514
6560
  }
6515
6561
 
@@ -6525,7 +6571,32 @@ class CheckoutRegister {
6525
6571
  }
6526
6572
  }
6527
6573
 
6528
- class Account {
6574
+ class AccountNavigation {
6575
+ constructor(page) {
6576
+ this.page = page;
6577
+ this.overviewLink = page.getByRole("link", { name: translate("storefront:account:navigation.overview") });
6578
+ this.yourProfileLink = page.getByRole("link", { name: translate("storefront:account:navigation.yourProfile") });
6579
+ this.addressesLink = page.getByRole("link", { name: translate("storefront:account:navigation.addresses") });
6580
+ this.ordersLink = page.getByRole("link", { name: translate("storefront:account:navigation.orders") });
6581
+ this.logoutLink = page.getByRole("link", { name: translate("storefront:account:navigation.logout") });
6582
+ }
6583
+ overviewLink;
6584
+ yourProfileLink;
6585
+ addressesLink;
6586
+ ordersLink;
6587
+ logoutLink;
6588
+ }
6589
+
6590
+ class BaseAccount {
6591
+ page;
6592
+ navigation;
6593
+ constructor(page) {
6594
+ this.page = page;
6595
+ this.navigation = new AccountNavigation(page);
6596
+ }
6597
+ }
6598
+
6599
+ class Account extends BaseAccount {
6529
6600
  headline;
6530
6601
  personalDataCardTitle;
6531
6602
  paymentMethodCardTitle;
@@ -6536,10 +6607,9 @@ class Account {
6536
6607
  customerGroupRequestMessage;
6537
6608
  cannotDeliverToCountryAlert;
6538
6609
  shippingToAddressNotPossibleAlert;
6539
- page;
6540
6610
  instanceMeta;
6541
6611
  constructor(page, instanceMeta) {
6542
- this.page = page;
6612
+ super(page);
6543
6613
  this.instanceMeta = instanceMeta;
6544
6614
  this.headline = page.getByRole("heading", { name: translate("storefront:account:general.overview") });
6545
6615
  this.personalDataCardTitle = page.getByRole("heading", { name: translate("storefront:account:general.personalData") });
@@ -6695,7 +6765,7 @@ class AccountRecover {
6695
6765
  }
6696
6766
  }
6697
6767
 
6698
- class AccountProfile {
6768
+ class AccountProfile extends BaseAccount {
6699
6769
  page;
6700
6770
  instanceMeta;
6701
6771
  salutationSelect;
@@ -6719,6 +6789,7 @@ class AccountProfile {
6719
6789
  emailUpdateFailureAlert;
6720
6790
  passwordUpdateFailureAlert;
6721
6791
  constructor(page, instanceMeta) {
6792
+ super(page);
6722
6793
  this.page = page;
6723
6794
  this.instanceMeta = instanceMeta;
6724
6795
  this.salutationSelect = page.getByLabel(translate("storefront:account:common.salutation"));
@@ -6760,7 +6831,7 @@ class AccountProfile {
6760
6831
  }
6761
6832
  }
6762
6833
 
6763
- class AccountOrder {
6834
+ class AccountOrder extends BaseAccount {
6764
6835
  cartLineItemImages;
6765
6836
  orderExpandButton;
6766
6837
  digitalProductDownloadButton;
@@ -6770,9 +6841,9 @@ class AccountOrder {
6770
6841
  orderDetails;
6771
6842
  invoiceHTML;
6772
6843
  creditItem;
6773
- page;
6844
+ noOrdersAlert;
6774
6845
  constructor(page) {
6775
- this.page = page;
6846
+ super(page);
6776
6847
  this.orderExpandButton = page.getByRole("button", { name: new RegExp(`${translate("storefront:account:orders.expand")}|${translate("storefront:account:orders.showDetails")}`) }).first();
6777
6848
  this.cartLineItemImages = page.locator(".line-item-img-link");
6778
6849
  this.digitalProductDownloadButton = page.getByRole("link", { name: translate("storefront:account:orders.download") }).first();
@@ -6782,6 +6853,7 @@ class AccountOrder {
6782
6853
  this.orderDetails = page.locator(".order-item-detail");
6783
6854
  this.invoiceHTML = page.getByRole("link", { name: ".html" });
6784
6855
  this.creditItem = page.locator(`.line-item:has-text("${translate("storefront:account:orders.creditItem")}")`);
6856
+ this.noOrdersAlert = page.locator(".alert-warning");
6785
6857
  }
6786
6858
  async getOrderByOrderNumber(orderNumber) {
6787
6859
  const orderItem = this.page.getByRole("listitem").getByLabel(`${translate("storefront:account:orders.orderNumber")} ${orderNumber}`);
@@ -6827,7 +6899,7 @@ class AccountOrder {
6827
6899
  }
6828
6900
  }
6829
6901
 
6830
- class AccountAddresses {
6902
+ class AccountAddresses extends BaseAccount {
6831
6903
  addNewAddressButton;
6832
6904
  editBillingAddressButton;
6833
6905
  editShippingAddressButton;
@@ -6839,10 +6911,9 @@ class AccountAddresses {
6839
6911
  addressDropdownButtons;
6840
6912
  availableAddressesUseAsBillingAddress;
6841
6913
  availableAddressesUseAsShippingAddress;
6842
- page;
6843
6914
  instanceMeta;
6844
6915
  constructor(page, instanceMeta) {
6845
- this.page = page;
6916
+ super(page);
6846
6917
  this.instanceMeta = instanceMeta;
6847
6918
  this.addNewAddressButton = page.getByRole("link", { name: /Add (new )?address/ });
6848
6919
  this.editBillingAddressButton = page.getByRole("link", { name: translate("storefront:address:actions.editAddress") }).first();
@@ -6985,7 +7056,7 @@ class CheckoutOrderEdit {
6985
7056
  }
6986
7057
  }
6987
7058
 
6988
- class AccountAddressCreate {
7059
+ class AccountAddressCreate extends BaseAccount {
6989
7060
  salutationDropdown;
6990
7061
  firstNameInput;
6991
7062
  lastNameInput;
@@ -6997,9 +7068,8 @@ class AccountAddressCreate {
6997
7068
  countryDropdown;
6998
7069
  saveAddressButton;
6999
7070
  stateDropdown;
7000
- page;
7001
7071
  constructor(page) {
7002
- this.page = page;
7072
+ super(page);
7003
7073
  this.salutationDropdown = page.getByRole("combobox", { name: translate("storefront:address:common.salutation") });
7004
7074
  this.firstNameInput = page.getByRole("textbox", { name: translate("storefront:address:common.firstName") });
7005
7075
  this.lastNameInput = page.getByRole("textbox", { name: translate("storefront:address:common.lastName") });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shopware-ag/acceptance-test-suite",
3
- "version": "11.33.0",
3
+ "version": "11.33.2",
4
4
  "description": "Shopware Acceptance Test Suite",
5
5
  "author": "shopware AG",
6
6
  "license": "MIT",