@bigbinary/neeto-playwright-commons 1.8.33 → 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
@@ -566,6 +566,8 @@ declare const PROFILE_SECTION_SELECTORS: {
566
566
  myProfileButton: string;
567
567
  profileOrganizationSettingsButton: string;
568
568
  logoutButton: string;
569
+ neetoAuthLink: string;
570
+ profileSidebarCancelButton: string;
569
571
  };
570
572
 
571
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,