@shopware-ag/acceptance-test-suite 11.1.0 → 11.1.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
@@ -1225,6 +1225,7 @@ declare class CheckoutRegister implements PageObject {
1225
1225
 
1226
1226
  declare class Account implements PageObject {
1227
1227
  readonly page: Page;
1228
+ readonly instanceMeta: HelperFixtureTypes['InstanceMeta'];
1228
1229
  readonly headline: Locator;
1229
1230
  readonly personalDataCardTitle: Locator;
1230
1231
  readonly paymentMethodCardTitle: Locator;
@@ -1233,7 +1234,7 @@ declare class Account implements PageObject {
1233
1234
  readonly newsletterCheckbox: Locator;
1234
1235
  readonly newsletterRegistrationSuccessMessage: Locator;
1235
1236
  readonly customerGroupRequestMessage: Locator;
1236
- constructor(page: Page);
1237
+ constructor(page: Page, instanceMeta: HelperFixtureTypes['InstanceMeta']);
1237
1238
  getCustomerGroupAlert(customerGroup: string): Promise<Locator>;
1238
1239
  url(): string;
1239
1240
  }
@@ -1531,6 +1532,7 @@ declare class CustomerListing implements PageObject {
1531
1532
 
1532
1533
  declare class CustomerDetail implements PageObject {
1533
1534
  readonly page: Page;
1535
+ readonly instanceMeta: HelperFixtureTypes['InstanceMeta'];
1534
1536
  readonly editButton: Locator;
1535
1537
  readonly generalTab: Locator;
1536
1538
  readonly accountCard: Locator;
@@ -1542,7 +1544,7 @@ declare class CustomerDetail implements PageObject {
1542
1544
  readonly customerGroupDeclineButton: Locator;
1543
1545
  readonly tagList: Locator;
1544
1546
  readonly tagItems: Locator;
1545
- constructor(page: Page);
1547
+ constructor(page: Page, instanceMeta: HelperFixtureTypes['InstanceMeta']);
1546
1548
  getCustomFieldSetCardContentByName(customFieldSetName: string): Promise<Record<string, Locator>>;
1547
1549
  getCustomerGroupAlert(customerGroup: string): Promise<Locator>;
1548
1550
  getCustomerGroup(): Promise<Locator>;
@@ -1592,6 +1594,7 @@ declare class CustomerGroupDetail extends CustomerGroupCreate implements PageObj
1592
1594
 
1593
1595
  declare class FirstRunWizard implements PageObject {
1594
1596
  readonly page: Page;
1597
+ readonly instanceMeta: HelperFixtureTypes['InstanceMeta'];
1595
1598
  readonly nextButton: Locator;
1596
1599
  readonly configureLaterButton: Locator;
1597
1600
  readonly skipButton: Locator;
@@ -1617,6 +1620,7 @@ declare class FirstRunWizard implements PageObject {
1617
1620
  readonly salesChannelSelectionMultiSelect: Locator;
1618
1621
  readonly smtpServerTitle: Locator;
1619
1622
  readonly smtpServerFields: Locator;
1623
+ readonly smtpServerFieldInputs: Locator;
1620
1624
  readonly payPalPaymethods: Locator;
1621
1625
  readonly payPalInfoCard: Locator;
1622
1626
  readonly emailAddressInputField: Locator;
@@ -1630,7 +1634,7 @@ declare class FirstRunWizard implements PageObject {
1630
1634
  readonly toolsSelector: Locator;
1631
1635
  readonly recommendationHeader: Locator;
1632
1636
  readonly toolsRecommendedPlugin: Locator;
1633
- constructor(page: Page);
1637
+ constructor(page: Page, instanceMeta: HelperFixtureTypes['InstanceMeta']);
1634
1638
  url(): string;
1635
1639
  }
1636
1640
 
package/dist/index.d.ts CHANGED
@@ -1225,6 +1225,7 @@ declare class CheckoutRegister implements PageObject {
1225
1225
 
1226
1226
  declare class Account implements PageObject {
1227
1227
  readonly page: Page;
1228
+ readonly instanceMeta: HelperFixtureTypes['InstanceMeta'];
1228
1229
  readonly headline: Locator;
1229
1230
  readonly personalDataCardTitle: Locator;
1230
1231
  readonly paymentMethodCardTitle: Locator;
@@ -1233,7 +1234,7 @@ declare class Account implements PageObject {
1233
1234
  readonly newsletterCheckbox: Locator;
1234
1235
  readonly newsletterRegistrationSuccessMessage: Locator;
1235
1236
  readonly customerGroupRequestMessage: Locator;
1236
- constructor(page: Page);
1237
+ constructor(page: Page, instanceMeta: HelperFixtureTypes['InstanceMeta']);
1237
1238
  getCustomerGroupAlert(customerGroup: string): Promise<Locator>;
1238
1239
  url(): string;
1239
1240
  }
@@ -1531,6 +1532,7 @@ declare class CustomerListing implements PageObject {
1531
1532
 
1532
1533
  declare class CustomerDetail implements PageObject {
1533
1534
  readonly page: Page;
1535
+ readonly instanceMeta: HelperFixtureTypes['InstanceMeta'];
1534
1536
  readonly editButton: Locator;
1535
1537
  readonly generalTab: Locator;
1536
1538
  readonly accountCard: Locator;
@@ -1542,7 +1544,7 @@ declare class CustomerDetail implements PageObject {
1542
1544
  readonly customerGroupDeclineButton: Locator;
1543
1545
  readonly tagList: Locator;
1544
1546
  readonly tagItems: Locator;
1545
- constructor(page: Page);
1547
+ constructor(page: Page, instanceMeta: HelperFixtureTypes['InstanceMeta']);
1546
1548
  getCustomFieldSetCardContentByName(customFieldSetName: string): Promise<Record<string, Locator>>;
1547
1549
  getCustomerGroupAlert(customerGroup: string): Promise<Locator>;
1548
1550
  getCustomerGroup(): Promise<Locator>;
@@ -1592,6 +1594,7 @@ declare class CustomerGroupDetail extends CustomerGroupCreate implements PageObj
1592
1594
 
1593
1595
  declare class FirstRunWizard implements PageObject {
1594
1596
  readonly page: Page;
1597
+ readonly instanceMeta: HelperFixtureTypes['InstanceMeta'];
1595
1598
  readonly nextButton: Locator;
1596
1599
  readonly configureLaterButton: Locator;
1597
1600
  readonly skipButton: Locator;
@@ -1617,6 +1620,7 @@ declare class FirstRunWizard implements PageObject {
1617
1620
  readonly salesChannelSelectionMultiSelect: Locator;
1618
1621
  readonly smtpServerTitle: Locator;
1619
1622
  readonly smtpServerFields: Locator;
1623
+ readonly smtpServerFieldInputs: Locator;
1620
1624
  readonly payPalPaymethods: Locator;
1621
1625
  readonly payPalInfoCard: Locator;
1622
1626
  readonly emailAddressInputField: Locator;
@@ -1630,7 +1634,7 @@ declare class FirstRunWizard implements PageObject {
1630
1634
  readonly toolsSelector: Locator;
1631
1635
  readonly recommendationHeader: Locator;
1632
1636
  readonly toolsRecommendedPlugin: Locator;
1633
- constructor(page: Page);
1637
+ constructor(page: Page, instanceMeta: HelperFixtureTypes['InstanceMeta']);
1634
1638
  url(): string;
1635
1639
  }
1636
1640
 
package/dist/index.mjs CHANGED
@@ -3388,8 +3388,9 @@ var __publicField$G = (obj, key, value) => {
3388
3388
  return value;
3389
3389
  };
3390
3390
  class Account {
3391
- constructor(page) {
3391
+ constructor(page, instanceMeta) {
3392
3392
  this.page = page;
3393
+ this.instanceMeta = instanceMeta;
3393
3394
  __publicField$G(this, "headline");
3394
3395
  __publicField$G(this, "personalDataCardTitle");
3395
3396
  __publicField$G(this, "paymentMethodCardTitle");
@@ -3405,7 +3406,11 @@ class Account {
3405
3406
  this.shippingAddressCardTitle = page.getByRole("heading", { name: "Default shipping address" });
3406
3407
  this.newsletterCheckbox = page.getByLabel("Yes, I would like to");
3407
3408
  this.newsletterRegistrationSuccessMessage = page.getByText("You have successfully subscribed to the newsletter.");
3408
- this.customerGroupRequestMessage = page.locator(".alert-content");
3409
+ if (satisfies(instanceMeta.version, "<6.7")) {
3410
+ this.customerGroupRequestMessage = page.locator(".alert-content");
3411
+ } else {
3412
+ this.customerGroupRequestMessage = page.locator(".alert-content-container");
3413
+ }
3409
3414
  }
3410
3415
  async getCustomerGroupAlert(customerGroup) {
3411
3416
  return this.customerGroupRequestMessage.getByText(`Access to customer group "${customerGroup}" requested.`);
@@ -3817,8 +3822,8 @@ const test$6 = test$e.extend({
3817
3822
  StorefrontCheckoutRegister: async ({ StorefrontPage }, use) => {
3818
3823
  await use(new CheckoutRegister(StorefrontPage));
3819
3824
  },
3820
- StorefrontAccount: async ({ StorefrontPage }, use) => {
3821
- await use(new Account(StorefrontPage));
3825
+ StorefrontAccount: async ({ StorefrontPage, InstanceMeta }, use) => {
3826
+ await use(new Account(StorefrontPage, InstanceMeta));
3822
3827
  },
3823
3828
  StorefrontAccountLogin: async ({ StorefrontPage }, use) => {
3824
3829
  await use(new AccountLogin(StorefrontPage));
@@ -3935,7 +3940,7 @@ class ProductDetail {
3935
3940
  this.activeForAllSalesChannelsToggle = page.locator(".sw-field--product-active").getByRole("checkbox");
3936
3941
  this.tagsInput = page.locator(".sw-product-category-form__tag-field");
3937
3942
  this.saleChannelsInput = page.locator(".sw-product-detail__select-visibility");
3938
- this.releaseDateInput = page.locator(".sw-block-field", { hasText: "Release Date" }).getByPlaceholder("Enter release date...").last();
3943
+ this.releaseDateInput = page.locator(".sw-product-detail-base__labelling-card").locator(".form-control");
3939
3944
  this.uploadMediaButton = page.getByRole("button", { name: "Upload file" });
3940
3945
  this.coverImage = page.locator(".sw-product-media-form__cover-image");
3941
3946
  this.productImage = page.locator(".sw-media-preview-v2__item");
@@ -4077,8 +4082,9 @@ var __publicField$t = (obj, key, value) => {
4077
4082
  return value;
4078
4083
  };
4079
4084
  class CustomerDetail {
4080
- constructor(page) {
4085
+ constructor(page, instanceMeta) {
4081
4086
  this.page = page;
4087
+ this.instanceMeta = instanceMeta;
4082
4088
  __publicField$t(this, "editButton");
4083
4089
  __publicField$t(this, "generalTab");
4084
4090
  __publicField$t(this, "accountCard");
@@ -4096,7 +4102,11 @@ class CustomerDetail {
4096
4102
  this.customFieldCard = page.locator(".sw-card").getByText("Custom fields");
4097
4103
  this.customFieldSetTabs = this.customFieldCard.locator(".sw-tabs-item");
4098
4104
  this.customFieldSetTabCustomContent = this.customFieldCard.locator(".sw-tabs__custom-content");
4099
- this.customerGroupRequestMessage = page.locator(".sw-alert__message");
4105
+ if (satisfies(instanceMeta.version, "<6.7")) {
4106
+ this.customerGroupRequestMessage = page.locator(".sw-alert__message");
4107
+ } else {
4108
+ this.customerGroupRequestMessage = page.locator(".mt-banner__message");
4109
+ }
4100
4110
  this.customerGroupAcceptButton = page.getByRole("button", { name: "Accept" });
4101
4111
  this.customerGroupDeclineButton = page.getByRole("button", { name: "Decline" });
4102
4112
  this.tagList = page.locator(".sw-customer-card__tag-select").locator(".sw-select-selection-list");
@@ -4243,8 +4253,9 @@ var __publicField$p = (obj, key, value) => {
4243
4253
  return value;
4244
4254
  };
4245
4255
  class FirstRunWizard {
4246
- constructor(page) {
4256
+ constructor(page, instanceMeta) {
4247
4257
  this.page = page;
4258
+ this.instanceMeta = instanceMeta;
4248
4259
  __publicField$p(this, "nextButton");
4249
4260
  __publicField$p(this, "configureLaterButton");
4250
4261
  __publicField$p(this, "skipButton");
@@ -4270,6 +4281,7 @@ class FirstRunWizard {
4270
4281
  __publicField$p(this, "salesChannelSelectionMultiSelect");
4271
4282
  __publicField$p(this, "smtpServerTitle");
4272
4283
  __publicField$p(this, "smtpServerFields");
4284
+ __publicField$p(this, "smtpServerFieldInputs");
4273
4285
  __publicField$p(this, "payPalPaymethods");
4274
4286
  __publicField$p(this, "payPalInfoCard");
4275
4287
  __publicField$p(this, "emailAddressInputField");
@@ -4297,11 +4309,16 @@ class FirstRunWizard {
4297
4309
  this.dataImportCard = page.locator(".sw-first-run-wizard-data-import__card");
4298
4310
  this.defaultValuesHeader = page.locator(".sw-modal__title", { hasText: "Setup default values" });
4299
4311
  this.salesChannelSelectionMultiSelect = page.getByPlaceholder("Select Sales Channels...");
4300
- this.salesChannelSelectionList = page.locator(".sw-popover__wrapper").getByRole("listitem");
4312
+ if (satisfies(instanceMeta.version, "<6.7")) {
4313
+ this.salesChannelSelectionList = page.locator(".sw-popover__wrapper").getByRole("listitem");
4314
+ } else {
4315
+ this.salesChannelSelectionList = page.locator(".sw-select-result-list-popover").getByRole("listitem");
4316
+ }
4301
4317
  this.mailerConfigurationHeader = page.locator(".sw-modal__title", { hasText: "Mailer configuration" });
4302
4318
  this.smtpServerButton = page.getByText("Configure own SMTP server", { exact: true });
4303
4319
  this.smtpServerTitle = page.getByText("SMTP server", { exact: true });
4304
4320
  this.smtpServerFields = page.locator(".sw-field");
4321
+ this.smtpServerFieldInputs = page.locator(".mt-field");
4305
4322
  this.payPalSetupHeader = page.locator(".sw-modal__title", { hasText: "Setup PayPal" });
4306
4323
  this.payPalPaymethods = page.locator(".paymethod");
4307
4324
  this.payPalInfoCard = page.locator(".sw-first-run-wizard-paypal-info");
@@ -5255,14 +5272,14 @@ class ProductBulkEdit {
5255
5272
  this.changeManufacturerRow = page.locator(".sw-bulk-edit-change-field-manufacturerId");
5256
5273
  this.changeManufacturerCheckbox = this.changeManufacturerRow.getByRole("checkbox");
5257
5274
  this.manufacturerDropdown = this.changeManufacturerRow.locator(".sw-select__selection");
5258
- this.manufacturerDropdownInput = this.changeManufacturerRow.getByPlaceholder("Select manufacturer...");
5275
+ this.manufacturerDropdownInput = this.changeManufacturerRow.locator(".sw-entity-single-select__selection-input");
5259
5276
  this.manufacturerListResult = this.changeManufacturerRow.getByRole("list");
5260
5277
  this.changeActiveRow = page.locator(".sw-bulk-edit-change-field-active");
5261
5278
  this.changeActiveCheckbox = this.changeActiveRow.getByRole("checkbox").first();
5262
5279
  this.activeToggle = this.changeActiveRow.getByRole("checkbox").last();
5263
5280
  this.changePriceRow = page.locator(".sw-bulk-edit-change-field-price");
5264
5281
  this.changePriceCheckbox = this.changePriceRow.getByRole("checkbox");
5265
- this.grossPriceInput = this.changePriceRow.getByPlaceholder("Enter gross price...");
5282
+ this.grossPriceInput = this.changePriceRow.locator("#price-gross");
5266
5283
  this.changeReleaseDateRow = page.locator(".sw-bulk-edit-change-field-releaseDate");
5267
5284
  this.changeReleaseDateCheckbox = this.changeReleaseDateRow.getByRole("checkbox");
5268
5285
  this.releaseDateInput = this.changeReleaseDateRow.getByRole("textbox").last();
@@ -5270,17 +5287,17 @@ class ProductBulkEdit {
5270
5287
  this.changeStockCheckbox = this.changeStockRow.getByRole("checkbox");
5271
5288
  this.stockChangeMethodDropdown = this.changeStockRow.locator(".sw-single-select__selection-text");
5272
5289
  this.stockChangeMethodInput = this.changeStockRow.locator(".sw-single-select__selection-input");
5273
- this.stockInput = this.changeStockRow.getByPlaceholder("Enter quantity in stock...");
5290
+ this.stockInput = this.changeStockRow.locator("#stock");
5274
5291
  this.changeRestockTimeRow = page.locator(".sw-bulk-edit-change-field-restockTime");
5275
5292
  this.changeRestockTimeCheckbox = this.changeRestockTimeRow.getByRole("checkbox");
5276
5293
  this.restockTimeChangeMethodDropdown = this.changeRestockTimeRow.locator(".sw-single-select__selection-text");
5277
5294
  this.restockTimeChangeMethodInput = this.changeRestockTimeRow.locator(".sw-single-select__selection-input");
5278
- this.restockTimeInput = this.changeRestockTimeRow.getByPlaceholder("Enter restock time in days...");
5295
+ this.restockTimeInput = this.changeRestockTimeRow.locator("#restock-time");
5279
5296
  this.changeTagsRow = page.locator(".sw-bulk-edit-change-field-tags");
5280
5297
  this.changeTagsCheckbox = this.changeTagsRow.getByRole("checkbox");
5281
5298
  this.tagsChangeMethodDropdown = this.changeTagsRow.locator(".sw-single-select__selection-text");
5282
5299
  this.tagsChangeMethodInput = this.changeTagsRow.locator(".sw-single-select__selection-input");
5283
- this.tagsInput = this.changeTagsRow.getByPlaceholder("Enter tags...");
5300
+ this.tagsInput = this.changeTagsRow.locator(".sw-select-selection-list__input");
5284
5301
  this.changeSalesChannelRow = page.locator(".sw-bulk-edit-change-field-visibilities");
5285
5302
  this.changeSalesChannelCheckbox = this.changeSalesChannelRow.getByRole("checkbox");
5286
5303
  this.salesChannelChangeMethodDropdown = this.changeSalesChannelRow.locator(".sw-single-select__selection-text");
@@ -5422,8 +5439,8 @@ const test$5 = test$e.extend({
5422
5439
  AdminCustomerListing: async ({ AdminPage }, use) => {
5423
5440
  await use(new CustomerListing(AdminPage));
5424
5441
  },
5425
- AdminCustomerDetail: async ({ AdminPage }, use) => {
5426
- await use(new CustomerDetail(AdminPage));
5442
+ AdminCustomerDetail: async ({ AdminPage, InstanceMeta }, use) => {
5443
+ await use(new CustomerDetail(AdminPage, InstanceMeta));
5427
5444
  },
5428
5445
  AdminCustomerGroupListing: async ({ AdminPage }, use) => {
5429
5446
  await use(new CustomerGroupListing(AdminPage));
@@ -5434,8 +5451,8 @@ const test$5 = test$e.extend({
5434
5451
  AdminCustomerGroupDetail: async ({ AdminPage }, use) => {
5435
5452
  await use(new CustomerGroupDetail(AdminPage));
5436
5453
  },
5437
- AdminFirstRunWizard: async ({ AdminPage }, use) => {
5438
- await use(new FirstRunWizard(AdminPage));
5454
+ AdminFirstRunWizard: async ({ AdminPage, InstanceMeta }, use) => {
5455
+ await use(new FirstRunWizard(AdminPage, InstanceMeta));
5439
5456
  },
5440
5457
  AdminFlowBuilderCreate: async ({ AdminPage }, use) => {
5441
5458
  await use(new FlowBuilderCreate(AdminPage));
@@ -6177,6 +6194,7 @@ const BulkEditProducts = test$e.extend({
6177
6194
  if (changes["releaseDate"] != null) {
6178
6195
  await AdminProductBulkEdit.changeReleaseDateCheckbox.click();
6179
6196
  await AdminProductBulkEdit.releaseDateInput.fill(changes["releaseDate"].value);
6197
+ await AdminProductBulkEdit.releaseDateInput.press("Enter");
6180
6198
  }
6181
6199
  if (changes["stock"] != null) {
6182
6200
  await AdminProductBulkEdit.changeStockCheckbox.click();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shopware-ag/acceptance-test-suite",
3
- "version": "11.1.0",
3
+ "version": "11.1.2",
4
4
  "description": "Shopware Acceptance Test Suite",
5
5
  "author": "shopware AG",
6
6
  "license": "MIT",