@bigbinary/neeto-playwright-commons 1.10.1 → 1.10.3

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,
@@ -2740,6 +2751,12 @@ declare const networkConditions: Record<"Slow 3G" | "Fast 3G" | "No Throttling",
2740
2751
  *
2741
2752
  * import { COMMON_SELECTORS } from "@bigbinary/neeto-playwright-commons";
2742
2753
  * @endexample
2754
+ * emailInputError: Selector for email input error.
2755
+ *
2756
+ * pane: Selector for pane wrapper.
2757
+ *
2758
+ * sideBar: Selector for side bar.
2759
+ *
2743
2760
  * copyButton: Selector for the copy button.
2744
2761
  *
2745
2762
  * resetButton: Selector for the reset button.
@@ -2788,6 +2805,10 @@ declare const networkConditions: Record<"Slow 3G" | "Fast 3G" | "No Throttling",
2788
2805
  *
2789
2806
  * inputField: Selector to get neetoUI input field.
2790
2807
  *
2808
+ * alertBox: Selector for alert box.
2809
+ *
2810
+ * tableContainer: Selector for table container.
2811
+ *
2791
2812
  * alertConfirmationText: Selector for alert confirmation text.
2792
2813
  *
2793
2814
  * alertCancelButton: Selector for alert cancel buttons.
@@ -2874,6 +2895,22 @@ declare const networkConditions: Record<"Slow 3G" | "Fast 3G" | "No Throttling",
2874
2895
  *
2875
2896
  * selectSingleValue: Selector for select single values.
2876
2897
  *
2898
+ * actionSelectIndicator: Selector for action select indicator.
2899
+ *
2900
+ * takeActionDropdown: Selector for take action dropdown.
2901
+ *
2902
+ * columnsSearchInput: Selector for column search input.
2903
+ *
2904
+ * errorToastIcon: Selector for error toast icon.
2905
+ *
2906
+ * nuiRadioLabel: Selector for nui radio label.
2907
+ *
2908
+ * submitButton: Selector for submit button.
2909
+ *
2910
+ * tableRow: Selector for table row.
2911
+ *
2912
+ * navigationHeaderLeftBlock: Selector for navigation header left block.
2913
+ *
2877
2914
  */
2878
2915
  declare const COMMON_SELECTORS: {
2879
2916
  emailInputError: string;
@@ -2955,6 +2992,7 @@ declare const COMMON_SELECTORS: {
2955
2992
  nuiRadioLabel: string;
2956
2993
  submitButton: string;
2957
2994
  tableRow: string;
2995
+ navigationHeaderLeftBlock: string;
2958
2996
  };
2959
2997
  /**
2960
2998
  *
@@ -3018,6 +3056,8 @@ declare const NEETO_EDITOR_SELECTORS: {
3018
3056
  strikeOption: string;
3019
3057
  codeBlockOption: string;
3020
3058
  highlightOption: string;
3059
+ emojiOption: string;
3060
+ emojiDropdownIcon: string;
3021
3061
  linkInput: string;
3022
3062
  linkSubmitButton: string;
3023
3063
  commandList: (index: number) => string;