@bigbinary/neeto-playwright-commons 1.2.0 → 1.3.1

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
@@ -1,5 +1,7 @@
1
1
  import * as _playwright_test from '@playwright/test';
2
2
  import { Page, APIRequestContext, Response, APIResponse, Fixtures, PlaywrightWorkerArgs, PlaywrightWorkerOptions, PlaywrightTestArgs, PlaywrightTestOptions } from '@playwright/test';
3
+ import * as playwright_test from 'playwright/test';
4
+ import * as playwright_i18next_fixture from 'playwright-i18next-fixture';
3
5
 
4
6
  interface InterceptMultipleResponsesParams {
5
7
  responseUrl: string;
@@ -66,19 +68,7 @@ declare const generateStagingData: (product?: string) => {
66
68
  email: string;
67
69
  };
68
70
 
69
- declare const i18n: {
70
- options: {
71
- debug: boolean;
72
- fallbackLng: string;
73
- resources: {
74
- en: {
75
- translation: Record<string, unknown>;
76
- };
77
- };
78
- };
79
- cache: boolean;
80
- auto: boolean;
81
- };
71
+ declare const i18nFixture: playwright_test.Fixtures<playwright_i18next_fixture.I18nPlaywrightFixture, playwright_test.PlaywrightWorkerArgs & playwright_test.PlaywrightWorkerOptions, playwright_test.PlaywrightTestArgs & playwright_test.PlaywrightTestOptions, playwright_test.PlaywrightWorkerArgs & playwright_test.PlaywrightWorkerOptions>;
82
72
 
83
73
  interface CreateOrganizationProps {
84
74
  email: string;
@@ -115,25 +105,189 @@ declare const CREDENTIALS: {
115
105
  declare const BASE_URL = "/api/v1";
116
106
  declare const ROUTES: {
117
107
  neetoAuth: string;
108
+ neetoAuthSignup: string;
118
109
  profile: string;
119
110
  login: string;
120
111
  signup: string;
121
112
  subdomainAvailability: string;
122
113
  countries: string;
123
114
  neetoApps: string;
115
+ teamMembers: {
116
+ all: string;
117
+ bulkUpdate: string;
118
+ index: string;
119
+ show: (id: string) => string;
120
+ };
124
121
  };
125
122
 
126
123
  declare const COMMON_SELECTORS: {
127
- toastMessage: string;
128
- toastIcon: string;
129
- toastCloseButton: string;
130
- dropdownIcon: string;
131
- checkbox: string;
132
124
  spinner: string;
133
- input: string;
125
+ subheaderText: string;
126
+ alertTitle: string;
127
+ alertModalMessage: string;
134
128
  alertModalSubmitButton: string;
129
+ checkbox: string;
130
+ checkboxLabel: string;
131
+ dropdownContainer: string;
132
+ dropdownIcon: string;
133
+ heading: string;
134
+ paneBody: string;
135
+ paneHeader: string;
136
+ profileSidebar: string;
137
+ selectOption: (label: string) => string;
138
+ toastMessage: string;
139
+ toastCloseButton: string;
140
+ windowAlert: string;
141
+ body: string;
142
+ toastIcon: string;
143
+ paneModalCrossIcon: string;
144
+ inputField: string;
145
+ alertConfirmationText: string;
146
+ alertCancelButton: string;
147
+ alertModalCrossIcon: string;
148
+ saveChangesButton: string;
149
+ cancelButton: string;
150
+ inputFieldError: string;
151
+ selectDropDownError: string;
152
+ subTitleHeading: string;
153
+ noDataTitle: string;
154
+ noDataDescription: string;
155
+ backdrop: string;
156
+ menuBarHeading: string;
157
+ dropdownWrapper: string;
158
+ toggleButton: string;
159
+ tooltip: string;
160
+ articlePageTitle: string;
161
+ tabItem: string;
162
+ labelInputError: string;
163
+ urlInputError: string;
164
+ noDataPrimaryButton: string;
165
+ modalHeader: string;
166
+ nameInputError: string;
135
167
  selectContainer: string;
136
- subheaderText: string;
168
+ dropdownMenu: string;
169
+ sidebarToggle: string;
170
+ subheader: string;
171
+ settingsLink: string;
172
+ ticketFieldTextInput: (label: string | number) => string;
173
+ };
174
+
175
+ declare const NEETO_EDITOR_SELECTORS: {
176
+ boldOption: string;
177
+ italicOption: string;
178
+ underlineOption: string;
179
+ strikeOption: string;
180
+ codeBlockOption: string;
181
+ highlightOption: string;
182
+ linkInput: string;
183
+ linkSubmitButton: string;
184
+ commandList: (index: number) => string;
185
+ imageUploadUrlSubmitButton: string;
186
+ imageUploadUrlInputTextField: string;
187
+ uploadInput: string;
188
+ editorMenuBarWrapper: string;
189
+ undoOption: string;
190
+ redoOption: string;
191
+ imageWrapper: string;
192
+ };
193
+
194
+ declare const NEETO_FILTERS_SELECTORS: {
195
+ emailSelectContainer: string;
196
+ filterPaneHeading: string;
197
+ neetoFiltersEmailBlock: string;
198
+ neetoFiltersRoleBlock: string;
199
+ neetoFiltersBarClearButton: string;
200
+ neetoFiltersNameFilterField: string;
201
+ neetoFilterNameBlock: string;
202
+ roleSelectContainer: string;
203
+ filterButton: string;
204
+ filtersClearButton: string;
205
+ filterDoneButton: string;
206
+ filteredMembersCount: string;
207
+ allMenubarBlock: string;
208
+ filtersEmailFilter: string;
209
+ paneModalCrossIcon: string;
210
+ };
211
+
212
+ declare const HELP_CENTER_SELECTORS: {
213
+ helpButton: string;
214
+ documentationButton: string;
215
+ keyboardShortcutButton: string;
216
+ chatButton: string;
217
+ whatsNewButton: string;
218
+ whatsNewWidgetInfo: string;
219
+ whatsNewWidgetCloseButton: string;
220
+ keyboardShortcutPaneHeading: string;
221
+ keyboardShortcutPaneCrossIcon: string;
222
+ };
223
+ declare const CHAT_WIDGET_SELECTORS: {
224
+ chatWidgetHomeCard: string;
225
+ widgetSubmitButton: string;
226
+ chatBubbleMessage: string;
227
+ chatCloseButton: string;
228
+ widgetIframe: string;
229
+ };
230
+
231
+ declare const LOGIN_SELECTORS: {
232
+ appleAuthenticationButton: string;
233
+ emailTextField: string;
234
+ googleAuthenticationButton: string;
235
+ githubAuthenticationButton: string;
236
+ loginViaEmailButton: string;
237
+ passwordTextField: string;
238
+ rememberMeCheckBox: string;
239
+ submitButton: string;
240
+ twitterAuthenticationButton: string;
241
+ };
242
+
243
+ declare const MEMBER_SELECTORS: {
244
+ membersTab: string;
245
+ newButton: string;
246
+ continueButton: string;
247
+ submitButton: string;
248
+ searchTextField: string;
249
+ deactivatedAgentsButton: string;
250
+ activatedMembersButton: string;
251
+ columnCheckBox: string;
252
+ roleLabel: (role: string) => string;
253
+ dropDownIcon: string;
254
+ editButton: string;
255
+ menuBarHeading: string;
256
+ activateOrDeactivateMember: string;
257
+ columnsButton: string;
258
+ columnsDropdownContainer: string;
259
+ emailDropdownItemLabel: string;
260
+ roleDropdownItemLabel: string;
261
+ inviteStatusDropdownItemLabel: string;
262
+ heading: string;
263
+ activateButton: string;
264
+ deactivateButton: string;
265
+ rolesButton: string;
266
+ statusTag: string;
267
+ };
268
+ declare const MEMBER_FORM_SELECTORS: {
269
+ emailTextField: string;
270
+ firstNameTextField: string;
271
+ lastNameTextField: string;
272
+ emailInput: string;
273
+ emailErrorField: string;
274
+ cancelButton: string;
275
+ };
276
+
277
+ declare const ROLES_SELECTORS: {
278
+ newButton: string;
279
+ proceedButton: string;
280
+ cancelButton: string;
281
+ tableHeaderRoleName: string;
282
+ nameTextField: string;
283
+ searchTextField: string;
284
+ updateRolePaneHeading: string;
285
+ updateRoleCancelButton: string;
286
+ descriptionTextField: string;
287
+ permissionCategoryTitle: string;
288
+ headerColumn: string;
289
+ dropDownIcon: string;
290
+ tableHeaderRoleTitle: string;
137
291
  };
138
292
 
139
293
  declare const SIGNUP_SELECTORS: {
@@ -151,20 +305,26 @@ declare const SIGNUP_SELECTORS: {
151
305
  tryFreeButton: string;
152
306
  };
153
307
 
154
- declare const LOGIN_SELECTORS: {
155
- appleAuthenticationButton: string;
156
- emailTextField: string;
157
- googleAuthenticationButton: string;
158
- githubAuthenticationButton: string;
159
- loginViaEmailButton: string;
160
- passwordTextField: string;
161
- rememberMeCheckBox: string;
308
+ declare const TAGS_SELECTORS: {
309
+ newTagButton: string;
310
+ tagNameTextField: string;
311
+ editButton: string;
312
+ deleteButton: string;
313
+ cancelButton: string;
162
314
  submitButton: string;
163
- twitterAuthenticationButton: string;
315
+ searchTextField: string;
316
+ descriptionTextArea: string;
164
317
  };
165
-
166
- declare const COMMON_TEXTS: {
167
- edit: string;
318
+ declare const MERGE_TAGS_SELECTORS: {
319
+ mergeTagsButton: string;
320
+ mergeButton: string;
321
+ sourceSearchTextField: string;
322
+ sourceTagsList: string;
323
+ destinationTagsList: string;
324
+ destinationSearchTextField: string;
325
+ cancelButton: string;
326
+ proceedButton: string;
327
+ disabledTag: string;
168
328
  };
169
329
 
170
330
  declare const initializeCredentials: (product: string) => void;
@@ -182,12 +342,16 @@ type ReadFileSyncIfExists = (path?: string) => UserContext & Record<string, obje
182
342
  type WriteDataToFile = (data: string) => boolean;
183
343
  type UpdateCredentials = ({ key, value }: KeyValue) => boolean;
184
344
  type ClearCredentials = () => void;
345
+ type Hyphenize = (input: number | string) => string;
346
+ type JoinHyphenCase = (args: string) => string;
185
347
  declare const joinString: JoinString;
186
348
  declare const readFileSyncIfExists: ReadFileSyncIfExists;
187
349
  declare const writeDataToFile: WriteDataToFile;
188
350
  declare const updateCredentials: UpdateCredentials;
189
351
  declare const clearCredentials: ClearCredentials;
190
352
  declare const readTranslations: () => Record<string, unknown>;
353
+ declare const hyphenize: Hyphenize;
354
+ declare const joinHyphenCase: JoinHyphenCase;
191
355
 
192
356
  interface LoginProps {
193
357
  page: Page;
@@ -208,4 +372,4 @@ interface Overrides {
208
372
  }
209
373
  declare const definePlaywrightConfig: (overrides: Overrides) => _playwright_test.PlaywrightTestConfig<{}, {}>;
210
374
 
211
- export { BASE_URL, COMMON_SELECTORS, COMMON_TEXTS, CREDENTIALS, CustomCommands, type CustomFixture, ENVIRONMENT, GLOBAL_TRANSLATIONS_PATTERN, IS_STAGING_ENV, LOGIN_SELECTORS, OrganizationPage, PROJECT_TRANSLATIONS_PATH, ROUTES, SIGNUP_SELECTORS, STORAGE_STATE, clearCredentials, commands, definePlaywrightConfig, generateStagingData, i18n, initializeCredentials, joinString, login, loginWithoutSSO, readFileSyncIfExists, readTranslations, updateCredentials, writeDataToFile };
375
+ export { BASE_URL, CHAT_WIDGET_SELECTORS, COMMON_SELECTORS, CREDENTIALS, CustomCommands, type CustomFixture, ENVIRONMENT, GLOBAL_TRANSLATIONS_PATTERN, HELP_CENTER_SELECTORS, IS_STAGING_ENV, LOGIN_SELECTORS, MEMBER_FORM_SELECTORS, MEMBER_SELECTORS, MERGE_TAGS_SELECTORS, NEETO_EDITOR_SELECTORS, NEETO_FILTERS_SELECTORS, OrganizationPage, PROJECT_TRANSLATIONS_PATH, ROLES_SELECTORS, ROUTES, SIGNUP_SELECTORS, STORAGE_STATE, TAGS_SELECTORS, clearCredentials, commands, definePlaywrightConfig, generateStagingData, hyphenize, i18nFixture, initializeCredentials, joinHyphenCase, joinString, login, loginWithoutSSO, readFileSyncIfExists, readTranslations, updateCredentials, writeDataToFile };