@shopware-ag/acceptance-test-suite 11.3.0 → 11.3.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
@@ -1293,6 +1293,7 @@ declare class AccountRecover implements PageObject {
1293
1293
 
1294
1294
  declare class AccountProfile implements PageObject {
1295
1295
  readonly page: Page;
1296
+ readonly instanceMeta: HelperFixtureTypes['InstanceMeta'];
1296
1297
  readonly salutationSelect: Locator;
1297
1298
  readonly firstNameInput: Locator;
1298
1299
  readonly lastNameInput: Locator;
@@ -1313,7 +1314,7 @@ declare class AccountProfile implements PageObject {
1313
1314
  readonly emailValidationAlert: Locator;
1314
1315
  readonly emailUpdateFailureAlert: Locator;
1315
1316
  readonly passwordUpdateFailureAlert: Locator;
1316
- constructor(page: Page);
1317
+ constructor(page: Page, instanceMeta: HelperFixtureTypes['InstanceMeta']);
1317
1318
  url(): string;
1318
1319
  }
1319
1320
 
package/dist/index.d.ts CHANGED
@@ -1293,6 +1293,7 @@ declare class AccountRecover implements PageObject {
1293
1293
 
1294
1294
  declare class AccountProfile implements PageObject {
1295
1295
  readonly page: Page;
1296
+ readonly instanceMeta: HelperFixtureTypes['InstanceMeta'];
1296
1297
  readonly salutationSelect: Locator;
1297
1298
  readonly firstNameInput: Locator;
1298
1299
  readonly lastNameInput: Locator;
@@ -1313,7 +1314,7 @@ declare class AccountProfile implements PageObject {
1313
1314
  readonly emailValidationAlert: Locator;
1314
1315
  readonly emailUpdateFailureAlert: Locator;
1315
1316
  readonly passwordUpdateFailureAlert: Locator;
1316
- constructor(page: Page);
1317
+ constructor(page: Page, instanceMeta: HelperFixtureTypes['InstanceMeta']);
1317
1318
  url(): string;
1318
1319
  }
1319
1320
 
package/dist/index.mjs CHANGED
@@ -3537,8 +3537,9 @@ var __publicField$E = (obj, key, value) => {
3537
3537
  return value;
3538
3538
  };
3539
3539
  class AccountProfile {
3540
- constructor(page) {
3540
+ constructor(page, instanceMeta) {
3541
3541
  this.page = page;
3542
+ this.instanceMeta = instanceMeta;
3542
3543
  __publicField$E(this, "salutationSelect");
3543
3544
  __publicField$E(this, "firstNameInput");
3544
3545
  __publicField$E(this, "lastNameInput");
@@ -3570,15 +3571,28 @@ class AccountProfile {
3570
3571
  this.saveEmailAddressButton = page.locator("#profileMailForm").getByRole("button", { name: "Save changes" });
3571
3572
  this.changePasswordButton = page.getByRole("button", { name: "Change password" });
3572
3573
  this.newPasswordInput = page.locator('input[id="newPassword"]');
3573
- this.newPasswordConfirmInput = page.locator('input[id="passwordConfirmation"]');
3574
- this.currentPasswordInput = page.locator('input[id="password"]');
3574
+ if (instanceMeta.features["ACCESSIBILITY_TWEAKS"]) {
3575
+ this.newPasswordConfirmInput = page.locator('input[name="password[newPasswordConfirm]"]');
3576
+ this.currentPasswordInput = page.locator('input[name="password[password]"]');
3577
+ } else {
3578
+ this.newPasswordConfirmInput = page.locator('input[id="passwordConfirmation"]');
3579
+ this.currentPasswordInput = page.locator('input[id="password"]');
3580
+ }
3575
3581
  this.saveNewPasswordButton = page.locator("#profilePasswordForm").getByRole("button", { name: "Save changes" });
3576
3582
  this.loginDataEmailAddress = page.locator(".account-profile-mail");
3577
3583
  this.emailUpdateMessage = page.getByText("Your email address has been updated.");
3578
3584
  this.passwordUpdateMessage = page.getByText("Your password has been updated.");
3579
- this.emailValidationAlert = page.locator(".was-validated");
3585
+ if (instanceMeta.features["ACCESSIBILITY_TWEAKS"]) {
3586
+ this.emailValidationAlert = page.getByText("Invalid email address.");
3587
+ } else {
3588
+ this.emailValidationAlert = page.locator(".was-validated");
3589
+ }
3580
3590
  this.emailUpdateFailureAlert = page.getByText("Email address could not be changed.");
3581
- this.passwordUpdateFailureAlert = page.getByText("Password could not be changed.");
3591
+ if (instanceMeta.features["ACCESSIBILITY_TWEAKS"]) {
3592
+ this.passwordUpdateFailureAlert = page.getByText("Input is too short.");
3593
+ } else {
3594
+ this.passwordUpdateFailureAlert = page.getByText("Password could not be changed.");
3595
+ }
3582
3596
  }
3583
3597
  url() {
3584
3598
  return "account/profile";
@@ -3871,8 +3885,8 @@ const test$6 = test$e.extend({
3871
3885
  StorefrontAccountRecover: async ({ StorefrontPage }, use) => {
3872
3886
  await use(new AccountRecover(StorefrontPage));
3873
3887
  },
3874
- StorefrontAccountProfile: async ({ StorefrontPage }, use) => {
3875
- await use(new AccountProfile(StorefrontPage));
3888
+ StorefrontAccountProfile: async ({ StorefrontPage, InstanceMeta }, use) => {
3889
+ await use(new AccountProfile(StorefrontPage, InstanceMeta));
3876
3890
  },
3877
3891
  StorefrontAccountOrder: async ({ StorefrontPage }, use) => {
3878
3892
  await use(new AccountOrder(StorefrontPage));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shopware-ag/acceptance-test-suite",
3
- "version": "11.3.0",
3
+ "version": "11.3.1",
4
4
  "description": "Shopware Acceptance Test Suite",
5
5
  "author": "shopware AG",
6
6
  "license": "MIT",