@bigbinary/neeto-playwright-commons 1.9.27 → 1.9.29
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/README.md +115 -0
- package/index.cjs.js +15 -4
- package/index.cjs.js.map +1 -1
- package/index.d.ts +58 -35
- package/index.js +15 -5
- package/index.js.map +1 -1
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -362,9 +362,9 @@ declare class MailosaurUtils {
|
|
|
362
362
|
* email: `someone@${process.env.MAILOSAUR_SERVER_ID}.mailosaur.net`,
|
|
363
363
|
* subjectSubstring: "is your OTP",
|
|
364
364
|
* timeout: 60 * 1000,
|
|
365
|
-
* receivedAfter: new Date()
|
|
366
|
-
* })
|
|
367
|
-
* })
|
|
365
|
+
* receivedAfter: new Date(),
|
|
366
|
+
* });
|
|
367
|
+
* });
|
|
368
368
|
* @endexample
|
|
369
369
|
*/
|
|
370
370
|
getEmailContent: ({
|
|
@@ -400,9 +400,9 @@ declare class MailosaurUtils {
|
|
|
400
400
|
* email: `someone@${process.env.MAILOSAUR_SERVER_ID}.mailosaur.net`,
|
|
401
401
|
* subjectSubstring: "is your OTP",
|
|
402
402
|
* timeout: 60 * 1000,
|
|
403
|
-
* receivedAfter: new Date()
|
|
404
|
-
* })
|
|
405
|
-
* })
|
|
403
|
+
* receivedAfter: new Date(),
|
|
404
|
+
* });
|
|
405
|
+
* });
|
|
406
406
|
* @endexample
|
|
407
407
|
*/
|
|
408
408
|
fetchOtpFromEmail: FetchOtpFromEmail;
|
|
@@ -414,7 +414,7 @@ declare class MailosaurUtils {
|
|
|
414
414
|
*
|
|
415
415
|
* test("sample test", async ({ mailosaurUtils }) => {
|
|
416
416
|
* const email = mailosaurUtils.generateRandomMailosaurEmail();
|
|
417
|
-
* })
|
|
417
|
+
* });
|
|
418
418
|
* @endexample
|
|
419
419
|
*/
|
|
420
420
|
generateRandomMailosaurEmail: () => string;
|
|
@@ -888,6 +888,8 @@ declare class IntegrationBase {
|
|
|
888
888
|
*
|
|
889
889
|
* status: Integration status ("connected" or "disconnected") (default: "connected").
|
|
890
890
|
*
|
|
891
|
+
* visibilityTimeout: Timeout in milliseconds to wait for integration status tag to become visible.
|
|
892
|
+
*
|
|
891
893
|
* @example
|
|
892
894
|
*
|
|
893
895
|
* await integrationBase.verifyIntegrationStatus();
|
|
@@ -895,7 +897,7 @@ declare class IntegrationBase {
|
|
|
895
897
|
* await integrationBase.verifyIntegrationStatus("disconnected");
|
|
896
898
|
* @endexample
|
|
897
899
|
*/
|
|
898
|
-
verifyIntegrationStatus: (status?: IntegrationStatus) => Promise<void>;
|
|
900
|
+
verifyIntegrationStatus: (status?: IntegrationStatus, visibilityTimeout?: number) => Promise<void>;
|
|
899
901
|
/**
|
|
900
902
|
*
|
|
901
903
|
* Clicks on the integration card.
|
|
@@ -947,7 +949,7 @@ declare class SlackPage extends IntegrationBase {
|
|
|
947
949
|
*
|
|
948
950
|
* @example
|
|
949
951
|
*
|
|
950
|
-
*
|
|
952
|
+
* await slackPage.setupCloseHandlers(slackWebappPageInstance);
|
|
951
953
|
* @endexample
|
|
952
954
|
*/
|
|
953
955
|
setupCloseHandlers: (slackWebappPage?: Page) => Promise<void>;
|
|
@@ -963,7 +965,11 @@ declare class SlackPage extends IntegrationBase {
|
|
|
963
965
|
*
|
|
964
966
|
* @example
|
|
965
967
|
*
|
|
966
|
-
*
|
|
968
|
+
* await slackPage.connectAndVerifyIntegration(
|
|
969
|
+
* /example\.com/,
|
|
970
|
+
* customSteps,
|
|
971
|
+
* "general"
|
|
972
|
+
* );
|
|
967
973
|
* @endexample
|
|
968
974
|
*/
|
|
969
975
|
connectAndVerifyIntegration: (redirectUrl: RedirectUrl, customSteps?: AsyncNoArgsFunction, channelToConfigure?: string) => Promise<void>;
|
|
@@ -973,7 +979,7 @@ declare class SlackPage extends IntegrationBase {
|
|
|
973
979
|
*
|
|
974
980
|
* @example
|
|
975
981
|
*
|
|
976
|
-
*
|
|
982
|
+
* await slackPage.disconnectAndVerifyIntegration();
|
|
977
983
|
* @endexample
|
|
978
984
|
*/
|
|
979
985
|
disconnectAndVerifyIntegration: () => Promise<void>;
|
|
@@ -1041,6 +1047,12 @@ declare class SlackPage extends IntegrationBase {
|
|
|
1041
1047
|
*/
|
|
1042
1048
|
clickOnChannelListRefreshButton: (refreshInterceptMultipleResponsesParams?: PartialInterceptMultipleResponsesParams) => Promise<void>;
|
|
1043
1049
|
/**
|
|
1050
|
+
*
|
|
1051
|
+
* Note: Either ENV variables SLACK_WORKSPACE, SLACK_LOGIN_PASSWORD and
|
|
1052
|
+
*
|
|
1053
|
+
* SLACK_LOGIN_EMAIL is required for this method to work or custom credentials
|
|
1054
|
+
*
|
|
1055
|
+
* workspace, loginPassword and loginEmail must be passed.
|
|
1044
1056
|
*
|
|
1045
1057
|
* Logs into slack web app. It takes the following parameters:
|
|
1046
1058
|
*
|
|
@@ -1050,13 +1062,13 @@ declare class SlackPage extends IntegrationBase {
|
|
|
1050
1062
|
*
|
|
1051
1063
|
* @example
|
|
1052
1064
|
*
|
|
1053
|
-
*
|
|
1054
|
-
*
|
|
1055
|
-
*
|
|
1056
|
-
*
|
|
1057
|
-
*
|
|
1058
|
-
*
|
|
1059
|
-
*
|
|
1065
|
+
* await slackPage.loginToSlackWebapp(slackWebappPageInstance);
|
|
1066
|
+
* // OR
|
|
1067
|
+
* await slackPage.loginToSlackWebapp(slackWebappPageInstance, {
|
|
1068
|
+
* loginEmail: "johndoe@gmail.com",
|
|
1069
|
+
* loginPassword: "123456789",
|
|
1070
|
+
* workspace: "your-workspace-name",
|
|
1071
|
+
* });
|
|
1060
1072
|
* @endexample
|
|
1061
1073
|
*/
|
|
1062
1074
|
loginToSlackWebapp: (slackWebappPage: Page, customCredentials?: Record<"workspace" | "loginPassword" | "loginEmail", string | undefined>) => Promise<void>;
|
|
@@ -1066,7 +1078,7 @@ declare class SlackPage extends IntegrationBase {
|
|
|
1066
1078
|
*
|
|
1067
1079
|
* @example
|
|
1068
1080
|
*
|
|
1069
|
-
*
|
|
1081
|
+
* await slackPage.logoutFromSlackWebApp();
|
|
1070
1082
|
* @endexample
|
|
1071
1083
|
*/
|
|
1072
1084
|
logoutFromSlackWebApp: () => Promise<void>;
|
|
@@ -1078,7 +1090,7 @@ declare class SlackPage extends IntegrationBase {
|
|
|
1078
1090
|
*
|
|
1079
1091
|
* @example
|
|
1080
1092
|
*
|
|
1081
|
-
*
|
|
1093
|
+
* await slackPage.goToSlackChannel("general");
|
|
1082
1094
|
* @endexample
|
|
1083
1095
|
*/
|
|
1084
1096
|
goToSlackChannel: (slackChannel: string) => Promise<void>;
|
|
@@ -1092,7 +1104,10 @@ declare class SlackPage extends IntegrationBase {
|
|
|
1092
1104
|
*
|
|
1093
1105
|
* @example
|
|
1094
1106
|
*
|
|
1095
|
-
*
|
|
1107
|
+
* await slackPage.createNewSlackChannel({
|
|
1108
|
+
* channelName: "new-channel",
|
|
1109
|
+
* kind: "public",
|
|
1110
|
+
* });
|
|
1096
1111
|
* @endexample
|
|
1097
1112
|
*/
|
|
1098
1113
|
createNewSlackChannel: ({
|
|
@@ -1110,7 +1125,7 @@ declare class SlackPage extends IntegrationBase {
|
|
|
1110
1125
|
*
|
|
1111
1126
|
* @example
|
|
1112
1127
|
*
|
|
1113
|
-
*
|
|
1128
|
+
* await slackPage.deleteSlackChannel("old-channel");
|
|
1114
1129
|
* @endexample
|
|
1115
1130
|
*/
|
|
1116
1131
|
deleteSlackChannel: (channel: string) => Promise<void>;
|
|
@@ -1263,7 +1278,7 @@ declare class ZapierPage extends IntegrationBase {
|
|
|
1263
1278
|
*
|
|
1264
1279
|
* @example
|
|
1265
1280
|
*
|
|
1266
|
-
*
|
|
1281
|
+
* await zapierPage.loginToZapier(zapierWebPageInstance);
|
|
1267
1282
|
* @endexample
|
|
1268
1283
|
*/
|
|
1269
1284
|
loginToZapier: (zapierWebPage: Page) => Promise<void>;
|
|
@@ -1273,7 +1288,7 @@ declare class ZapierPage extends IntegrationBase {
|
|
|
1273
1288
|
*
|
|
1274
1289
|
* @example
|
|
1275
1290
|
*
|
|
1276
|
-
*
|
|
1291
|
+
* await zapierPage.logoutFromZapier();
|
|
1277
1292
|
* @endexample
|
|
1278
1293
|
*/
|
|
1279
1294
|
logoutFromZapier: () => Promise<void>;
|
|
@@ -1285,7 +1300,7 @@ declare class ZapierPage extends IntegrationBase {
|
|
|
1285
1300
|
*
|
|
1286
1301
|
* @example
|
|
1287
1302
|
*
|
|
1288
|
-
*
|
|
1303
|
+
* await zapierPage.reconnectAccountAndPublish("your-zapier-api-key");
|
|
1289
1304
|
* @endexample
|
|
1290
1305
|
*/
|
|
1291
1306
|
reconnectAccountAndPublish: (zapierApiKey: string) => Promise<void>;
|
|
@@ -1297,7 +1312,7 @@ declare class ZapierPage extends IntegrationBase {
|
|
|
1297
1312
|
*
|
|
1298
1313
|
* @example
|
|
1299
1314
|
*
|
|
1300
|
-
*
|
|
1315
|
+
* await zapierPage.deleteAllConnections("https://zapier.com/app/dashboard");
|
|
1301
1316
|
* @endexample
|
|
1302
1317
|
*/
|
|
1303
1318
|
deleteAllConnections: (zapierAppLink: string) => Promise<void>;
|
|
@@ -1313,11 +1328,11 @@ declare class ZapierPage extends IntegrationBase {
|
|
|
1313
1328
|
*
|
|
1314
1329
|
* @example
|
|
1315
1330
|
*
|
|
1316
|
-
*
|
|
1317
|
-
*
|
|
1318
|
-
*
|
|
1319
|
-
*
|
|
1320
|
-
*
|
|
1331
|
+
* await zapierPage.verifyZapIsTriggered({
|
|
1332
|
+
* submittedEmail: "example@example.com",
|
|
1333
|
+
* zapTriggeredAfter: new Date(),
|
|
1334
|
+
* productName: "neetoChat",
|
|
1335
|
+
* });
|
|
1321
1336
|
* @endexample
|
|
1322
1337
|
*/
|
|
1323
1338
|
verifyZapIsTriggered: ({
|
|
@@ -1335,7 +1350,7 @@ declare class ZapierPage extends IntegrationBase {
|
|
|
1335
1350
|
*
|
|
1336
1351
|
* @example
|
|
1337
1352
|
*
|
|
1338
|
-
*
|
|
1353
|
+
* await zapierPage.skipIfTaskLimitIsExhausted();
|
|
1339
1354
|
* @endexample
|
|
1340
1355
|
*/
|
|
1341
1356
|
skipIfTaskLimitIsExhausted: () => Promise<void>;
|
|
@@ -1349,7 +1364,7 @@ declare class ZapierPage extends IntegrationBase {
|
|
|
1349
1364
|
*
|
|
1350
1365
|
* @example
|
|
1351
1366
|
*
|
|
1352
|
-
*
|
|
1367
|
+
* const apiKey = await zapierPage.connectAndVerify({ apiKeyLabel: "Your API Key" });
|
|
1353
1368
|
* @endexample
|
|
1354
1369
|
*/
|
|
1355
1370
|
connectAndVerify: ({
|
|
@@ -1363,7 +1378,7 @@ declare class ZapierPage extends IntegrationBase {
|
|
|
1363
1378
|
*
|
|
1364
1379
|
* @example
|
|
1365
1380
|
*
|
|
1366
|
-
*
|
|
1381
|
+
* await zapierPage.disconnectAndVerify();
|
|
1367
1382
|
* @endexample
|
|
1368
1383
|
*/
|
|
1369
1384
|
disconnectAndVerify: () => Promise<void>;
|
|
@@ -2916,6 +2931,7 @@ declare const COMMON_SELECTORS: {
|
|
|
2916
2931
|
takeActionDropdown: string;
|
|
2917
2932
|
columnsSearchInput: string;
|
|
2918
2933
|
errorToastIcon: string;
|
|
2934
|
+
nuiRadioLabel: string;
|
|
2919
2935
|
};
|
|
2920
2936
|
/**
|
|
2921
2937
|
*
|
|
@@ -4306,6 +4322,13 @@ declare const toCamelCase: (string: string) => string;
|
|
|
4306
4322
|
* @endexample
|
|
4307
4323
|
*/
|
|
4308
4324
|
declare const getByDataQA: ts_toolbelt_out_Function_Curry.Curry<(page: Page, dataQa: string | [string, string]) => playwright_core.Locator>;
|
|
4325
|
+
declare const getListCount: ({
|
|
4326
|
+
page,
|
|
4327
|
+
countSelector
|
|
4328
|
+
}: {
|
|
4329
|
+
page: Page;
|
|
4330
|
+
countSelector: string;
|
|
4331
|
+
}) => Promise<number>;
|
|
4309
4332
|
interface LoginProps {
|
|
4310
4333
|
page: Page;
|
|
4311
4334
|
neetoPlaywrightUtilities: CustomCommands;
|
|
@@ -4900,4 +4923,4 @@ interface Overrides {
|
|
|
4900
4923
|
* @endexample
|
|
4901
4924
|
*/
|
|
4902
4925
|
declare const definePlaywrightConfig: (overrides: Overrides) => _playwright_test.PlaywrightTestConfig<{}, {}>;
|
|
4903
|
-
export { API_ROUTES, ATTACHMENT_DELETION_TOASTR_MESSAGE, BASE_URL, CHANGELOG_WIDGET_SELECTORS, CHAT_WIDGET_SELECTORS, CHAT_WIDGET_TEXTS, COMMON_SELECTORS, CREDENTIALS, CustomCommands, type CustomFixture, DESCRIPTION_EDITOR_TEXTS, EMBED_SELECTORS, EMOJI_PICKER_LABEL, ENVIRONMENT, EXPANDED_FONT_SIZE, EditorPage, EmbedBase, FONT_SIZE_SELECTORS, GLOBAL_TRANSLATIONS_PATTERN, HELP_CENTER_SELECTORS, HelpAndProfilePage, INTEGRATIONS_TEXTS, INTEGRATION_SELECTORS, IS_STAGING_ENV, ImageUploader, IntegrationBase, KEYBOARD_SHORTCUTS_SELECTORS, LIST_MODIFIER_SELECTORS, LIST_MODIFIER_TAGS, LOGIN_SELECTORS, MEMBER_FORM_SELECTORS, MEMBER_SELECTORS, MEMBER_TEXTS, MERGE_TAGS_SELECTORS, MailosaurUtils, NEETO_AUTH_BASE_URL, NEETO_EDITOR_SELECTORS, NEETO_FILTERS_SELECTORS, NEETO_IMAGE_UPLOADER_SELECTORS, NEETO_ROUTES, NEETO_TEXT_MODIFIER_SELECTORS, OTP_EMAIL_PATTERN, OrganizationPage, PROFILE_SECTION_SELECTORS, PROJECT_TRANSLATIONS_PATH, ROLES_SELECTORS, ROUTES, SIGNUP_SELECTORS, SLACK_DATA_QA_SELECTORS, SLACK_DEFAULT_CHANNEL, SLACK_SELECTORS, SLACK_WEB_TEXTS, STORAGE_STATE, SidebarSection, SlackPage, TAGS_SELECTORS, TEXT_MODIFIER_ROLES, TEXT_MODIFIER_SELECTORS, TEXT_MODIFIER_TAGS, THIRD_PARTY_ROUTES, TOASTR_MESSAGES, TagsPage, TeamMembers, USER_AGENTS, WebhooksPage, ZAPIER_LIMIT_EXHAUSTED_MESSAGE, ZAPIER_SELECTORS, ZAPIER_TEST_EMAIL, ZAPIER_WEB_TEXTS, ZapierPage, basicHTMLContent, clearCredentials, commands, cpuThrottlingUsingCDP, decodeQRCodeFromFile, definePlaywrightConfig, executeWithThrottledResources, extractSubdomainFromError, filterUtils, generateRandomBypassEmail, generateStagingData, getByDataQA, getGlobalUserState, getImagePathAndName, headerUtils, hexToRGB, hyphenize, i18nFixture, initializeCredentials, initializeTotp, joinHyphenCase, joinString, login, loginWithoutSSO, memberUtils, networkConditions, networkThrottlingUsingCDP, readFileSyncIfExists, removeCredentialFile, shouldSkipSetupAndTeardown, skipTest, squish, _default as stealthTest, tableUtils, toCamelCase, updateCredentials, writeDataToFile };
|
|
4926
|
+
export { API_ROUTES, ATTACHMENT_DELETION_TOASTR_MESSAGE, BASE_URL, CHANGELOG_WIDGET_SELECTORS, CHAT_WIDGET_SELECTORS, CHAT_WIDGET_TEXTS, COMMON_SELECTORS, CREDENTIALS, CustomCommands, type CustomFixture, DESCRIPTION_EDITOR_TEXTS, EMBED_SELECTORS, EMOJI_PICKER_LABEL, ENVIRONMENT, EXPANDED_FONT_SIZE, EditorPage, EmbedBase, FONT_SIZE_SELECTORS, GLOBAL_TRANSLATIONS_PATTERN, HELP_CENTER_SELECTORS, HelpAndProfilePage, INTEGRATIONS_TEXTS, INTEGRATION_SELECTORS, IS_STAGING_ENV, ImageUploader, IntegrationBase, KEYBOARD_SHORTCUTS_SELECTORS, LIST_MODIFIER_SELECTORS, LIST_MODIFIER_TAGS, LOGIN_SELECTORS, MEMBER_FORM_SELECTORS, MEMBER_SELECTORS, MEMBER_TEXTS, MERGE_TAGS_SELECTORS, MailosaurUtils, NEETO_AUTH_BASE_URL, NEETO_EDITOR_SELECTORS, NEETO_FILTERS_SELECTORS, NEETO_IMAGE_UPLOADER_SELECTORS, NEETO_ROUTES, NEETO_TEXT_MODIFIER_SELECTORS, OTP_EMAIL_PATTERN, OrganizationPage, PROFILE_SECTION_SELECTORS, PROJECT_TRANSLATIONS_PATH, ROLES_SELECTORS, ROUTES, SIGNUP_SELECTORS, SLACK_DATA_QA_SELECTORS, SLACK_DEFAULT_CHANNEL, SLACK_SELECTORS, SLACK_WEB_TEXTS, STORAGE_STATE, SidebarSection, SlackPage, TAGS_SELECTORS, TEXT_MODIFIER_ROLES, TEXT_MODIFIER_SELECTORS, TEXT_MODIFIER_TAGS, THIRD_PARTY_ROUTES, TOASTR_MESSAGES, TagsPage, TeamMembers, USER_AGENTS, WebhooksPage, ZAPIER_LIMIT_EXHAUSTED_MESSAGE, ZAPIER_SELECTORS, ZAPIER_TEST_EMAIL, ZAPIER_WEB_TEXTS, ZapierPage, basicHTMLContent, clearCredentials, commands, cpuThrottlingUsingCDP, decodeQRCodeFromFile, definePlaywrightConfig, executeWithThrottledResources, extractSubdomainFromError, filterUtils, generateRandomBypassEmail, generateStagingData, getByDataQA, getGlobalUserState, getImagePathAndName, getListCount, headerUtils, hexToRGB, hyphenize, i18nFixture, initializeCredentials, initializeTotp, joinHyphenCase, joinString, login, loginWithoutSSO, memberUtils, networkConditions, networkThrottlingUsingCDP, readFileSyncIfExists, removeCredentialFile, shouldSkipSetupAndTeardown, skipTest, squish, _default as stealthTest, tableUtils, toCamelCase, updateCredentials, writeDataToFile };
|
package/index.js
CHANGED
|
@@ -238,6 +238,10 @@ const getByDataQA = curry((page, dataQa) => {
|
|
|
238
238
|
.locator(`[data-qa='${dataQa[0]}']`)
|
|
239
239
|
.locator(`[data-qa='${dataQa[1]}']`);
|
|
240
240
|
});
|
|
241
|
+
const getListCount = async ({ page, countSelector, }) => {
|
|
242
|
+
const countText = await page.getByTestId(countSelector).textContent();
|
|
243
|
+
return Number(countText === null || countText === void 0 ? void 0 : countText.trim().split(" ")[0]);
|
|
244
|
+
};
|
|
241
245
|
|
|
242
246
|
const COMMON_SELECTORS = {
|
|
243
247
|
emailInputError: "email-input-error",
|
|
@@ -314,6 +318,7 @@ const COMMON_SELECTORS = {
|
|
|
314
318
|
takeActionDropdown: "take-action-dropdown-icon",
|
|
315
319
|
columnsSearchInput: "neeto-ui-columns-search",
|
|
316
320
|
errorToastIcon: "error-toast-icon",
|
|
321
|
+
nuiRadioLabel: "nui-radio-label",
|
|
317
322
|
};
|
|
318
323
|
|
|
319
324
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
@@ -13836,10 +13841,10 @@ class IntegrationBase {
|
|
|
13836
13841
|
})).toBeVisible();
|
|
13837
13842
|
await this.page.getByTestId(INTEGRATION_SELECTORS.connectButton).click();
|
|
13838
13843
|
};
|
|
13839
|
-
this.verifyIntegrationStatus = async (status = "connected") => {
|
|
13844
|
+
this.verifyIntegrationStatus = async (status = "connected", visibilityTimeout = 15000) => {
|
|
13840
13845
|
await this.gotoIntegrationIndex();
|
|
13841
13846
|
if (status === "connected") {
|
|
13842
|
-
await expect(this.integrationCard.getByTestId(INTEGRATION_SELECTORS.integrationStatusTag)).toBeVisible({ timeout:
|
|
13847
|
+
await expect(this.integrationCard.getByTestId(INTEGRATION_SELECTORS.integrationStatusTag)).toBeVisible({ timeout: visibilityTimeout });
|
|
13843
13848
|
}
|
|
13844
13849
|
await this.clickOnIntegrationCard();
|
|
13845
13850
|
const header = status === "connected" ? this.connectedHeader : this.connectHeader;
|
|
@@ -13926,7 +13931,11 @@ class SlackPage extends IntegrationBase {
|
|
|
13926
13931
|
const slackWebappPageDataQa = getByDataQA(slackWebappPage);
|
|
13927
13932
|
await slackWebappPage.addLocatorHandler(slackWebappPageDataQa(SLACK_DATA_QA_SELECTORS.coachMarkCloseButton), () => slackWebappPageDataQa(SLACK_DATA_QA_SELECTORS.coachMarkCloseButton).click());
|
|
13928
13933
|
await slackWebappPage.addLocatorHandler(slackWebappPageDataQa(SLACK_DATA_QA_SELECTORS.messagePaneBannerCloseIcon), () => slackWebappPageDataQa(SLACK_DATA_QA_SELECTORS.messagePaneBannerCloseIcon).click());
|
|
13929
|
-
|
|
13934
|
+
const permissionBannerCloseIcon = slackWebappPageDataQa(SLACK_DATA_QA_SELECTORS.permissionBannerCloseIcon);
|
|
13935
|
+
await slackWebappPage.addLocatorHandler(permissionBannerCloseIcon, async () => {
|
|
13936
|
+
await permissionBannerCloseIcon.click();
|
|
13937
|
+
await permissionBannerCloseIcon.click();
|
|
13938
|
+
});
|
|
13930
13939
|
};
|
|
13931
13940
|
this.connectAndVerifyIntegration = async (redirectUrl, customSteps, channelToConfigure = SLACK_DEFAULT_CHANNEL) => {
|
|
13932
13941
|
await this.connect();
|
|
@@ -14906,8 +14915,9 @@ class TeamMembers {
|
|
|
14906
14915
|
await this.page.getByTestId(MEMBER_SELECTORS.continueButton).click();
|
|
14907
14916
|
}
|
|
14908
14917
|
await this.page.getByTestId(MEMBER_SELECTORS.submitButton).click();
|
|
14918
|
+
await expect(this.page.getByTestId(COMMON_SELECTORS.paneBody)).toBeHidden();
|
|
14909
14919
|
await this.neetoPlaywrightUtilities.waitForPageLoad();
|
|
14910
|
-
await this.neetoPlaywrightUtilities.
|
|
14920
|
+
await this.neetoPlaywrightUtilities.verifyToast();
|
|
14911
14921
|
};
|
|
14912
14922
|
this.searchAndVerifyMemberByEmail = async ({ email, interceptOptions = {}, }) => {
|
|
14913
14923
|
const searchMembers = this.neetoPlaywrightUtilities.interceptMultipleResponses({
|
|
@@ -149191,5 +149201,5 @@ const definePlaywrightConfig = (overrides) => {
|
|
|
149191
149201
|
});
|
|
149192
149202
|
};
|
|
149193
149203
|
|
|
149194
|
-
export { API_ROUTES, ATTACHMENT_DELETION_TOASTR_MESSAGE, BASE_URL, CHANGELOG_WIDGET_SELECTORS, CHAT_WIDGET_SELECTORS, CHAT_WIDGET_TEXTS, COMMON_SELECTORS, CREDENTIALS, CustomCommands, DESCRIPTION_EDITOR_TEXTS, EMBED_SELECTORS, EMOJI_PICKER_LABEL, ENVIRONMENT, EXPANDED_FONT_SIZE, EditorPage, EmbedBase, FONT_SIZE_SELECTORS, GLOBAL_TRANSLATIONS_PATTERN, HELP_CENTER_SELECTORS, HelpAndProfilePage, INTEGRATIONS_TEXTS, INTEGRATION_SELECTORS, IS_STAGING_ENV, ImageUploader, IntegrationBase, KEYBOARD_SHORTCUTS_SELECTORS, LIST_MODIFIER_SELECTORS, LIST_MODIFIER_TAGS, LOGIN_SELECTORS, MEMBER_FORM_SELECTORS, MEMBER_SELECTORS, MEMBER_TEXTS, MERGE_TAGS_SELECTORS, MailosaurUtils, NEETO_AUTH_BASE_URL, NEETO_EDITOR_SELECTORS, NEETO_FILTERS_SELECTORS, NEETO_IMAGE_UPLOADER_SELECTORS, NEETO_ROUTES, NEETO_TEXT_MODIFIER_SELECTORS, OTP_EMAIL_PATTERN, OrganizationPage, PROFILE_SECTION_SELECTORS, PROJECT_TRANSLATIONS_PATH, ROLES_SELECTORS, ROUTES, SIGNUP_SELECTORS, SLACK_DATA_QA_SELECTORS, SLACK_DEFAULT_CHANNEL, SLACK_SELECTORS, SLACK_WEB_TEXTS, STORAGE_STATE, SidebarSection, SlackPage, TAGS_SELECTORS, TEXT_MODIFIER_ROLES, TEXT_MODIFIER_SELECTORS, TEXT_MODIFIER_TAGS, THIRD_PARTY_ROUTES, TOASTR_MESSAGES, TagsPage, TeamMembers, USER_AGENTS, WebhooksPage, ZAPIER_LIMIT_EXHAUSTED_MESSAGE, ZAPIER_SELECTORS, ZAPIER_TEST_EMAIL, ZAPIER_WEB_TEXTS, ZapierPage, basicHTMLContent, clearCredentials, commands, cpuThrottlingUsingCDP, decodeQRCodeFromFile, definePlaywrightConfig, executeWithThrottledResources, extractSubdomainFromError, filterUtils, generateRandomBypassEmail, generateStagingData, getByDataQA, getGlobalUserState, getImagePathAndName, headerUtils, hexToRGB, hyphenize, i18nFixture, initializeCredentials, initializeTotp, joinHyphenCase, joinString, login, loginWithoutSSO, memberUtils, networkConditions, networkThrottlingUsingCDP, readFileSyncIfExists, removeCredentialFile, shouldSkipSetupAndTeardown, skipTest, squish, stealth as stealthTest, tableUtils, toCamelCase, updateCredentials, writeDataToFile };
|
|
149204
|
+
export { API_ROUTES, ATTACHMENT_DELETION_TOASTR_MESSAGE, BASE_URL, CHANGELOG_WIDGET_SELECTORS, CHAT_WIDGET_SELECTORS, CHAT_WIDGET_TEXTS, COMMON_SELECTORS, CREDENTIALS, CustomCommands, DESCRIPTION_EDITOR_TEXTS, EMBED_SELECTORS, EMOJI_PICKER_LABEL, ENVIRONMENT, EXPANDED_FONT_SIZE, EditorPage, EmbedBase, FONT_SIZE_SELECTORS, GLOBAL_TRANSLATIONS_PATTERN, HELP_CENTER_SELECTORS, HelpAndProfilePage, INTEGRATIONS_TEXTS, INTEGRATION_SELECTORS, IS_STAGING_ENV, ImageUploader, IntegrationBase, KEYBOARD_SHORTCUTS_SELECTORS, LIST_MODIFIER_SELECTORS, LIST_MODIFIER_TAGS, LOGIN_SELECTORS, MEMBER_FORM_SELECTORS, MEMBER_SELECTORS, MEMBER_TEXTS, MERGE_TAGS_SELECTORS, MailosaurUtils, NEETO_AUTH_BASE_URL, NEETO_EDITOR_SELECTORS, NEETO_FILTERS_SELECTORS, NEETO_IMAGE_UPLOADER_SELECTORS, NEETO_ROUTES, NEETO_TEXT_MODIFIER_SELECTORS, OTP_EMAIL_PATTERN, OrganizationPage, PROFILE_SECTION_SELECTORS, PROJECT_TRANSLATIONS_PATH, ROLES_SELECTORS, ROUTES, SIGNUP_SELECTORS, SLACK_DATA_QA_SELECTORS, SLACK_DEFAULT_CHANNEL, SLACK_SELECTORS, SLACK_WEB_TEXTS, STORAGE_STATE, SidebarSection, SlackPage, TAGS_SELECTORS, TEXT_MODIFIER_ROLES, TEXT_MODIFIER_SELECTORS, TEXT_MODIFIER_TAGS, THIRD_PARTY_ROUTES, TOASTR_MESSAGES, TagsPage, TeamMembers, USER_AGENTS, WebhooksPage, ZAPIER_LIMIT_EXHAUSTED_MESSAGE, ZAPIER_SELECTORS, ZAPIER_TEST_EMAIL, ZAPIER_WEB_TEXTS, ZapierPage, basicHTMLContent, clearCredentials, commands, cpuThrottlingUsingCDP, decodeQRCodeFromFile, definePlaywrightConfig, executeWithThrottledResources, extractSubdomainFromError, filterUtils, generateRandomBypassEmail, generateStagingData, getByDataQA, getGlobalUserState, getImagePathAndName, getListCount, headerUtils, hexToRGB, hyphenize, i18nFixture, initializeCredentials, initializeTotp, joinHyphenCase, joinString, login, loginWithoutSSO, memberUtils, networkConditions, networkThrottlingUsingCDP, readFileSyncIfExists, removeCredentialFile, shouldSkipSetupAndTeardown, skipTest, squish, stealth as stealthTest, tableUtils, toCamelCase, updateCredentials, writeDataToFile };
|
|
149195
149205
|
//# sourceMappingURL=index.js.map
|