@bigbinary/neeto-playwright-commons 1.8.32 → 1.8.34

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/index.cjs.js CHANGED
@@ -12365,6 +12365,8 @@ const PROFILE_SECTION_SELECTORS = {
12365
12365
  myProfileButton: "my-profile-button",
12366
12366
  profileOrganizationSettingsButton: "profile-organization-settings-button",
12367
12367
  logoutButton: "profile-logout-button",
12368
+ neetoAuthLink: "ntm-visit-auth-button",
12369
+ profileSidebarCancelButton: "ntm-profile-cancel-button",
12368
12370
  };
12369
12371
 
12370
12372
  const CHAT_WIDGET_SELECTORS = {
@@ -12552,10 +12554,21 @@ class HelpAndProfilePage {
12552
12554
  };
12553
12555
  this.verifyProfileAndOrganizationLinksV2 = async () => {
12554
12556
  await test$1.test.step("Step 1: Open Help center and verify", this.openHelpCenterV2);
12555
- await test$1.test.step("Step 2: Open My profile link and verify", async () => this.openAuthLinkAndVerify({
12556
- linkSelector: PROFILE_SECTION_SELECTORS.myProfileButton,
12557
- redirectLink: ROUTES.myProfile,
12558
- }));
12557
+ await test$1.test.step("Step 2: Open My profile link and verify", async () => {
12558
+ await this.page
12559
+ .getByTestId(PROFILE_SECTION_SELECTORS.myProfileButton)
12560
+ .click();
12561
+ const profileSidebarHeader = this.page.getByTestId(COMMON_SELECTORS.paneHeader);
12562
+ await test$1.expect(profileSidebarHeader).toContainText(this.t("neetoTeamMembers.profile.common.myProfile"));
12563
+ await this.openAuthLinkAndVerify({
12564
+ linkSelector: PROFILE_SECTION_SELECTORS.neetoAuthLink,
12565
+ redirectLink: ROUTES.myProfile,
12566
+ });
12567
+ await this.page
12568
+ .getByTestId(PROFILE_SECTION_SELECTORS.profileSidebarCancelButton)
12569
+ .click();
12570
+ await test$1.expect(profileSidebarHeader).toBeHidden();
12571
+ });
12559
12572
  await test$1.test.step("Step 3: Open Help center and verify", this.openHelpCenterV2);
12560
12573
  await test$1.test.step("Step 4: Open My organization link and verify", async () => this.openAuthLinkAndVerify({
12561
12574
  linkSelector: PROFILE_SECTION_SELECTORS.profileOrganizationSettingsButton,
@@ -12569,7 +12582,7 @@ class HelpAndProfilePage {
12569
12582
  await test$1.test.step("Step 2: Click logout and verify", async () => {
12570
12583
  await this.page
12571
12584
  .getByTestId(PROFILE_SECTION_SELECTORS.logoutButton)
12572
- .click();
12585
+ .click({ timeout: 35000 });
12573
12586
  process.env.TEST_ENV === ENVIRONMENT.staging &&
12574
12587
  (await test$1.expect(this.page).toHaveURL(new RegExp(NEETO_AUTH_BASE_URL()), {
12575
12588
  timeout: 15000,
@@ -13070,6 +13083,10 @@ const NEETO_EDITOR_SELECTORS = {
13070
13083
  redoOption: "neeto-editor-fixed-menu-redo-option",
13071
13084
  imageWrapper: "neeto-editor-image-wrapper",
13072
13085
  contentField: "neeto-editor-content",
13086
+ addLinkButton: "neeto-editor-fixed-menu-link-option",
13087
+ addLinkTextField: "neeto-editor-add-link-text-input",
13088
+ addURLTextField: "neeto-editor-add-link-url-input",
13089
+ submitLinkButton: "neeto-editor-add-link",
13073
13090
  };
13074
13091
 
13075
13092
  const NEETO_FILTERS_SELECTORS = {