@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.d.ts CHANGED
@@ -400,6 +400,10 @@ declare const NEETO_EDITOR_SELECTORS: {
400
400
  redoOption: string;
401
401
  imageWrapper: string;
402
402
  contentField: string;
403
+ addLinkButton: string;
404
+ addLinkTextField: string;
405
+ addURLTextField: string;
406
+ submitLinkButton: string;
403
407
  };
404
408
 
405
409
  declare const NEETO_FILTERS_SELECTORS: {
@@ -562,6 +566,8 @@ declare const PROFILE_SECTION_SELECTORS: {
562
566
  myProfileButton: string;
563
567
  profileOrganizationSettingsButton: string;
564
568
  logoutButton: string;
569
+ neetoAuthLink: string;
570
+ profileSidebarCancelButton: string;
565
571
  };
566
572
 
567
573
  declare const SLACK_SELECTORS: {
package/index.js CHANGED
@@ -12319,6 +12319,8 @@ const PROFILE_SECTION_SELECTORS = {
12319
12319
  myProfileButton: "my-profile-button",
12320
12320
  profileOrganizationSettingsButton: "profile-organization-settings-button",
12321
12321
  logoutButton: "profile-logout-button",
12322
+ neetoAuthLink: "ntm-visit-auth-button",
12323
+ profileSidebarCancelButton: "ntm-profile-cancel-button",
12322
12324
  };
12323
12325
 
12324
12326
  const CHAT_WIDGET_SELECTORS = {
@@ -12506,10 +12508,21 @@ class HelpAndProfilePage {
12506
12508
  };
12507
12509
  this.verifyProfileAndOrganizationLinksV2 = async () => {
12508
12510
  await test$2.step("Step 1: Open Help center and verify", this.openHelpCenterV2);
12509
- await test$2.step("Step 2: Open My profile link and verify", async () => this.openAuthLinkAndVerify({
12510
- linkSelector: PROFILE_SECTION_SELECTORS.myProfileButton,
12511
- redirectLink: ROUTES.myProfile,
12512
- }));
12511
+ await test$2.step("Step 2: Open My profile link and verify", async () => {
12512
+ await this.page
12513
+ .getByTestId(PROFILE_SECTION_SELECTORS.myProfileButton)
12514
+ .click();
12515
+ const profileSidebarHeader = this.page.getByTestId(COMMON_SELECTORS.paneHeader);
12516
+ await expect(profileSidebarHeader).toContainText(this.t("neetoTeamMembers.profile.common.myProfile"));
12517
+ await this.openAuthLinkAndVerify({
12518
+ linkSelector: PROFILE_SECTION_SELECTORS.neetoAuthLink,
12519
+ redirectLink: ROUTES.myProfile,
12520
+ });
12521
+ await this.page
12522
+ .getByTestId(PROFILE_SECTION_SELECTORS.profileSidebarCancelButton)
12523
+ .click();
12524
+ await expect(profileSidebarHeader).toBeHidden();
12525
+ });
12513
12526
  await test$2.step("Step 3: Open Help center and verify", this.openHelpCenterV2);
12514
12527
  await test$2.step("Step 4: Open My organization link and verify", async () => this.openAuthLinkAndVerify({
12515
12528
  linkSelector: PROFILE_SECTION_SELECTORS.profileOrganizationSettingsButton,
@@ -12523,7 +12536,7 @@ class HelpAndProfilePage {
12523
12536
  await test$2.step("Step 2: Click logout and verify", async () => {
12524
12537
  await this.page
12525
12538
  .getByTestId(PROFILE_SECTION_SELECTORS.logoutButton)
12526
- .click();
12539
+ .click({ timeout: 35000 });
12527
12540
  process.env.TEST_ENV === ENVIRONMENT.staging &&
12528
12541
  (await expect(this.page).toHaveURL(new RegExp(NEETO_AUTH_BASE_URL()), {
12529
12542
  timeout: 15000,
@@ -13024,6 +13037,10 @@ const NEETO_EDITOR_SELECTORS = {
13024
13037
  redoOption: "neeto-editor-fixed-menu-redo-option",
13025
13038
  imageWrapper: "neeto-editor-image-wrapper",
13026
13039
  contentField: "neeto-editor-content",
13040
+ addLinkButton: "neeto-editor-fixed-menu-link-option",
13041
+ addLinkTextField: "neeto-editor-add-link-text-input",
13042
+ addURLTextField: "neeto-editor-add-link-url-input",
13043
+ submitLinkButton: "neeto-editor-add-link",
13027
13044
  };
13028
13045
 
13029
13046
  const NEETO_FILTERS_SELECTORS = {