@shopware-ag/acceptance-test-suite 11.1.0 → 11.1.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
@@ -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;
@@ -1630,7 +1633,7 @@ declare class FirstRunWizard implements PageObject {
1630
1633
  readonly toolsSelector: Locator;
1631
1634
  readonly recommendationHeader: Locator;
1632
1635
  readonly toolsRecommendedPlugin: Locator;
1633
- constructor(page: Page);
1636
+ constructor(page: Page, instanceMeta: HelperFixtureTypes['InstanceMeta']);
1634
1637
  url(): string;
1635
1638
  }
1636
1639
 
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;
@@ -1630,7 +1633,7 @@ declare class FirstRunWizard implements PageObject {
1630
1633
  readonly toolsSelector: Locator;
1631
1634
  readonly recommendationHeader: Locator;
1632
1635
  readonly toolsRecommendedPlugin: Locator;
1633
- constructor(page: Page);
1636
+ constructor(page: Page, instanceMeta: HelperFixtureTypes['InstanceMeta']);
1634
1637
  url(): string;
1635
1638
  }
1636
1639
 
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");
@@ -4297,7 +4308,11 @@ class FirstRunWizard {
4297
4308
  this.dataImportCard = page.locator(".sw-first-run-wizard-data-import__card");
4298
4309
  this.defaultValuesHeader = page.locator(".sw-modal__title", { hasText: "Setup default values" });
4299
4310
  this.salesChannelSelectionMultiSelect = page.getByPlaceholder("Select Sales Channels...");
4300
- this.salesChannelSelectionList = page.locator(".sw-popover__wrapper").getByRole("listitem");
4311
+ if (satisfies(instanceMeta.version, "<6.7")) {
4312
+ this.salesChannelSelectionList = page.locator(".sw-popover__wrapper").getByRole("listitem");
4313
+ } else {
4314
+ this.salesChannelSelectionList = page.locator(".sw-select-result-list-popover").getByRole("listitem");
4315
+ }
4301
4316
  this.mailerConfigurationHeader = page.locator(".sw-modal__title", { hasText: "Mailer configuration" });
4302
4317
  this.smtpServerButton = page.getByText("Configure own SMTP server", { exact: true });
4303
4318
  this.smtpServerTitle = page.getByText("SMTP server", { exact: true });
@@ -5255,14 +5270,14 @@ class ProductBulkEdit {
5255
5270
  this.changeManufacturerRow = page.locator(".sw-bulk-edit-change-field-manufacturerId");
5256
5271
  this.changeManufacturerCheckbox = this.changeManufacturerRow.getByRole("checkbox");
5257
5272
  this.manufacturerDropdown = this.changeManufacturerRow.locator(".sw-select__selection");
5258
- this.manufacturerDropdownInput = this.changeManufacturerRow.getByPlaceholder("Select manufacturer...");
5273
+ this.manufacturerDropdownInput = this.changeManufacturerRow.locator(".sw-entity-single-select__selection-input");
5259
5274
  this.manufacturerListResult = this.changeManufacturerRow.getByRole("list");
5260
5275
  this.changeActiveRow = page.locator(".sw-bulk-edit-change-field-active");
5261
5276
  this.changeActiveCheckbox = this.changeActiveRow.getByRole("checkbox").first();
5262
5277
  this.activeToggle = this.changeActiveRow.getByRole("checkbox").last();
5263
5278
  this.changePriceRow = page.locator(".sw-bulk-edit-change-field-price");
5264
5279
  this.changePriceCheckbox = this.changePriceRow.getByRole("checkbox");
5265
- this.grossPriceInput = this.changePriceRow.getByPlaceholder("Enter gross price...");
5280
+ this.grossPriceInput = this.changePriceRow.locator("#price-gross");
5266
5281
  this.changeReleaseDateRow = page.locator(".sw-bulk-edit-change-field-releaseDate");
5267
5282
  this.changeReleaseDateCheckbox = this.changeReleaseDateRow.getByRole("checkbox");
5268
5283
  this.releaseDateInput = this.changeReleaseDateRow.getByRole("textbox").last();
@@ -5270,17 +5285,17 @@ class ProductBulkEdit {
5270
5285
  this.changeStockCheckbox = this.changeStockRow.getByRole("checkbox");
5271
5286
  this.stockChangeMethodDropdown = this.changeStockRow.locator(".sw-single-select__selection-text");
5272
5287
  this.stockChangeMethodInput = this.changeStockRow.locator(".sw-single-select__selection-input");
5273
- this.stockInput = this.changeStockRow.getByPlaceholder("Enter quantity in stock...");
5288
+ this.stockInput = this.changeStockRow.locator("#stock");
5274
5289
  this.changeRestockTimeRow = page.locator(".sw-bulk-edit-change-field-restockTime");
5275
5290
  this.changeRestockTimeCheckbox = this.changeRestockTimeRow.getByRole("checkbox");
5276
5291
  this.restockTimeChangeMethodDropdown = this.changeRestockTimeRow.locator(".sw-single-select__selection-text");
5277
5292
  this.restockTimeChangeMethodInput = this.changeRestockTimeRow.locator(".sw-single-select__selection-input");
5278
- this.restockTimeInput = this.changeRestockTimeRow.getByPlaceholder("Enter restock time in days...");
5293
+ this.restockTimeInput = this.changeRestockTimeRow.locator("#restock-time");
5279
5294
  this.changeTagsRow = page.locator(".sw-bulk-edit-change-field-tags");
5280
5295
  this.changeTagsCheckbox = this.changeTagsRow.getByRole("checkbox");
5281
5296
  this.tagsChangeMethodDropdown = this.changeTagsRow.locator(".sw-single-select__selection-text");
5282
5297
  this.tagsChangeMethodInput = this.changeTagsRow.locator(".sw-single-select__selection-input");
5283
- this.tagsInput = this.changeTagsRow.getByPlaceholder("Enter tags...");
5298
+ this.tagsInput = this.changeTagsRow.locator(".sw-select-selection-list__input");
5284
5299
  this.changeSalesChannelRow = page.locator(".sw-bulk-edit-change-field-visibilities");
5285
5300
  this.changeSalesChannelCheckbox = this.changeSalesChannelRow.getByRole("checkbox");
5286
5301
  this.salesChannelChangeMethodDropdown = this.changeSalesChannelRow.locator(".sw-single-select__selection-text");
@@ -5422,8 +5437,8 @@ const test$5 = test$e.extend({
5422
5437
  AdminCustomerListing: async ({ AdminPage }, use) => {
5423
5438
  await use(new CustomerListing(AdminPage));
5424
5439
  },
5425
- AdminCustomerDetail: async ({ AdminPage }, use) => {
5426
- await use(new CustomerDetail(AdminPage));
5440
+ AdminCustomerDetail: async ({ AdminPage, InstanceMeta }, use) => {
5441
+ await use(new CustomerDetail(AdminPage, InstanceMeta));
5427
5442
  },
5428
5443
  AdminCustomerGroupListing: async ({ AdminPage }, use) => {
5429
5444
  await use(new CustomerGroupListing(AdminPage));
@@ -5434,8 +5449,8 @@ const test$5 = test$e.extend({
5434
5449
  AdminCustomerGroupDetail: async ({ AdminPage }, use) => {
5435
5450
  await use(new CustomerGroupDetail(AdminPage));
5436
5451
  },
5437
- AdminFirstRunWizard: async ({ AdminPage }, use) => {
5438
- await use(new FirstRunWizard(AdminPage));
5452
+ AdminFirstRunWizard: async ({ AdminPage, InstanceMeta }, use) => {
5453
+ await use(new FirstRunWizard(AdminPage, InstanceMeta));
5439
5454
  },
5440
5455
  AdminFlowBuilderCreate: async ({ AdminPage }, use) => {
5441
5456
  await use(new FlowBuilderCreate(AdminPage));
@@ -6177,6 +6192,7 @@ const BulkEditProducts = test$e.extend({
6177
6192
  if (changes["releaseDate"] != null) {
6178
6193
  await AdminProductBulkEdit.changeReleaseDateCheckbox.click();
6179
6194
  await AdminProductBulkEdit.releaseDateInput.fill(changes["releaseDate"].value);
6195
+ await AdminProductBulkEdit.releaseDateInput.press("Enter");
6180
6196
  }
6181
6197
  if (changes["stock"] != null) {
6182
6198
  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.1",
4
4
  "description": "Shopware Acceptance Test Suite",
5
5
  "author": "shopware AG",
6
6
  "license": "MIT",