@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.cjs.js +18 -5
- package/index.cjs.js.map +1 -1
- package/index.d.ts +2 -0
- package/index.js +18 -5
- package/index.js.map +1 -1
- package/package.json +1 -1
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 () =>
|
|
12556
|
-
|
|
12557
|
-
|
|
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,
|