@bigbinary/neeto-playwright-commons 1.19.9 → 1.19.10
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 +88 -89
- package/index.cjs.js.map +1 -1
- package/index.js +88 -89
- package/index.js.map +1 -1
- package/package.json +1 -1
package/index.cjs.js
CHANGED
|
@@ -223,93 +223,6 @@ const THANK_YOU_SELECTORS = {
|
|
|
223
223
|
thankYouMessageEditor: "thank-you-message-editor",
|
|
224
224
|
};
|
|
225
225
|
|
|
226
|
-
const optionSelector = (option) => `neeto-editor-fixed-menu-${option}-option`;
|
|
227
|
-
const fixedMenuSelector = (selector) => `neeto-editor-fixed-menu-${selector}`;
|
|
228
|
-
|
|
229
|
-
const NEETO_EDITOR_SELECTORS = {
|
|
230
|
-
fontSize: optionSelector("font-size"),
|
|
231
|
-
boldOption: optionSelector("bold"),
|
|
232
|
-
italicOption: optionSelector("italic"),
|
|
233
|
-
underlineOption: optionSelector("underline"),
|
|
234
|
-
strikeOption: optionSelector("strike"),
|
|
235
|
-
codeBlockOption: optionSelector("code"),
|
|
236
|
-
highlightOption: optionSelector("highlight"),
|
|
237
|
-
emojiOption: optionSelector("emoji"),
|
|
238
|
-
emojiDropdownIcon: "emoji-dropdown-icon",
|
|
239
|
-
linkInput: fixedMenuSelector("link-option-input"),
|
|
240
|
-
linkSubmitButton: fixedMenuSelector("link-option-link-button"),
|
|
241
|
-
commandList: (index) => `neeto-editor-command-list-item-${index}`,
|
|
242
|
-
imageUploadUrlSubmitButton: "neeto-editor-media-upload-url-submit",
|
|
243
|
-
imageUploadUrlInputTextField: "neeto-editor-media-upload-url-input",
|
|
244
|
-
uploadInput: "neeto-editor-media-uploader-input",
|
|
245
|
-
editorMenuBarWrapper: fixedMenuSelector("wrapper"),
|
|
246
|
-
undoOption: optionSelector("undo"),
|
|
247
|
-
redoOption: optionSelector("redo"),
|
|
248
|
-
imageWrapper: "neeto-editor-image-wrapper",
|
|
249
|
-
contentField: "neeto-editor-content",
|
|
250
|
-
addLinkButton: optionSelector("link"),
|
|
251
|
-
addLinkTextField: "neeto-editor-add-link-text-input",
|
|
252
|
-
addURLTextField: "neeto-editor-add-link-url-input",
|
|
253
|
-
submitLinkButton: "neeto-editor-add-link",
|
|
254
|
-
fixedMenuArrow: fixedMenuSelector("arrow"),
|
|
255
|
-
cannedResponseOption: optionSelector("canned-responses"),
|
|
256
|
-
cannedResponseSelectContainer: "select-a-canned-response-select-container",
|
|
257
|
-
fixedMenuWrapper: fixedMenuSelector("wrapper"),
|
|
258
|
-
linkOption: optionSelector("link"),
|
|
259
|
-
addLinkUrlInput: "neeto-editor-add-link-url-input",
|
|
260
|
-
addLinkDoneButton: "neeto-editor-add-link",
|
|
261
|
-
unlinkButton: "neeto-editor-link-popover-unlink",
|
|
262
|
-
editorAttachmentsButton: optionSelector("attachments"),
|
|
263
|
-
attachmentPreviewDeleteButton: "neeto-editor-preview-delete-button",
|
|
264
|
-
imageUploadOption: optionSelector("image-upload"),
|
|
265
|
-
imageUploadLinkInput: "neeto-editor-media-upload-url-input",
|
|
266
|
-
imageUploadButton: "neeto-editor-media-uploader-dnd",
|
|
267
|
-
imageUploadLinkSubmitButton: "neeto-editor-media-upload-url-submit",
|
|
268
|
-
applyButton: "apply-button",
|
|
269
|
-
videoEmbedOption: optionSelector("video-embed"),
|
|
270
|
-
videoEmbedInput: "neeto-editor-embed-input",
|
|
271
|
-
videoEmbedSubmit: "neeto-editor-embed-cancel",
|
|
272
|
-
videoWrapper: "neeto-editor-video-wrapper",
|
|
273
|
-
paragraphOption: fixedMenuSelector("font-size-option-body2"),
|
|
274
|
-
attachmentPreview: "ne-attachments-wrapper",
|
|
275
|
-
imageUploadLinkButton: "neeto-editor-media-uploader-link-tab",
|
|
276
|
-
errorText: "neeto-editor-error-text",
|
|
277
|
-
content: "editor-content",
|
|
278
|
-
imageUploadDeleteButton: "neeto-editor-image-menu-Delete",
|
|
279
|
-
dynamicVariablesButton: "dynamic-variables-button",
|
|
280
|
-
emojiContainer: "neeto-editor-emoji-picker",
|
|
281
|
-
characterCount: "neeto-editor-character-count",
|
|
282
|
-
tableOption: optionSelector("table"),
|
|
283
|
-
tableCreateButton: "neeto-editor-fixed-menu-table-option-create-button",
|
|
284
|
-
videoUploadOption: optionSelector("video-upload"),
|
|
285
|
-
editorMenuWrapper: "neeto-editor-fixed-menu-wrapper",
|
|
286
|
-
editorMediaUploaderTab: "neeto-editor-media-uploader-local-tab",
|
|
287
|
-
dynamicVariableSelector: (variable) => `dynamic-variables-list-item-${neetoCist.hyphenate(variable)}`,
|
|
288
|
-
};
|
|
289
|
-
const NEETO_TEXT_MODIFIER_SELECTORS = {
|
|
290
|
-
strike: optionSelector("strike"),
|
|
291
|
-
underline: optionSelector("underline"),
|
|
292
|
-
highlight: optionSelector("highlight"),
|
|
293
|
-
};
|
|
294
|
-
const TEXT_MODIFIER_SELECTORS = {
|
|
295
|
-
bold: optionSelector("bold"),
|
|
296
|
-
italic: optionSelector("italic"),
|
|
297
|
-
code: optionSelector("code"),
|
|
298
|
-
blockquote: optionSelector("blockquote"),
|
|
299
|
-
codeBlock: optionSelector("codeBlock"),
|
|
300
|
-
};
|
|
301
|
-
const LIST_MODIFIER_SELECTORS = {
|
|
302
|
-
bulletList: optionSelector("bulletList"),
|
|
303
|
-
orderedList: optionSelector("orderedList"),
|
|
304
|
-
};
|
|
305
|
-
const FONT_SIZE_SELECTORS = {
|
|
306
|
-
h1: fixedMenuSelector("font-size-option-h1"),
|
|
307
|
-
h2: fixedMenuSelector("font-size-option-h2"),
|
|
308
|
-
h3: fixedMenuSelector("font-size-option-h3"),
|
|
309
|
-
h4: fixedMenuSelector("font-size-option-h4"),
|
|
310
|
-
h5: fixedMenuSelector("font-size-option-h5"),
|
|
311
|
-
};
|
|
312
|
-
|
|
313
226
|
const ENVIRONMENT = {
|
|
314
227
|
development: "development",
|
|
315
228
|
staging: "staging",
|
|
@@ -442,6 +355,93 @@ const getListCount = async ({ page, countSelector, }) => {
|
|
|
442
355
|
const getGlobalUserProps = async (page) => (await page.evaluate(() => window.globalProps.user));
|
|
443
356
|
const getClipboardContent = (page) => page.evaluate(() => navigator.clipboard.readText());
|
|
444
357
|
|
|
358
|
+
const optionSelector = (option) => `neeto-editor-fixed-menu-${option}-option`;
|
|
359
|
+
const fixedMenuSelector = (selector) => `neeto-editor-fixed-menu-${selector}`;
|
|
360
|
+
|
|
361
|
+
const NEETO_EDITOR_SELECTORS = {
|
|
362
|
+
fontSize: optionSelector("font-size"),
|
|
363
|
+
boldOption: optionSelector("bold"),
|
|
364
|
+
italicOption: optionSelector("italic"),
|
|
365
|
+
underlineOption: optionSelector("underline"),
|
|
366
|
+
strikeOption: optionSelector("strike"),
|
|
367
|
+
codeBlockOption: optionSelector("code"),
|
|
368
|
+
highlightOption: optionSelector("highlight"),
|
|
369
|
+
emojiOption: optionSelector("emoji"),
|
|
370
|
+
emojiDropdownIcon: "emoji-dropdown-icon",
|
|
371
|
+
linkInput: fixedMenuSelector("link-option-input"),
|
|
372
|
+
linkSubmitButton: fixedMenuSelector("link-option-link-button"),
|
|
373
|
+
commandList: (index) => `neeto-editor-command-list-item-${index}`,
|
|
374
|
+
imageUploadUrlSubmitButton: "neeto-editor-media-upload-url-submit",
|
|
375
|
+
imageUploadUrlInputTextField: "neeto-editor-media-upload-url-input",
|
|
376
|
+
uploadInput: "neeto-editor-media-uploader-input",
|
|
377
|
+
editorMenuBarWrapper: fixedMenuSelector("wrapper"),
|
|
378
|
+
undoOption: optionSelector("undo"),
|
|
379
|
+
redoOption: optionSelector("redo"),
|
|
380
|
+
imageWrapper: "neeto-editor-image-wrapper",
|
|
381
|
+
contentField: "neeto-editor-content",
|
|
382
|
+
addLinkButton: optionSelector("link"),
|
|
383
|
+
addLinkTextField: "neeto-editor-add-link-text-input",
|
|
384
|
+
addURLTextField: "neeto-editor-add-link-url-input",
|
|
385
|
+
submitLinkButton: "neeto-editor-add-link",
|
|
386
|
+
fixedMenuArrow: fixedMenuSelector("arrow"),
|
|
387
|
+
cannedResponseOption: optionSelector("canned-responses"),
|
|
388
|
+
cannedResponseSelectContainer: "select-a-canned-response-select-container",
|
|
389
|
+
fixedMenuWrapper: fixedMenuSelector("wrapper"),
|
|
390
|
+
linkOption: optionSelector("link"),
|
|
391
|
+
addLinkUrlInput: "neeto-editor-add-link-url-input",
|
|
392
|
+
addLinkDoneButton: "neeto-editor-add-link",
|
|
393
|
+
unlinkButton: "neeto-editor-link-popover-unlink",
|
|
394
|
+
editorAttachmentsButton: optionSelector("attachments"),
|
|
395
|
+
attachmentPreviewDeleteButton: "neeto-editor-preview-delete-button",
|
|
396
|
+
imageUploadOption: optionSelector("image-upload"),
|
|
397
|
+
imageUploadLinkInput: "neeto-editor-media-upload-url-input",
|
|
398
|
+
imageUploadButton: "neeto-editor-media-uploader-dnd",
|
|
399
|
+
imageUploadLinkSubmitButton: "neeto-editor-media-upload-url-submit",
|
|
400
|
+
applyButton: "apply-button",
|
|
401
|
+
videoEmbedOption: optionSelector("video-embed"),
|
|
402
|
+
videoEmbedInput: "neeto-editor-embed-input",
|
|
403
|
+
videoEmbedSubmit: "neeto-editor-embed-cancel",
|
|
404
|
+
videoWrapper: "neeto-editor-video-wrapper",
|
|
405
|
+
paragraphOption: fixedMenuSelector("font-size-option-body2"),
|
|
406
|
+
attachmentPreview: "ne-attachments-wrapper",
|
|
407
|
+
imageUploadLinkButton: "neeto-editor-media-uploader-link-tab",
|
|
408
|
+
errorText: "neeto-editor-error-text",
|
|
409
|
+
content: "editor-content",
|
|
410
|
+
imageUploadDeleteButton: "neeto-editor-image-menu-Delete",
|
|
411
|
+
dynamicVariablesButton: "dynamic-variables-button",
|
|
412
|
+
emojiContainer: "neeto-editor-emoji-picker",
|
|
413
|
+
characterCount: "neeto-editor-character-count",
|
|
414
|
+
tableOption: optionSelector("table"),
|
|
415
|
+
tableCreateButton: "neeto-editor-fixed-menu-table-option-create-button",
|
|
416
|
+
videoUploadOption: optionSelector("video-upload"),
|
|
417
|
+
editorMenuWrapper: "neeto-editor-fixed-menu-wrapper",
|
|
418
|
+
editorMediaUploaderTab: "neeto-editor-media-uploader-local-tab",
|
|
419
|
+
dynamicVariableSelector: (variable) => `dynamic-variables-list-item-${joinHyphenCase(variable)}`,
|
|
420
|
+
};
|
|
421
|
+
const NEETO_TEXT_MODIFIER_SELECTORS = {
|
|
422
|
+
strike: optionSelector("strike"),
|
|
423
|
+
underline: optionSelector("underline"),
|
|
424
|
+
highlight: optionSelector("highlight"),
|
|
425
|
+
};
|
|
426
|
+
const TEXT_MODIFIER_SELECTORS = {
|
|
427
|
+
bold: optionSelector("bold"),
|
|
428
|
+
italic: optionSelector("italic"),
|
|
429
|
+
code: optionSelector("code"),
|
|
430
|
+
blockquote: optionSelector("blockquote"),
|
|
431
|
+
codeBlock: optionSelector("codeBlock"),
|
|
432
|
+
};
|
|
433
|
+
const LIST_MODIFIER_SELECTORS = {
|
|
434
|
+
bulletList: optionSelector("bulletList"),
|
|
435
|
+
orderedList: optionSelector("orderedList"),
|
|
436
|
+
};
|
|
437
|
+
const FONT_SIZE_SELECTORS = {
|
|
438
|
+
h1: fixedMenuSelector("font-size-option-h1"),
|
|
439
|
+
h2: fixedMenuSelector("font-size-option-h2"),
|
|
440
|
+
h3: fixedMenuSelector("font-size-option-h3"),
|
|
441
|
+
h4: fixedMenuSelector("font-size-option-h4"),
|
|
442
|
+
h5: fixedMenuSelector("font-size-option-h5"),
|
|
443
|
+
};
|
|
444
|
+
|
|
445
445
|
const EMBED_SELECTORS = {
|
|
446
446
|
iframe: (appName) => `#${appName}-iframe`,
|
|
447
447
|
modal: (appName) => `#${appName}-modal`,
|
|
@@ -191490,8 +191490,7 @@ class ZapierPage extends IntegrationBase {
|
|
|
191490
191490
|
const testTriggerButton = this.zapierWebPage.getByRole("button", {
|
|
191491
191491
|
name: ZAPIER_WEB_TEXTS.testTrigger,
|
|
191492
191492
|
});
|
|
191493
|
-
await
|
|
191494
|
-
await testTriggerButton.click();
|
|
191493
|
+
(await testTriggerButton.isVisible()) && (await testTriggerButton.click());
|
|
191495
191494
|
await test$1.expect(this.zapierWebPage.getByText(ZAPIER_WEB_TEXTS.testCurrentlyInQueue)).toBeHidden({ timeout: 20000 });
|
|
191496
191495
|
await test$1.expect(this.zapierWebPage.getByLabel(ZAPIER_WEB_TEXTS.statusLabel, {
|
|
191497
191496
|
exact: true,
|