@shopware-ag/acceptance-test-suite 12.21.3 → 12.22.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
@@ -5406,8 +5406,18 @@ declare class CustomerGroupCreate implements PageObject {
5406
5406
  readonly cancelButton: Locator;
5407
5407
  readonly cardTitle: Locator;
5408
5408
  readonly customerGroupNameField: Locator;
5409
+ /**
5410
+ * @deprecated Targets the pre-redesign customer group markup, only compatible with shopware v6.6.x and v6.7.x, use 'customerGroupTaxDisplayGross' instead
5411
+ */
5409
5412
  readonly customerGroupGrossTaxDisplay: Locator;
5413
+ /**
5414
+ * @deprecated Targets the pre-redesign customer group markup, only compatible with shopware v6.6.x and v6.7.x, use 'customerGroupTaxDisplayNet' instead
5415
+ */
5410
5416
  readonly customerGroupNetTaxDisplay: Locator;
5417
+ readonly customerGroupTaxDisplayGross: Locator;
5418
+ readonly customerGroupTaxDisplayNet: Locator;
5419
+ readonly customerGroupPriceBasisGross: Locator;
5420
+ readonly customerGroupPriceBasisNet: Locator;
5411
5421
  readonly customSignupFormToggle: Locator;
5412
5422
  readonly signupFormTitle: Locator;
5413
5423
  readonly signupFormIntroduction: Locator;
package/dist/index.d.ts CHANGED
@@ -5406,8 +5406,18 @@ declare class CustomerGroupCreate implements PageObject {
5406
5406
  readonly cancelButton: Locator;
5407
5407
  readonly cardTitle: Locator;
5408
5408
  readonly customerGroupNameField: Locator;
5409
+ /**
5410
+ * @deprecated Targets the pre-redesign customer group markup, only compatible with shopware v6.6.x and v6.7.x, use 'customerGroupTaxDisplayGross' instead
5411
+ */
5409
5412
  readonly customerGroupGrossTaxDisplay: Locator;
5413
+ /**
5414
+ * @deprecated Targets the pre-redesign customer group markup, only compatible with shopware v6.6.x and v6.7.x, use 'customerGroupTaxDisplayNet' instead
5415
+ */
5410
5416
  readonly customerGroupNetTaxDisplay: Locator;
5417
+ readonly customerGroupTaxDisplayGross: Locator;
5418
+ readonly customerGroupTaxDisplayNet: Locator;
5419
+ readonly customerGroupPriceBasisGross: Locator;
5420
+ readonly customerGroupPriceBasisNet: Locator;
5411
5421
  readonly customSignupFormToggle: Locator;
5412
5422
  readonly signupFormTitle: Locator;
5413
5423
  readonly signupFormIntroduction: Locator;
package/dist/index.mjs CHANGED
@@ -6687,7 +6687,7 @@ class TestDataService {
6687
6687
  displayGross: true,
6688
6688
  registrationActive: true,
6689
6689
  registrationTitle: customerGroupName,
6690
- registrationIntroduction: `${customerGroupName}-Introduction`,
6690
+ registrationIntroduction: `<p>${customerGroupName}-Introduction</p>`,
6691
6691
  registrationSeoMetaDescription: `${customerGroupName}-SEO-Description`,
6692
6692
  registrationOnlyCompanyRegistration: false,
6693
6693
  customFields: {},
@@ -9020,8 +9020,18 @@ class CustomerGroupCreate {
9020
9020
  cancelButton;
9021
9021
  cardTitle;
9022
9022
  customerGroupNameField;
9023
+ /**
9024
+ * @deprecated Targets the pre-redesign customer group markup, only compatible with shopware v6.6.x and v6.7.x, use 'customerGroupTaxDisplayGross' instead
9025
+ */
9023
9026
  customerGroupGrossTaxDisplay;
9027
+ /**
9028
+ * @deprecated Targets the pre-redesign customer group markup, only compatible with shopware v6.6.x and v6.7.x, use 'customerGroupTaxDisplayNet' instead
9029
+ */
9024
9030
  customerGroupNetTaxDisplay;
9031
+ customerGroupTaxDisplayGross;
9032
+ customerGroupTaxDisplayNet;
9033
+ customerGroupPriceBasisGross;
9034
+ customerGroupPriceBasisNet;
9025
9035
  customSignupFormToggle;
9026
9036
  signupFormTitle;
9027
9037
  signupFormIntroduction;
@@ -9041,13 +9051,13 @@ class CustomerGroupCreate {
9041
9051
  this.customerGroupNameField = page.locator("#sw-field--customerGroup-name");
9042
9052
  this.customerGroupGrossTaxDisplay = page.locator("#sw-field--castedValue-0");
9043
9053
  this.customerGroupNetTaxDisplay = page.locator("#sw-field--castedValue-1");
9054
+ this.customerGroupTaxDisplayGross = page.locator("#sw-field--customerGroup-displayGross-0");
9055
+ this.customerGroupTaxDisplayNet = page.locator("#sw-field--customerGroup-displayGross-1");
9056
+ this.customerGroupPriceBasisGross = page.locator("#sw-field--customerGroup-priceBasis-0");
9057
+ this.customerGroupPriceBasisNet = page.locator("#sw-field--customerGroup-priceBasis-1");
9044
9058
  this.customSignupFormToggle = page.getByLabel(translate("administration:customerGroup:create.customSignupForm"));
9045
9059
  this.signupFormTitle = page.locator("#sw-field--customerGroup-registrationTitle");
9046
- if (satisfies(instanceMeta.version, "<6.8")) {
9047
- this.signupFormIntroduction = page.locator(".sw-text-editor__content-editor");
9048
- } else {
9049
- this.signupFormIntroduction = page.locator(".mt-text-editor__content-editor");
9050
- }
9060
+ this.signupFormIntroduction = instanceMeta.features["METEOR_TEXT_EDITOR"] ?? satisfies(instanceMeta.version, ">=6.8") ? page.locator(".mt-text-editor__content-editor") : page.locator(".sw-text-editor__content-editor");
9051
9061
  if (satisfies(instanceMeta.version, "<6.7")) {
9052
9062
  this.signupFormSeoDescription = page.locator("#sw-field--customerGroup-registrationSeoMetaDescription");
9053
9063
  } else {
@@ -12176,9 +12186,13 @@ const BulkEditProducts = test$e.extend({
12176
12186
  }
12177
12187
  if (changes["manufacturer"] != null) {
12178
12188
  await AdminProductBulkEdit.changeManufacturerCheckbox.click();
12189
+ const initialLoad = AdminProductBulkEdit.page.waitForResponse(
12190
+ (response2) => response2.url().includes(`product-manufacturer`) && response2.status() === 200 && response2.request().method() === "POST"
12191
+ );
12179
12192
  await AdminProductBulkEdit.manufacturerDropdown.click();
12193
+ expect((await initialLoad).ok()).toBeTruthy();
12180
12194
  const responsePromise = AdminProductBulkEdit.page.waitForResponse(
12181
- (response2) => response2.url().includes(`product-manufacturer`) && response2.status() === 200 && response2.request().method() === "POST"
12195
+ (response2) => response2.url().includes(`product-manufacturer`) && response2.status() === 200 && response2.request().method() === "POST" && response2.request().postDataJSON()?.term === changes["manufacturer"].value
12182
12196
  );
12183
12197
  await AdminProductBulkEdit.manufacturerDropdownInput.fill(changes["manufacturer"].value);
12184
12198
  const response = await responsePromise;
@@ -12214,9 +12228,13 @@ const BulkEditProducts = test$e.extend({
12214
12228
  await AdminProductBulkEdit.tagsChangeMethodDropdown.click();
12215
12229
  await (await AdminProductBulkEdit.getDropdownEntry(changes["tags"].method)).click();
12216
12230
  if (changes["tags"].method != "Clear") {
12231
+ const initialLoad = AdminProductBulkEdit.page.waitForResponse(
12232
+ (response2) => response2.url().includes(`search/tag`) && response2.status() === 200 && response2.request().method() === "POST"
12233
+ );
12217
12234
  await AdminProductBulkEdit.tagsInput.click();
12235
+ expect((await initialLoad).ok()).toBeTruthy();
12218
12236
  const responsePromise = AdminProductBulkEdit.page.waitForResponse(
12219
- (response2) => response2.url().includes(`search/tag`) && response2.status() === 200 && response2.request().method() === "POST"
12237
+ (response2) => response2.url().includes(`search/tag`) && response2.status() === 200 && response2.request().method() === "POST" && response2.request().postDataJSON()?.term === changes["tags"].value
12220
12238
  );
12221
12239
  await AdminProductBulkEdit.tagsInput.fill(changes["tags"].value);
12222
12240
  const response = await responsePromise;
@@ -12230,9 +12248,13 @@ const BulkEditProducts = test$e.extend({
12230
12248
  await AdminProductBulkEdit.salesChannelChangeMethodDropdown.click();
12231
12249
  await (await AdminProductBulkEdit.getDropdownEntry(changes["saleschannel"].method)).click();
12232
12250
  if (changes["saleschannel"].method != "Clear") {
12251
+ const initialLoad = AdminProductBulkEdit.page.waitForResponse(
12252
+ (response2) => response2.url().includes(`search/sales-channel`) && response2.status() === 200 && response2.request().method() === "POST"
12253
+ );
12233
12254
  await AdminProductBulkEdit.salesChannelInput.click();
12255
+ expect((await initialLoad).ok()).toBeTruthy();
12234
12256
  const responsePromise = AdminProductBulkEdit.page.waitForResponse(
12235
- (response2) => response2.url().includes(`search/sales-channel`) && response2.status() === 200 && response2.request().method() === "POST"
12257
+ (response2) => response2.url().includes(`search/sales-channel`) && response2.status() === 200 && response2.request().method() === "POST" && response2.request().postDataJSON()?.term === changes["saleschannel"].value
12236
12258
  );
12237
12259
  await AdminProductBulkEdit.salesChannelInput.fill(changes["saleschannel"].value);
12238
12260
  const response = await responsePromise;
@@ -12419,8 +12441,14 @@ const CreateFlow = test$e.extend({
12419
12441
  await ShopAdmin.expects(AdminFlowBuilderCreate.resultList).toBeVisible();
12420
12442
  await AdminFlowBuilderCreate.resultListItem.getByRole("listitem").filter({ hasText: `${flowConfig.falseAction}` }).click();
12421
12443
  await ShopAdmin.expects(AdminFlowBuilderCreate.tagModal).toBeVisible();
12444
+ const tagsLoaded = AdminFlowBuilderCreate.page.waitForResponse((response) => response.url().includes("/search/tag") && response.request().method() === "POST");
12422
12445
  await AdminFlowBuilderCreate.tagModalTagsSelectField.click();
12446
+ ShopAdmin.expects((await tagsLoaded).ok()).toBeTruthy();
12447
+ const tagSearched = AdminFlowBuilderCreate.page.waitForResponse(
12448
+ (response) => response.url().includes("/search/tag") && response.request().postDataJSON()?.term === flowConfig.falseActionIdentifier
12449
+ );
12423
12450
  await AdminFlowBuilderCreate.tagModalTagsSelectField.fill(flowConfig.falseActionIdentifier);
12451
+ ShopAdmin.expects((await tagSearched).ok()).toBeTruthy();
12424
12452
  await ShopAdmin.expects(AdminFlowBuilderCreate.resultList).toBeVisible();
12425
12453
  await AdminFlowBuilderCreate.resultListItem.getByRole("listitem").filter({ hasText: `${flowConfig.falseActionIdentifier}` }).click();
12426
12454
  await AdminFlowBuilderCreate.tagModalTagsSelectField.press("Escape");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shopware-ag/acceptance-test-suite",
3
- "version": "12.21.3",
3
+ "version": "12.22.1",
4
4
  "description": "Shopware Acceptance Test Suite",
5
5
  "keywords": [
6
6
  "fixtures",