lib-e2e-cypress-for-dummys-ts 0.1.0
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/README.md +459 -0
- package/dist/chunk-DRNRKHXN.js +60 -0
- package/dist/chunk-DRNRKHXN.js.map +1 -0
- package/dist/index.cjs +4848 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +431 -0
- package/dist/index.d.ts +431 -0
- package/dist/index.js +4355 -0
- package/dist/index.js.map +1 -0
- package/dist/selector-picker-VJOLGZ5H.js +340 -0
- package/dist/selector-picker-VJOLGZ5H.js.map +1 -0
- package/package.json +71 -0
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1,431 @@
|
|
|
1
|
+
type Lang = 'es' | 'en' | 'fr' | 'it' | 'de';
|
|
2
|
+
declare const SUPPORTED_LANGS: Lang[];
|
|
3
|
+
declare function isLang(value: string): value is Lang;
|
|
4
|
+
|
|
5
|
+
declare const INPUT_TYPES: readonly ["text", "password", "email", "search", "tel", "url", "number", "textarea"];
|
|
6
|
+
type InputType = (typeof INPUT_TYPES)[number];
|
|
7
|
+
|
|
8
|
+
interface DBStoreIndex {
|
|
9
|
+
name: string;
|
|
10
|
+
keyPath: string;
|
|
11
|
+
unique: boolean;
|
|
12
|
+
}
|
|
13
|
+
interface DBStore {
|
|
14
|
+
name: string;
|
|
15
|
+
keyPath: string;
|
|
16
|
+
autoIncrement: boolean;
|
|
17
|
+
indexes: DBStoreIndex[];
|
|
18
|
+
}
|
|
19
|
+
interface DBSchema {
|
|
20
|
+
name: string;
|
|
21
|
+
version: number;
|
|
22
|
+
stores: DBStore[];
|
|
23
|
+
}
|
|
24
|
+
declare const DB_SCHEMA: DBSchema;
|
|
25
|
+
declare const DB_STORE_NAMES: ["tests", "commands", "interceptors", "configuration"];
|
|
26
|
+
|
|
27
|
+
declare class TranslationService {
|
|
28
|
+
private lang;
|
|
29
|
+
private readonly translations;
|
|
30
|
+
constructor();
|
|
31
|
+
setLang(lang: Lang): void;
|
|
32
|
+
getLang(): Lang;
|
|
33
|
+
translate(key: string): string;
|
|
34
|
+
detectLang(): Lang;
|
|
35
|
+
}
|
|
36
|
+
declare const translationService: TranslationService;
|
|
37
|
+
|
|
38
|
+
declare class TransformationService {
|
|
39
|
+
toLang(lang: string): Lang;
|
|
40
|
+
generateItDescription(description: string, commands: string[]): string;
|
|
41
|
+
}
|
|
42
|
+
declare const transformationService: TransformationService;
|
|
43
|
+
|
|
44
|
+
interface DirectoryNode {
|
|
45
|
+
name: string;
|
|
46
|
+
kind: 'directory';
|
|
47
|
+
children: (DirectoryNode | FileNode)[];
|
|
48
|
+
}
|
|
49
|
+
interface FileNode {
|
|
50
|
+
name: string;
|
|
51
|
+
kind: 'file';
|
|
52
|
+
}
|
|
53
|
+
declare class AdvancedTestTransformationService {
|
|
54
|
+
insertBeforeEach(content: string, interceptors: string, alertFn?: (msg: string) => void): string;
|
|
55
|
+
insertItBlock(content: string, itBlock: string, alertFn?: (msg: string) => void): string;
|
|
56
|
+
isFile(file: unknown): boolean;
|
|
57
|
+
scanDirectory(dirHandle: FileSystemDirectoryHandle): Promise<DirectoryNode>;
|
|
58
|
+
}
|
|
59
|
+
declare const advancedTestTransformationService: AdvancedTestTransformationService;
|
|
60
|
+
|
|
61
|
+
declare class Subject<T> {
|
|
62
|
+
private _value;
|
|
63
|
+
private listeners;
|
|
64
|
+
constructor(initialValue: T);
|
|
65
|
+
next(value: T): void;
|
|
66
|
+
getValue(): T;
|
|
67
|
+
subscribe(fn: (v: T) => void): () => void;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
type SelectorStrategy = 'data-cy' | 'data-testid' | 'aria-label' | 'id';
|
|
71
|
+
declare class RecordingService {
|
|
72
|
+
private readonly commands$;
|
|
73
|
+
private readonly interceptors$;
|
|
74
|
+
private readonly isRecording$;
|
|
75
|
+
private readonly isPaused$;
|
|
76
|
+
private readonly selectorNotFound$;
|
|
77
|
+
private readonly inputDebounceTimers;
|
|
78
|
+
private readonly abort;
|
|
79
|
+
selectorStrategy: SelectorStrategy;
|
|
80
|
+
private readonly origPushState;
|
|
81
|
+
private readonly origReplaceState;
|
|
82
|
+
constructor();
|
|
83
|
+
startRecording(): void;
|
|
84
|
+
stopRecording(): void;
|
|
85
|
+
toggleRecording(): void;
|
|
86
|
+
pauseRecording(): void;
|
|
87
|
+
resumeRecording(): void;
|
|
88
|
+
togglePause(): void;
|
|
89
|
+
addCommand(cmd: string): void;
|
|
90
|
+
/** Appends a command regardless of recording/paused state (e.g. assertions added manually). */
|
|
91
|
+
appendCommand(cmd: string): void;
|
|
92
|
+
removeCommand(index: number): void;
|
|
93
|
+
moveCommand(from: number, to: number): void;
|
|
94
|
+
removeInterceptor(index: number): void;
|
|
95
|
+
registerInterceptor(method: string, url: string, alias: string): void;
|
|
96
|
+
clearCommands(): void;
|
|
97
|
+
clearInterceptors(): void;
|
|
98
|
+
getCommandsSnapshot(): string[];
|
|
99
|
+
getInterceptorsSnapshot(): string[];
|
|
100
|
+
getPausedSnapshot(): boolean;
|
|
101
|
+
onCommandsChange(fn: (cmds: string[]) => void): () => void;
|
|
102
|
+
onInterceptorsChange(fn: (ints: string[]) => void): () => void;
|
|
103
|
+
onRecordingChange(fn: (isRecording: boolean) => void): () => void;
|
|
104
|
+
onPauseChange(fn: (isPaused: boolean) => void): () => void;
|
|
105
|
+
onSelectorNotFound(fn: (target: HTMLElement, action: 'click') => void): () => void;
|
|
106
|
+
destroy(): void;
|
|
107
|
+
private listenToClicks;
|
|
108
|
+
private listenToInput;
|
|
109
|
+
private listenToSelect;
|
|
110
|
+
private listenToRouteChanges;
|
|
111
|
+
private handleClickEvent;
|
|
112
|
+
private handleMatOptionClick;
|
|
113
|
+
private handleInputEvent;
|
|
114
|
+
private handleSelectEvent;
|
|
115
|
+
private addGenericCommand;
|
|
116
|
+
private getReliableSelector;
|
|
117
|
+
private isInteractiveElement;
|
|
118
|
+
private isOwnSelector;
|
|
119
|
+
private isOwnElement;
|
|
120
|
+
private urlToWildcard;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
interface TestRecord {
|
|
124
|
+
id: number;
|
|
125
|
+
name: string;
|
|
126
|
+
createdAt: number;
|
|
127
|
+
tags?: string[];
|
|
128
|
+
}
|
|
129
|
+
interface CommandRecord {
|
|
130
|
+
id: number;
|
|
131
|
+
command: string;
|
|
132
|
+
testId: number;
|
|
133
|
+
createdAt: number;
|
|
134
|
+
}
|
|
135
|
+
interface InterceptorRecord {
|
|
136
|
+
id: number;
|
|
137
|
+
interceptor: string;
|
|
138
|
+
testId: number;
|
|
139
|
+
createdAt: number;
|
|
140
|
+
}
|
|
141
|
+
interface ConfigRecord {
|
|
142
|
+
id: number;
|
|
143
|
+
[key: string]: unknown;
|
|
144
|
+
}
|
|
145
|
+
interface TestWithDetails extends TestRecord {
|
|
146
|
+
commands: string[];
|
|
147
|
+
interceptors: string[];
|
|
148
|
+
}
|
|
149
|
+
interface TestDetail extends TestWithDetails {
|
|
150
|
+
cypressCommands: string[];
|
|
151
|
+
itBlock: string;
|
|
152
|
+
interceptorsBlock: string;
|
|
153
|
+
}
|
|
154
|
+
declare class PersistenceService {
|
|
155
|
+
private readonly dbName;
|
|
156
|
+
private _db;
|
|
157
|
+
constructor(dbName?: string);
|
|
158
|
+
private getDB;
|
|
159
|
+
insertTest(name: string, commands?: string[], interceptors?: string[], tags?: string[]): Promise<number>;
|
|
160
|
+
getAllTests(): Promise<TestWithDetails[]>;
|
|
161
|
+
getTestById(testId: number): Promise<TestDetail | null>;
|
|
162
|
+
deleteTest(id: number): Promise<void>;
|
|
163
|
+
insertCommands(commands: string[], testId: number): Promise<void>;
|
|
164
|
+
getCommandsByTestId(testId: number): Promise<CommandRecord[]>;
|
|
165
|
+
private getCommandStrings;
|
|
166
|
+
private deleteCommandsByTestId;
|
|
167
|
+
insertInterceptors(interceptors: string[], testId: number): Promise<void>;
|
|
168
|
+
getInterceptorsByTestId(testId: number): Promise<InterceptorRecord[]>;
|
|
169
|
+
private getInterceptorStrings;
|
|
170
|
+
deleteInterceptorsByTestId(testId: number): Promise<void>;
|
|
171
|
+
setConfig(config: Record<string, unknown>): Promise<void>;
|
|
172
|
+
setConfigKey(key: string, value: unknown): Promise<void>;
|
|
173
|
+
getConfig(key: string): Promise<Record<string, unknown> | null>;
|
|
174
|
+
getGeneralConfig(): Promise<ConfigRecord | null>;
|
|
175
|
+
clearAllData(): Promise<void>;
|
|
176
|
+
ingestFileData(tests: Record<string, unknown>[], interceptors: Record<string, unknown>[]): Promise<void>;
|
|
177
|
+
requestDirectoryPermissions(): Promise<void>;
|
|
178
|
+
private bulkInsertWithoutId;
|
|
179
|
+
}
|
|
180
|
+
declare const persistenceService: PersistenceService;
|
|
181
|
+
|
|
182
|
+
declare function generateAlias(method: string, url: string): string;
|
|
183
|
+
declare class HttpMonitor {
|
|
184
|
+
private readonly recording;
|
|
185
|
+
private originalFetch;
|
|
186
|
+
private originalXHR;
|
|
187
|
+
constructor(recording: RecordingService);
|
|
188
|
+
install(): void;
|
|
189
|
+
uninstall(): void;
|
|
190
|
+
isExtendedHttpEnabled(): boolean;
|
|
191
|
+
private installFetch;
|
|
192
|
+
private uninstallFetch;
|
|
193
|
+
private installXhr;
|
|
194
|
+
private uninstallXhr;
|
|
195
|
+
private handleFetchInterception;
|
|
196
|
+
private handleXhrInterception;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
declare const SCROLLBAR_STYLES = "\n.swal2-popup::-webkit-scrollbar,\n.swal2-html-container::-webkit-scrollbar,\n.swal2-content::-webkit-scrollbar,\n.swal2-container::-webkit-scrollbar {\n width: 5px;\n height: 5px;\n background: transparent;\n}\n.swal2-popup::-webkit-scrollbar-thumb,\n.swal2-html-container::-webkit-scrollbar-thumb,\n.swal2-content::-webkit-scrollbar-thumb,\n.swal2-container::-webkit-scrollbar-thumb {\n background: #30363d;\n border-radius: 3px;\n}\n.swal2-popup::-webkit-scrollbar-thumb:hover,\n.swal2-html-container::-webkit-scrollbar-thumb:hover,\n.swal2-content::-webkit-scrollbar-thumb:hover {\n background: #484f58;\n}\n.swal2-popup::-webkit-scrollbar-track,\n.swal2-html-container::-webkit-scrollbar-track,\n.swal2-content::-webkit-scrollbar-track,\n.swal2-container::-webkit-scrollbar-track {\n background: transparent;\n}\n.swal2-popup, .swal2-html-container, .swal2-content, .swal2-container {\n scrollbar-width: thin;\n scrollbar-color: #30363d transparent;\n}\n";
|
|
200
|
+
declare const LIB_E2E_CYPRESS_FOR_DUMMYS_SWAL2_STYLES = "\n.swal2-container, .swal2-popup {\n z-index: 99999 !important;\n}\n.swal2-container {\n padding: 0 !important;\n align-items: center !important;\n justify-content: center !important;\n}\n.swal2-popup {\n background: #161b22 !important;\n color: #e6edf3 !important;\n border-radius: 12px !important;\n box-shadow: 0 24px 64px rgba(0,0,0,0.72), 0 0 0 1px #30363d !important;\n border: none !important;\n padding: 0 !important;\n min-width: 400px;\n max-width: 90vw;\n min-height: 200px;\n max-height: 90vh;\n}\n/* Override SweetAlert2 v11's display:grid on .swal2-popup.swal2-modal */\n.swal2-popup.swal2-modal {\n display: flex !important;\n flex-direction: column !important;\n align-items: stretch !important;\n overflow: hidden !important;\n}\n.swal2-header {\n flex-shrink: 0 !important;\n flex-grow: 0 !important;\n overflow: hidden !important;\n}\n.swal2-title {\n color: #e6edf3 !important;\n font-weight: 600 !important;\n font-size: 14px !important;\n background: #161b22;\n padding: 14px 48px 13px 18px !important;\n margin: 0 !important;\n border-bottom: 1px solid #21262d;\n text-align: left !important;\n letter-spacing: 0.1px;\n white-space: nowrap !important;\n overflow: hidden !important;\n text-overflow: ellipsis !important;\n}\n.swal2-close {\n position: absolute !important;\n top: 10px !important;\n right: 12px !important;\n color: #8b949e !important;\n font-size: 1.1rem !important;\n z-index: 1 !important;\n border-radius: 6px !important;\n width: 28px !important;\n height: 28px !important;\n line-height: 28px !important;\n transition: background 0.15s, color 0.15s !important;\n}\n.swal2-close:hover {\n background: #21262d !important;\n color: #e6edf3 !important;\n}\n/* In SweetAlert2 v11, .swal2-html-container is a direct child of .swal2-popup */\n.swal2-html-container {\n flex: 1 !important;\n min-height: 0 !important;\n background: #161b22;\n padding: 0 !important;\n margin: 0 !important;\n width: 100%;\n display: flex !important;\n flex-direction: column !important;\n align-items: stretch;\n box-sizing: border-box;\n overflow: hidden !important;\n}\n/* The single wrapper div we inject inside each modal fills the container */\n.swal2-html-container > div {\n flex: 1 !important;\n min-height: 0 !important;\n display: flex !important;\n flex-direction: column !important;\n overflow: hidden !important;\n}\n.swal2-actions, .swal2-footer {\n flex-shrink: 0 !important;\n flex-grow: 0 !important;\n}\n";
|
|
201
|
+
declare function injectStyles(css: string, id: string): void;
|
|
202
|
+
|
|
203
|
+
declare function makeModalResizable(modal: HTMLElement, options?: {
|
|
204
|
+
minWidth?: number;
|
|
205
|
+
minHeight?: number;
|
|
206
|
+
}): () => void;
|
|
207
|
+
declare function makeSwalDraggable(): void;
|
|
208
|
+
declare function makeSwalDraggableByContentId(contentId: string): void;
|
|
209
|
+
declare function setSwal2DataCyAttribute(dataCy?: string): void;
|
|
210
|
+
|
|
211
|
+
declare function showToast(message: string, isSuccess?: boolean): void;
|
|
212
|
+
|
|
213
|
+
declare class TestPrevisualizerElement extends HTMLElement {
|
|
214
|
+
private shadow;
|
|
215
|
+
private _commands;
|
|
216
|
+
private _interceptors;
|
|
217
|
+
private _showInterceptors;
|
|
218
|
+
editable: boolean;
|
|
219
|
+
translation: TranslationService;
|
|
220
|
+
constructor();
|
|
221
|
+
connectedCallback(): void;
|
|
222
|
+
get commands(): string[];
|
|
223
|
+
set commands(v: string[]);
|
|
224
|
+
get interceptors(): string[];
|
|
225
|
+
set interceptors(v: string[]);
|
|
226
|
+
get showInterceptors(): boolean;
|
|
227
|
+
toggleInterceptors(): void;
|
|
228
|
+
copyToClipboard(): void;
|
|
229
|
+
copyInterceptorsToClipboard(): void;
|
|
230
|
+
private t;
|
|
231
|
+
private dispatchDelete;
|
|
232
|
+
private dispatchMove;
|
|
233
|
+
private dispatchDeleteInterceptor;
|
|
234
|
+
private render;
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
declare class SaveTestElement extends HTMLElement {
|
|
238
|
+
private shadow;
|
|
239
|
+
private _step;
|
|
240
|
+
description: string;
|
|
241
|
+
tags: string[];
|
|
242
|
+
translation: TranslationService;
|
|
243
|
+
constructor();
|
|
244
|
+
connectedCallback(): void;
|
|
245
|
+
get step(): 'ask' | 'desc';
|
|
246
|
+
askSave(): void;
|
|
247
|
+
confirmSave(): void;
|
|
248
|
+
confirmSaveAndExport(): void;
|
|
249
|
+
cancel(): void;
|
|
250
|
+
restartComponent(): void;
|
|
251
|
+
addTag(tag: string): void;
|
|
252
|
+
removeTag(tag: string): void;
|
|
253
|
+
private t;
|
|
254
|
+
private dispatch;
|
|
255
|
+
private render;
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
declare class TestEditorElement extends HTMLElement {
|
|
259
|
+
private shadow;
|
|
260
|
+
persistence: PersistenceService;
|
|
261
|
+
translation: TranslationService;
|
|
262
|
+
tests: TestWithDetails[];
|
|
263
|
+
expandedIndex: number | null;
|
|
264
|
+
interceptorsByTest: Record<number, string[]>;
|
|
265
|
+
activeTag: string | null;
|
|
266
|
+
selectMode: boolean;
|
|
267
|
+
selectedIds: Set<number>;
|
|
268
|
+
describeName: string;
|
|
269
|
+
constructor();
|
|
270
|
+
connectedCallback(): void;
|
|
271
|
+
loadTests(): Promise<void>;
|
|
272
|
+
deleteTest(id: number): Promise<void>;
|
|
273
|
+
toggleExpand(index: number): void;
|
|
274
|
+
hasInterceptors(testId: number): boolean;
|
|
275
|
+
toggleSelectMode(): void;
|
|
276
|
+
toggleSelectTest(id: number): void;
|
|
277
|
+
generateDescribe(): void;
|
|
278
|
+
copyToClipboard(text: string): void;
|
|
279
|
+
get allTags(): string[];
|
|
280
|
+
get visibleTests(): TestWithDetails[];
|
|
281
|
+
private t;
|
|
282
|
+
private render;
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
declare class ConfigurationElement extends HTMLElement {
|
|
286
|
+
private shadow;
|
|
287
|
+
persistence: PersistenceService;
|
|
288
|
+
translation: TranslationService;
|
|
289
|
+
selectedLanguage: string;
|
|
290
|
+
advancedHttpConfig: boolean;
|
|
291
|
+
selectorStrategy: SelectorStrategy;
|
|
292
|
+
smartSelectorEnabled: boolean;
|
|
293
|
+
private filesystemGranted;
|
|
294
|
+
private cypressFolderName;
|
|
295
|
+
constructor();
|
|
296
|
+
connectedCallback(): void;
|
|
297
|
+
private t;
|
|
298
|
+
private loadConfig;
|
|
299
|
+
onLanguageChange(lang: string): Promise<void>;
|
|
300
|
+
onAdvancedHttpConfigChange(checked: boolean): void;
|
|
301
|
+
onSmartSelectorChange(enabled: boolean): Promise<void>;
|
|
302
|
+
onSelectorStrategyChange(strategy: SelectorStrategy): Promise<void>;
|
|
303
|
+
changeFolder(): Promise<void>;
|
|
304
|
+
revokeAccess(): Promise<void>;
|
|
305
|
+
exportAllData(): Promise<void>;
|
|
306
|
+
importAllData(file: File): Promise<void>;
|
|
307
|
+
private render;
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
declare class AdvancedTestEditorElement extends HTMLElement {
|
|
311
|
+
private shadow;
|
|
312
|
+
private readonly transformationService;
|
|
313
|
+
persistence: PersistenceService;
|
|
314
|
+
translation: TranslationService;
|
|
315
|
+
testId?: number;
|
|
316
|
+
e2eTree: Array<DirectoryNode | FileNode>;
|
|
317
|
+
selectedFile: unknown;
|
|
318
|
+
saveButtonEnabled: boolean;
|
|
319
|
+
selectedFileHandle: FileSystemFileHandle | null;
|
|
320
|
+
selectedFileContent: string | null;
|
|
321
|
+
testItBlock: string;
|
|
322
|
+
interceptorsBlock: string;
|
|
323
|
+
isPreviewMode: boolean;
|
|
324
|
+
previewFileName: string | null;
|
|
325
|
+
previewFileContent: string | null;
|
|
326
|
+
private hasPermission;
|
|
327
|
+
private needsReauth;
|
|
328
|
+
private _dirHandle;
|
|
329
|
+
constructor();
|
|
330
|
+
connectedCallback(): void;
|
|
331
|
+
private t;
|
|
332
|
+
private init;
|
|
333
|
+
getFoldersData(): Promise<void>;
|
|
334
|
+
saveCommandsToFile(): Promise<void>;
|
|
335
|
+
onFileClick(file: unknown): Promise<void>;
|
|
336
|
+
markFileAsSelected(file: unknown): void;
|
|
337
|
+
loadCypressCommandsForTest(testId: number): Promise<void>;
|
|
338
|
+
copyToClipboard(text: string): void;
|
|
339
|
+
openEditManually(): void;
|
|
340
|
+
closePreview(): void;
|
|
341
|
+
private render;
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
declare class FilePreviewElement extends HTMLElement {
|
|
345
|
+
private shadow;
|
|
346
|
+
private textarea;
|
|
347
|
+
fileName: string | null;
|
|
348
|
+
closeLabel: string;
|
|
349
|
+
translation: TranslationService;
|
|
350
|
+
itBlock: string;
|
|
351
|
+
interceptorsBlock: string;
|
|
352
|
+
commands: string[];
|
|
353
|
+
interceptors: string[];
|
|
354
|
+
private _fileContent;
|
|
355
|
+
private _originalContent;
|
|
356
|
+
private _showDiff;
|
|
357
|
+
constructor();
|
|
358
|
+
connectedCallback(): void;
|
|
359
|
+
private t;
|
|
360
|
+
get fileContent(): string | null;
|
|
361
|
+
set fileContent(v: string | null);
|
|
362
|
+
saveFile(): void;
|
|
363
|
+
onClose(): void;
|
|
364
|
+
launchTest(specPath?: string): Promise<void>;
|
|
365
|
+
copyToClipboard(text: string): void;
|
|
366
|
+
toggleDiff(): void;
|
|
367
|
+
private render;
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
declare class LibE2eRecorderElement extends HTMLElement {
|
|
371
|
+
private shadow;
|
|
372
|
+
private keydownHandler;
|
|
373
|
+
private recordingUnsub?;
|
|
374
|
+
private commandsUnsub?;
|
|
375
|
+
private interceptorsUnsub?;
|
|
376
|
+
private pauseUnsub?;
|
|
377
|
+
private selectorNotFoundUnsub?;
|
|
378
|
+
private controlFirstTimeData;
|
|
379
|
+
private _previsualizerRef;
|
|
380
|
+
private httpMonitor?;
|
|
381
|
+
private smartSelectorEnabled;
|
|
382
|
+
recording: RecordingService;
|
|
383
|
+
persistence: PersistenceService;
|
|
384
|
+
translation: TranslationService;
|
|
385
|
+
isRecording: boolean;
|
|
386
|
+
isPaused: boolean;
|
|
387
|
+
cypressCommands: string[];
|
|
388
|
+
interceptors: string[];
|
|
389
|
+
isCommandsDialogOpen: boolean;
|
|
390
|
+
isSavedTestsDialogOpen: boolean;
|
|
391
|
+
isSaveTestDialogOpen: boolean;
|
|
392
|
+
isSettingsDialogOpen: boolean;
|
|
393
|
+
isAdvancedEditorDialogOpen: boolean;
|
|
394
|
+
constructor();
|
|
395
|
+
connectedCallback(): void;
|
|
396
|
+
disconnectedCallback(): void;
|
|
397
|
+
private initHttpConfig;
|
|
398
|
+
private initLanguage;
|
|
399
|
+
private initSubscriptions;
|
|
400
|
+
private showSelectorPicker;
|
|
401
|
+
private initSelectorStrategy;
|
|
402
|
+
toggle(): void;
|
|
403
|
+
togglePause(): void;
|
|
404
|
+
setLanguage(lang?: string): void;
|
|
405
|
+
handleKeyboardEvent(event: KeyboardEvent): void;
|
|
406
|
+
private saveRecordingHistory;
|
|
407
|
+
recoverLastRecording(): void;
|
|
408
|
+
clearRecordingHistory(): void;
|
|
409
|
+
getRecordingHistory(): Array<{
|
|
410
|
+
commands: string[];
|
|
411
|
+
interceptors: string[];
|
|
412
|
+
savedAt: number;
|
|
413
|
+
}>;
|
|
414
|
+
private initFilesystemAccess;
|
|
415
|
+
private showFilesystemSetupDialog;
|
|
416
|
+
showCommandsDialog(): void;
|
|
417
|
+
showSavedTestsDialog(): void;
|
|
418
|
+
showSaveTestDialog(): void;
|
|
419
|
+
showSettingsDialog(): void;
|
|
420
|
+
showAdvancedEditorDialog(testId?: number): void;
|
|
421
|
+
private showFileEditorDialog;
|
|
422
|
+
private onSaveTest;
|
|
423
|
+
private onSaveAndExportTest;
|
|
424
|
+
private toggleModal;
|
|
425
|
+
private resizePopup;
|
|
426
|
+
private render;
|
|
427
|
+
}
|
|
428
|
+
|
|
429
|
+
declare const VERSION = "0.1.0";
|
|
430
|
+
|
|
431
|
+
export { AdvancedTestEditorElement, AdvancedTestTransformationService, ConfigurationElement, type DBSchema, type DBStore, type DBStoreIndex, DB_SCHEMA, DB_STORE_NAMES, type DirectoryNode, type FileNode, FilePreviewElement, HttpMonitor, INPUT_TYPES, type InputType, LIB_E2E_CYPRESS_FOR_DUMMYS_SWAL2_STYLES, type Lang, LibE2eRecorderElement, PersistenceService, RecordingService, SCROLLBAR_STYLES, SUPPORTED_LANGS, SaveTestElement, type SelectorStrategy, Subject, type TestDetail, TestEditorElement, TestPrevisualizerElement, type TestWithDetails, TransformationService, TranslationService, VERSION, advancedTestTransformationService, generateAlias, injectStyles, isLang, makeModalResizable, makeSwalDraggable, makeSwalDraggableByContentId, persistenceService, setSwal2DataCyAttribute, showToast, transformationService, translationService };
|