@bigbinary/neeto-playwright-commons 1.10.2 → 1.10.4

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
@@ -1385,12 +1385,10 @@ declare class ZapierPage extends IntegrationBase {
1385
1385
  }
1386
1386
  interface VerifyDescriptionEditorParams {
1387
1387
  text: string;
1388
- editorWrapper?: Locator | Page;
1389
1388
  dynamicVariables?: string[];
1390
1389
  defaultFontSizeOption?: string;
1391
1390
  linkUrl?: string;
1392
1391
  filePath?: string;
1393
- attachedImageName?: string;
1394
1392
  imageUrl?: string;
1395
1393
  videoUrl?: string;
1396
1394
  cannedResponseSuccessMessage?: string;
@@ -1399,6 +1397,7 @@ declare class EditorPage {
1399
1397
  page: Page;
1400
1398
  neetoPlaywrightUtilities: CustomCommands;
1401
1399
  t: TFunction;
1400
+ editorWrapper: Locator | Page;
1402
1401
  paragraphSelector: Locator;
1403
1402
  fixedMenuArrowSelector: Locator;
1404
1403
  editorLinkButton: Locator;
@@ -1411,16 +1410,29 @@ declare class EditorPage {
1411
1410
  videoEmbedOption: Locator;
1412
1411
  videoEmbedInput: Locator;
1413
1412
  videoWrapperSelector: Locator;
1414
- emojiDropdownIcon: Locator;
1415
- constructor(page: Page, neetoPlaywrightUtilities: CustomCommands);
1413
+ emojiSelector: Locator;
1414
+ moreMenuSelector: Locator;
1415
+ contentField: Locator;
1416
+ dynamicVariablesButton: Locator;
1417
+ constructor(page: Page, neetoPlaywrightUtilities: CustomCommands, editorWrapper?: Locator | Page);
1418
+ assertOptionVisibility: (optionLocator: Locator) => Promise<boolean>;
1419
+ private verifyFontSize;
1420
+ private verifyTextModifiers;
1421
+ private verifyTextDeskModifier;
1422
+ private verifyListModifiers;
1423
+ private verifyEditorLinkButton;
1424
+ private verifyEditorAttachmentsButton;
1425
+ private verifyImageUploadOption;
1426
+ private verifyCannedResponseOption;
1427
+ private verifyVideoEmbedOption;
1428
+ private verifyEmojiSelector;
1429
+ verifyDynamicVariables: (dynamicVariables: string[]) => Promise<void>;
1416
1430
  /**
1417
1431
  *
1418
1432
  * Used to verify description editor functionality
1419
1433
  *
1420
1434
  * text (required): The text to be filled in editor content field.
1421
1435
  *
1422
- * editorWrapper (optional): The wrapper of editor content field.
1423
- *
1424
1436
  * dynamicVariables (optional): The array of dynamic variables used by the product in editor content field.
1425
1437
  *
1426
1438
  * defaultFontSizeOption (optional): The selected default font size of editor content field. Default is "Paragraph".
@@ -1433,19 +1445,18 @@ declare class EditorPage {
1433
1445
  *
1434
1446
  * videoUrl (optional): The url to be added when we select the button on the editor menu to upload a video in the editor. Default is https://youtu.be/jNQXAC9IVRw.
1435
1447
  *
1436
- * cannedResponseSuccessMessage (optional): The success toastr message after applying canned reesponse.
1448
+ * cannedResponseSuccessMessage (optional): The success toastr message after applying canned response.
1437
1449
  *
1438
1450
  * @example
1439
1451
  *
1440
1452
  * await editorPage.verifyDescriptionEditor({
1441
- * text: t("tickets.updated_one"),
1442
- * cannedResponseSuccessMessage: t("messages.successCannedResponse"),
1453
+ * text: t("tickets.updated_one"),
1454
+ * cannedResponseSuccessMessage: t("messages.successCannedResponse"),
1443
1455
  * });
1444
1456
  * @endexample
1445
1457
  */
1446
1458
  verifyDescriptionEditor: ({
1447
1459
  text,
1448
- editorWrapper,
1449
1460
  dynamicVariables,
1450
1461
  defaultFontSizeOption,
1451
1462
  linkUrl,
@@ -3045,6 +3056,8 @@ declare const NEETO_EDITOR_SELECTORS: {
3045
3056
  strikeOption: string;
3046
3057
  codeBlockOption: string;
3047
3058
  highlightOption: string;
3059
+ emojiOption: string;
3060
+ emojiDropdownIcon: string;
3048
3061
  linkInput: string;
3049
3062
  linkSubmitButton: string;
3050
3063
  commandList: (index: number) => string;