@bigbinary/neeto-playwright-commons 1.9.1 → 1.9.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.cjs.js +256 -56
- package/index.cjs.js.map +1 -1
- package/index.d.ts +272 -6
- package/index.js +252 -56
- package/index.js.map +1 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -4,12 +4,12 @@ import * as fs$d from 'fs';
|
|
|
4
4
|
import fs__default, { writeFileSync as writeFileSync$1, unlinkSync, readFileSync } from 'fs';
|
|
5
5
|
import { curry, not, isEmpty as isEmpty$1, isNil, isNotNil, mergeDeepLeft, mergeAll } from 'ramda';
|
|
6
6
|
import require$$0$2 from 'util';
|
|
7
|
+
import Path from 'path';
|
|
7
8
|
import { faker } from '@faker-js/faker';
|
|
8
9
|
import MailosaurClient from 'mailosaur';
|
|
9
10
|
import dayjs from 'dayjs';
|
|
10
11
|
import require$$1$1 from 'tty';
|
|
11
12
|
import require$$0$3 from 'os';
|
|
12
|
-
import Path from 'path';
|
|
13
13
|
import Stream$4 from 'stream';
|
|
14
14
|
import require$$0$4 from 'events';
|
|
15
15
|
import { getI18nInstance, initI18n } from 'playwright-i18next-fixture';
|
|
@@ -26,6 +26,58 @@ import require$$1$2 from 'string_decoder';
|
|
|
26
26
|
import require$$4$1 from 'timers';
|
|
27
27
|
import require$$3$2 from 'crypto';
|
|
28
28
|
|
|
29
|
+
const BASE_URL = "/api/v1";
|
|
30
|
+
const NEETO_AUTH_BASE_URL = (subdomain = "app") => `https://${subdomain}.neetoauth.net`;
|
|
31
|
+
const ROUTES = {
|
|
32
|
+
neetoAuthSignup: `${NEETO_AUTH_BASE_URL()}/signups/new`,
|
|
33
|
+
neetoAuth: NEETO_AUTH_BASE_URL(),
|
|
34
|
+
loginLink: "/login",
|
|
35
|
+
profile: "/profile",
|
|
36
|
+
admin: "/admin",
|
|
37
|
+
myProfile: "/my/profile",
|
|
38
|
+
authSettings: "/settings",
|
|
39
|
+
webhooks: "/webhooks",
|
|
40
|
+
login: `${BASE_URL}/login`,
|
|
41
|
+
signup: `${BASE_URL}/signups`,
|
|
42
|
+
subdomainAvailability: `${BASE_URL}/subdomain_availability`,
|
|
43
|
+
countries: `${BASE_URL}/countries`,
|
|
44
|
+
neetoApps: `${BASE_URL}/neeto_apps`,
|
|
45
|
+
directUploads: "/direct_uploads",
|
|
46
|
+
teamMembers: {
|
|
47
|
+
all: "/team_members*/**",
|
|
48
|
+
bulkUpdate: "/team_members/teams/bulk_update",
|
|
49
|
+
index: "/team_members/teams",
|
|
50
|
+
show: (id) => `/team_members/teams/${id}`,
|
|
51
|
+
},
|
|
52
|
+
};
|
|
53
|
+
const API_ROUTES = {
|
|
54
|
+
teamMembers: {
|
|
55
|
+
all: "/team_members*/**",
|
|
56
|
+
bulkUpdate: "/team_members/teams/bulk_update",
|
|
57
|
+
index: "/team_members/teams",
|
|
58
|
+
show: (id) => `/team_members/teams/${id}`,
|
|
59
|
+
},
|
|
60
|
+
integrations: {
|
|
61
|
+
zapier: {
|
|
62
|
+
api_keys: "/neeto_integrations/zapier/api_keys",
|
|
63
|
+
},
|
|
64
|
+
},
|
|
65
|
+
};
|
|
66
|
+
const THIRD_PARTY_ROUTES = {
|
|
67
|
+
webhooks: { site: "https://webhook.site/" },
|
|
68
|
+
slack: {
|
|
69
|
+
loginWithPassword: (workspace) => `https://${workspace}.slack.com/sign_in_with_password`,
|
|
70
|
+
},
|
|
71
|
+
zapier: {
|
|
72
|
+
login: "https://zapier.com/app/login",
|
|
73
|
+
logOut: "https://zapier.com/logout",
|
|
74
|
+
zapEditor: (zapId) => `https://zapier.com/editor/${zapId}`,
|
|
75
|
+
},
|
|
76
|
+
};
|
|
77
|
+
const NEETO_ROUTES = {
|
|
78
|
+
imageUploader: "/neeto_image_uploader_engine",
|
|
79
|
+
};
|
|
80
|
+
|
|
29
81
|
const NEETO_FILTERS_SELECTORS = {
|
|
30
82
|
emailSelectContainer: "email-select-container-wrapper",
|
|
31
83
|
filterPaneHeading: "neeto-filters-pane-header",
|
|
@@ -45,6 +97,34 @@ const NEETO_FILTERS_SELECTORS = {
|
|
|
45
97
|
searchTermBlock: "neeto-filters-search-term-block",
|
|
46
98
|
};
|
|
47
99
|
|
|
100
|
+
const NEETO_IMAGE_UPLOADER_SELECTORS = {
|
|
101
|
+
imageUploaderWrapper: "image-uploader-wrapper",
|
|
102
|
+
browseText: "neeto-image-uploader-browse-text",
|
|
103
|
+
fileInput: "neeto-image-uploader-file-input",
|
|
104
|
+
uploadedImage: "uploaded-image",
|
|
105
|
+
uploadNewAsset: "upload-new-asset",
|
|
106
|
+
basicImageUploaderRemoveButton: "basic-image-uploader-remove-button",
|
|
107
|
+
removeButton: "image-uploader-remove-button",
|
|
108
|
+
openImageLibraryButton: "image-uploader-open-image-library-button",
|
|
109
|
+
openAssetLibraryButton: "open-asset-library-button",
|
|
110
|
+
imageEditorBackButton: "image-editor-back-button",
|
|
111
|
+
aspectRatioWidthInput: "aspect-ratio-width-input",
|
|
112
|
+
aspectRatioHeightInput: "aspect-ratio-height-input",
|
|
113
|
+
cropSubmitButton: "neeto-image-uploader-crop-submit-button",
|
|
114
|
+
restrictionMessage: "neeto-image-uploader-restriction-message",
|
|
115
|
+
progressBar: "neeto-image-uploader-progress-bar",
|
|
116
|
+
myImagesTab: "neeto-image-uploader-my-images-tab",
|
|
117
|
+
unsplashTab: "neeto-image-uploader-unsplash-tab",
|
|
118
|
+
nthLibraryImage: (index) => `niu-library-image-${index}`,
|
|
119
|
+
nthUnsplashImage: (index) => `niu-unsplash-image-${index}`,
|
|
120
|
+
unsplashSearchInput: "niu-unsplash-image-picker-search-input",
|
|
121
|
+
imageEditorUploadedImage: "image-editor-uploaded-image",
|
|
122
|
+
selectOriginalImageSwitch: "select-original-image-switch",
|
|
123
|
+
lockAspectRatioSwitch: "lock-aspect-ratio-switch",
|
|
124
|
+
widthInputField: "width-input-field",
|
|
125
|
+
heightInputField: "height-input-field",
|
|
126
|
+
};
|
|
127
|
+
|
|
48
128
|
const ENVIRONMENT = {
|
|
49
129
|
development: "development",
|
|
50
130
|
staging: "staging",
|
|
@@ -158,6 +238,9 @@ const getByDataQA = curry((page, dataQa) => {
|
|
|
158
238
|
});
|
|
159
239
|
|
|
160
240
|
const COMMON_SELECTORS = {
|
|
241
|
+
emailInputError: "email-input-error",
|
|
242
|
+
pane: "pane-wrapper",
|
|
243
|
+
sideBar: "sidebar",
|
|
161
244
|
copyButton: "copy-button",
|
|
162
245
|
spinner: ".neeto-ui-spinner",
|
|
163
246
|
subheaderText: "subheader-left",
|
|
@@ -2501,6 +2584,12 @@ var lib$7 = {
|
|
|
2501
2584
|
|
|
2502
2585
|
var qs$1 = /*@__PURE__*/getDefaultExportFromCjs(lib$7);
|
|
2503
2586
|
|
|
2587
|
+
const getImagePathAndName = (localImagePath) => {
|
|
2588
|
+
const imagePath = Path.join(__dirname, localImagePath);
|
|
2589
|
+
const imageName = Path.basename(localImagePath, Path.extname(localImagePath));
|
|
2590
|
+
return { imagePath, imageName };
|
|
2591
|
+
};
|
|
2592
|
+
|
|
2504
2593
|
class CustomCommands {
|
|
2505
2594
|
constructor(page, request, baseURL = process.env.BASE_URL) {
|
|
2506
2595
|
this.interceptMultipleResponses = ({ responseUrl = "", responseStatus = 200, times = 1, baseUrl, customPageContext, timeout = 35000, } = {}) => {
|
|
@@ -2551,15 +2640,15 @@ class CustomCommands {
|
|
|
2551
2640
|
await pageContext.reload();
|
|
2552
2641
|
await reloadRequests;
|
|
2553
2642
|
};
|
|
2554
|
-
this.waitForPageLoad = async ({
|
|
2643
|
+
this.waitForPageLoad = async ({ visibilityTimeout = 35000, customPageContext, } = {}) => {
|
|
2555
2644
|
const pageContext = customPageContext !== null && customPageContext !== void 0 ? customPageContext : this.page;
|
|
2556
2645
|
await pageContext.waitForLoadState("load");
|
|
2557
2646
|
await Promise.all([
|
|
2558
2647
|
expect(pageContext.getByTestId(COMMON_SELECTORS.pageLoader)).toBeHidden({
|
|
2559
|
-
timeout:
|
|
2648
|
+
timeout: visibilityTimeout,
|
|
2560
2649
|
}),
|
|
2561
2650
|
expect(pageContext.getByTestId(COMMON_SELECTORS.spinner)).toBeHidden({
|
|
2562
|
-
timeout:
|
|
2651
|
+
timeout: visibilityTimeout,
|
|
2563
2652
|
}),
|
|
2564
2653
|
]);
|
|
2565
2654
|
};
|
|
@@ -2586,14 +2675,14 @@ class CustomCommands {
|
|
|
2586
2675
|
};
|
|
2587
2676
|
this.selectOptionFromDropdown = async ({ selectValueContainer, selectMenu, value, options = {}, }) => {
|
|
2588
2677
|
Object.assign({
|
|
2589
|
-
|
|
2678
|
+
visibilityTimeout: 2000,
|
|
2590
2679
|
textAssertionTimeout: 1000,
|
|
2591
2680
|
retryTimeout: 20000,
|
|
2592
2681
|
}, options);
|
|
2593
2682
|
await expect(async () => {
|
|
2594
2683
|
await this.page.getByTestId(selectValueContainer).click();
|
|
2595
2684
|
await expect(this.page.getByTestId(selectMenu)).toBeVisible({
|
|
2596
|
-
timeout: options.
|
|
2685
|
+
timeout: options.visibilityTimeout,
|
|
2597
2686
|
});
|
|
2598
2687
|
await this.page.getByTestId(selectMenu).getByText(value).click();
|
|
2599
2688
|
await expect(this.page.getByTestId(selectValueContainer)).toContainText(value, { timeout: options.textAssertionTimeout });
|
|
@@ -2615,6 +2704,20 @@ class CustomCommands {
|
|
|
2615
2704
|
await expect(this.page.getByTestId(countSelector)).toContainText(countText);
|
|
2616
2705
|
}).toPass({ timeout: 15000 });
|
|
2617
2706
|
};
|
|
2707
|
+
this.uploadImage = async (localImagePath) => {
|
|
2708
|
+
const { imageName, imagePath } = getImagePathAndName(localImagePath);
|
|
2709
|
+
await this.page
|
|
2710
|
+
.getByTestId(NEETO_IMAGE_UPLOADER_SELECTORS.browseText)
|
|
2711
|
+
.click();
|
|
2712
|
+
const uploadFile = this.interceptMultipleResponses({
|
|
2713
|
+
responseUrl: ROUTES.directUploads,
|
|
2714
|
+
});
|
|
2715
|
+
await this.page
|
|
2716
|
+
.getByTestId(NEETO_IMAGE_UPLOADER_SELECTORS.fileInput)
|
|
2717
|
+
.setInputFiles(imagePath);
|
|
2718
|
+
await uploadFile;
|
|
2719
|
+
await expect(this.page.getByTestId(NEETO_IMAGE_UPLOADER_SELECTORS.uploadedImage)).toHaveAttribute("src", new RegExp(imageName), { timeout: 20000 });
|
|
2720
|
+
};
|
|
2618
2721
|
this.page = page;
|
|
2619
2722
|
this.responses = [];
|
|
2620
2723
|
this.request = request;
|
|
@@ -12545,54 +12648,6 @@ class EmbedBase {
|
|
|
12545
12648
|
}
|
|
12546
12649
|
}
|
|
12547
12650
|
|
|
12548
|
-
const BASE_URL = "/api/v1";
|
|
12549
|
-
const NEETO_AUTH_BASE_URL = (subdomain = "app") => `https://${subdomain}.neetoauth.net`;
|
|
12550
|
-
const ROUTES = {
|
|
12551
|
-
neetoAuthSignup: `${NEETO_AUTH_BASE_URL()}/signups/new`,
|
|
12552
|
-
neetoAuth: NEETO_AUTH_BASE_URL(),
|
|
12553
|
-
loginLink: "/login",
|
|
12554
|
-
profile: "/profile",
|
|
12555
|
-
admin: "/admin",
|
|
12556
|
-
myProfile: "/my/profile",
|
|
12557
|
-
authSettings: "/settings",
|
|
12558
|
-
webhooks: "/webhooks",
|
|
12559
|
-
login: `${BASE_URL}/login`,
|
|
12560
|
-
signup: `${BASE_URL}/signups`,
|
|
12561
|
-
subdomainAvailability: `${BASE_URL}/subdomain_availability`,
|
|
12562
|
-
countries: `${BASE_URL}/countries`,
|
|
12563
|
-
neetoApps: `${BASE_URL}/neeto_apps`,
|
|
12564
|
-
teamMembers: {
|
|
12565
|
-
all: "/team_members*/**",
|
|
12566
|
-
bulkUpdate: "/team_members/teams/bulk_update",
|
|
12567
|
-
index: "/team_members/teams",
|
|
12568
|
-
show: (id) => `/team_members/teams/${id}`,
|
|
12569
|
-
},
|
|
12570
|
-
};
|
|
12571
|
-
const API_ROUTES = {
|
|
12572
|
-
teamMembers: {
|
|
12573
|
-
all: "/team_members*/**",
|
|
12574
|
-
bulkUpdate: "/team_members/teams/bulk_update",
|
|
12575
|
-
index: "/team_members/teams",
|
|
12576
|
-
show: (id) => `/team_members/teams/${id}`,
|
|
12577
|
-
},
|
|
12578
|
-
integrations: {
|
|
12579
|
-
zapier: {
|
|
12580
|
-
api_keys: "/neeto_integrations/zapier/api_keys",
|
|
12581
|
-
},
|
|
12582
|
-
},
|
|
12583
|
-
};
|
|
12584
|
-
const THIRD_PARTY_ROUTES = {
|
|
12585
|
-
webhooks: { site: "https://webhook.site/" },
|
|
12586
|
-
slack: {
|
|
12587
|
-
loginWithPassword: (workspace) => `https://${workspace}.slack.com/sign_in_with_password`,
|
|
12588
|
-
},
|
|
12589
|
-
zapier: {
|
|
12590
|
-
login: "https://zapier.com/app/login",
|
|
12591
|
-
logOut: "https://zapier.com/logout",
|
|
12592
|
-
zapEditor: (zapId) => `https://zapier.com/editor/${zapId}`,
|
|
12593
|
-
},
|
|
12594
|
-
};
|
|
12595
|
-
|
|
12596
12651
|
const CHAT_WIDGET_TEXTS = {
|
|
12597
12652
|
newConversation: "New Conversation",
|
|
12598
12653
|
welcomeChatBubble: "Hi! I'm here to assist you with any questions you may have. What can I do for you?",
|
|
@@ -13477,6 +13532,147 @@ class ZapierPage extends IntegrationBase {
|
|
|
13477
13532
|
}
|
|
13478
13533
|
}
|
|
13479
13534
|
|
|
13535
|
+
class ImageUploader {
|
|
13536
|
+
constructor({ page, neetoPlaywrightUtilities, }) {
|
|
13537
|
+
this.submitCroppedImage = async () => {
|
|
13538
|
+
const cropImage = this.neetoPlaywrightUtilities.interceptMultipleResponses({
|
|
13539
|
+
responseUrl: ROUTES.directUploads,
|
|
13540
|
+
});
|
|
13541
|
+
await this.page
|
|
13542
|
+
.getByTestId(NEETO_IMAGE_UPLOADER_SELECTORS.cropSubmitButton)
|
|
13543
|
+
.click();
|
|
13544
|
+
await cropImage;
|
|
13545
|
+
};
|
|
13546
|
+
this.removeImage = async () => {
|
|
13547
|
+
await this.page
|
|
13548
|
+
.getByTestId(NEETO_IMAGE_UPLOADER_SELECTORS.imageUploaderWrapper)
|
|
13549
|
+
.getByTestId(COMMON_SELECTORS.dropdownIcon)
|
|
13550
|
+
.click();
|
|
13551
|
+
await this.page
|
|
13552
|
+
.getByTestId(NEETO_IMAGE_UPLOADER_SELECTORS.removeButton)
|
|
13553
|
+
.click();
|
|
13554
|
+
await expect(this.page.getByTestId(NEETO_IMAGE_UPLOADER_SELECTORS.uploadedImage)).toBeHidden();
|
|
13555
|
+
};
|
|
13556
|
+
this.openImageLibrary = async () => {
|
|
13557
|
+
const fetchImages = this.neetoPlaywrightUtilities.interceptMultipleResponses({
|
|
13558
|
+
responseUrl: NEETO_ROUTES.imageUploader,
|
|
13559
|
+
});
|
|
13560
|
+
await this.page
|
|
13561
|
+
.getByTestId(NEETO_IMAGE_UPLOADER_SELECTORS.openAssetLibraryButton)
|
|
13562
|
+
.click();
|
|
13563
|
+
await fetchImages;
|
|
13564
|
+
};
|
|
13565
|
+
this.cropImage = async ({ toggleAspectRatioLock = false, width = "100", height = "100", aspectRatioHeight = "9", aspectRatioWidth = "16", } = {}) => {
|
|
13566
|
+
toggleAspectRatioLock &&
|
|
13567
|
+
(await this.page
|
|
13568
|
+
.getByTestId(NEETO_IMAGE_UPLOADER_SELECTORS.lockAspectRatioSwitch)
|
|
13569
|
+
.click());
|
|
13570
|
+
await this.page
|
|
13571
|
+
.getByTestId(NEETO_IMAGE_UPLOADER_SELECTORS.aspectRatioHeightInput)
|
|
13572
|
+
.fill(aspectRatioHeight);
|
|
13573
|
+
await this.page
|
|
13574
|
+
.getByTestId(NEETO_IMAGE_UPLOADER_SELECTORS.aspectRatioWidthInput)
|
|
13575
|
+
.fill(aspectRatioWidth);
|
|
13576
|
+
await this.page
|
|
13577
|
+
.getByTestId(NEETO_IMAGE_UPLOADER_SELECTORS.widthInputField)
|
|
13578
|
+
.fill(width);
|
|
13579
|
+
await this.page
|
|
13580
|
+
.getByTestId(NEETO_IMAGE_UPLOADER_SELECTORS.heightInputField)
|
|
13581
|
+
.fill(height);
|
|
13582
|
+
};
|
|
13583
|
+
this.uploadNewImageFromLibrary = async ({ localImagePath, toggleOrginalImage = false, toggleAspectRatioLock = false, aspectRatioHeight = "9", aspectRatioWidth = "16", width = "100", height = "100", }) => {
|
|
13584
|
+
await this.openImageLibrary();
|
|
13585
|
+
const fileUploaderPromise = this.page.waitForEvent("filechooser");
|
|
13586
|
+
await this.page
|
|
13587
|
+
.getByTestId(NEETO_IMAGE_UPLOADER_SELECTORS.uploadNewAsset)
|
|
13588
|
+
.click();
|
|
13589
|
+
const fileUploader = await fileUploaderPromise;
|
|
13590
|
+
const { imagePath, imageName } = getImagePathAndName(localImagePath);
|
|
13591
|
+
await fileUploader.setFiles(imagePath);
|
|
13592
|
+
await expect(this.page.getByTestId(NEETO_IMAGE_UPLOADER_SELECTORS.imageEditorUploadedImage)).toHaveAttribute("src", new RegExp(imageName), { timeout: 20000 });
|
|
13593
|
+
toggleOrginalImage
|
|
13594
|
+
? await this.page
|
|
13595
|
+
.getByTestId(NEETO_IMAGE_UPLOADER_SELECTORS.selectOriginalImageSwitch)
|
|
13596
|
+
.click()
|
|
13597
|
+
: await this.cropImage({
|
|
13598
|
+
toggleAspectRatioLock,
|
|
13599
|
+
aspectRatioHeight,
|
|
13600
|
+
aspectRatioWidth,
|
|
13601
|
+
width,
|
|
13602
|
+
height,
|
|
13603
|
+
});
|
|
13604
|
+
await this.submitCroppedImage();
|
|
13605
|
+
};
|
|
13606
|
+
this.selectImageFromWeb = async ({ nthImage = 0, searchTerm = "", toggleOrginalImage = false, toggleAspectRatioLock = false, aspectRatioHeight = "9", aspectRatioWidth = "16", width = "100", height = "100", } = {}) => {
|
|
13607
|
+
await this.openImageLibrary();
|
|
13608
|
+
const switchImageTab = this.neetoPlaywrightUtilities.interceptMultipleResponses({
|
|
13609
|
+
responseUrl: NEETO_ROUTES.imageUploader,
|
|
13610
|
+
});
|
|
13611
|
+
await this.page
|
|
13612
|
+
.getByTestId(NEETO_IMAGE_UPLOADER_SELECTORS.unsplashTab)
|
|
13613
|
+
.click();
|
|
13614
|
+
await switchImageTab;
|
|
13615
|
+
if (isNotEmpty(searchTerm)) {
|
|
13616
|
+
await this.page
|
|
13617
|
+
.getByTestId(NEETO_IMAGE_UPLOADER_SELECTORS.unsplashSearchInput)
|
|
13618
|
+
.fill(searchTerm);
|
|
13619
|
+
await expect(this.page.getByTestId(COMMON_SELECTORS.spinner)).toBeHidden({
|
|
13620
|
+
timeout: 10000,
|
|
13621
|
+
});
|
|
13622
|
+
}
|
|
13623
|
+
await this.page
|
|
13624
|
+
.getByTestId(NEETO_IMAGE_UPLOADER_SELECTORS.nthUnsplashImage(nthImage))
|
|
13625
|
+
.click();
|
|
13626
|
+
await expect(this.page.getByTestId(COMMON_SELECTORS.spinner)).toBeHidden({
|
|
13627
|
+
timeout: 10000,
|
|
13628
|
+
});
|
|
13629
|
+
toggleOrginalImage
|
|
13630
|
+
? await this.page
|
|
13631
|
+
.getByTestId(NEETO_IMAGE_UPLOADER_SELECTORS.selectOriginalImageSwitch)
|
|
13632
|
+
.click()
|
|
13633
|
+
: await this.cropImage({
|
|
13634
|
+
toggleAspectRatioLock,
|
|
13635
|
+
aspectRatioHeight,
|
|
13636
|
+
aspectRatioWidth,
|
|
13637
|
+
width,
|
|
13638
|
+
height,
|
|
13639
|
+
});
|
|
13640
|
+
await this.submitCroppedImage();
|
|
13641
|
+
};
|
|
13642
|
+
this.selectImageFromLibrary = async ({ nthImage = 0, searchTerm = "", toggleOrginalImage = false, toggleAspectRatioLock = false, aspectRatioHeight = "9", aspectRatioWidth = "16", width = "100", height = "100", } = {}) => {
|
|
13643
|
+
await this.openImageLibrary();
|
|
13644
|
+
await expect(this.page.getByTestId(COMMON_SELECTORS.spinner)).toBeHidden({
|
|
13645
|
+
timeout: 10000,
|
|
13646
|
+
});
|
|
13647
|
+
if (isNotEmpty(searchTerm)) {
|
|
13648
|
+
await this.page
|
|
13649
|
+
.getByTestId(NEETO_IMAGE_UPLOADER_SELECTORS.unsplashSearchInput)
|
|
13650
|
+
.fill(searchTerm);
|
|
13651
|
+
await expect(this.page.getByTestId(COMMON_SELECTORS.spinner)).toBeHidden({
|
|
13652
|
+
timeout: 10000,
|
|
13653
|
+
});
|
|
13654
|
+
}
|
|
13655
|
+
await this.page
|
|
13656
|
+
.getByTestId(NEETO_IMAGE_UPLOADER_SELECTORS.nthLibraryImage(nthImage))
|
|
13657
|
+
.click();
|
|
13658
|
+
toggleOrginalImage
|
|
13659
|
+
? await this.page
|
|
13660
|
+
.getByTestId(NEETO_IMAGE_UPLOADER_SELECTORS.selectOriginalImageSwitch)
|
|
13661
|
+
.click()
|
|
13662
|
+
: await this.cropImage({
|
|
13663
|
+
toggleAspectRatioLock,
|
|
13664
|
+
aspectRatioHeight,
|
|
13665
|
+
aspectRatioWidth,
|
|
13666
|
+
width,
|
|
13667
|
+
height,
|
|
13668
|
+
});
|
|
13669
|
+
await this.submitCroppedImage();
|
|
13670
|
+
};
|
|
13671
|
+
this.page = page;
|
|
13672
|
+
this.neetoPlaywrightUtilities = neetoPlaywrightUtilities;
|
|
13673
|
+
}
|
|
13674
|
+
}
|
|
13675
|
+
|
|
13480
13676
|
const LOGIN_SELECTORS = {
|
|
13481
13677
|
appleAuthenticationButton: "apple-authentication-button",
|
|
13482
13678
|
emailTextField: "login-email-text-field",
|
|
@@ -13855,7 +14051,7 @@ const ROLES_SELECTORS = {
|
|
|
13855
14051
|
tableHeaderRoleTitle: "ntm-roles-table-header-role-title",
|
|
13856
14052
|
permissionCheckbox: "ntm-roles-permission-checkbox",
|
|
13857
14053
|
editRoleButton: "ntm-roles-table-edit-role-button",
|
|
13858
|
-
deleteRoleButton: "
|
|
14054
|
+
deleteRoleButton: "ntm-roles-table-delete-role-button",
|
|
13859
14055
|
permissionCard: "ntm-roles-permission-card",
|
|
13860
14056
|
};
|
|
13861
14057
|
|
|
@@ -147482,5 +147678,5 @@ const definePlaywrightConfig = (overrides) => {
|
|
|
147482
147678
|
});
|
|
147483
147679
|
};
|
|
147484
147680
|
|
|
147485
|
-
export { API_ROUTES, BASE_URL, CHANGELOG_WIDGET_SELECTORS, CHAT_WIDGET_SELECTORS, CHAT_WIDGET_TEXTS, COMMON_SELECTORS, CREDENTIALS, CustomCommands, EMBED_SELECTORS, ENVIRONMENT, EmbedBase, GLOBAL_TRANSLATIONS_PATTERN, HELP_CENTER_SELECTORS, HelpAndProfilePage, INTEGRATIONS_TEXTS, INTEGRATION_SELECTORS, IS_STAGING_ENV, IntegrationBase, KEYBOARD_SHORTCUTS_SELECTORS, LOGIN_SELECTORS, MEMBER_FORM_SELECTORS, MEMBER_SELECTORS, MEMBER_TEXTS, MERGE_TAGS_SELECTORS, MailosaurUtils, NEETO_AUTH_BASE_URL, NEETO_EDITOR_SELECTORS, NEETO_FILTERS_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, THIRD_PARTY_ROUTES, TOASTR_MESSAGES, 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, 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 };
|
|
147681
|
+
export { API_ROUTES, BASE_URL, CHANGELOG_WIDGET_SELECTORS, CHAT_WIDGET_SELECTORS, CHAT_WIDGET_TEXTS, COMMON_SELECTORS, CREDENTIALS, CustomCommands, EMBED_SELECTORS, ENVIRONMENT, EmbedBase, GLOBAL_TRANSLATIONS_PATTERN, HELP_CENTER_SELECTORS, HelpAndProfilePage, INTEGRATIONS_TEXTS, INTEGRATION_SELECTORS, IS_STAGING_ENV, ImageUploader, IntegrationBase, KEYBOARD_SHORTCUTS_SELECTORS, 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, 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, THIRD_PARTY_ROUTES, TOASTR_MESSAGES, 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 };
|
|
147486
147682
|
//# sourceMappingURL=index.js.map
|