@umbraco/playwright-testhelpers 2.0.0-beta.4 → 2.0.0-beta.6
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/dist/lib/helpers/ApiHelpers.js.map +1 -1
- package/dist/lib/helpers/ScriptApiHelper.d.ts +10 -7
- package/dist/lib/helpers/ScriptApiHelper.js +107 -78
- package/dist/lib/helpers/ScriptApiHelper.js.map +1 -1
- package/dist/lib/helpers/TemplateApiHelper.d.ts +6 -5
- package/dist/lib/helpers/TemplateApiHelper.js +69 -51
- package/dist/lib/helpers/TemplateApiHelper.js.map +1 -1
- package/dist/lib/helpers/UiHelpers.d.ts +4 -1
- package/dist/lib/helpers/UiHelpers.js +17 -2
- package/dist/lib/helpers/UiHelpers.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +4 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ApiHelpers.js","sourceRoot":"","sources":["../../../lib/helpers/ApiHelpers.ts"],"names":[],"mappings":";;;AACA,yDAAmD;AACnD,iDAA4C;AAC5C,qEAAgE;AAChE,2DAAuD;AACvD,+DAA0D;AAC1D,iDAAqD;AACrD,6DAAwD;AACxD,2DAAsD;AACtD,+CAA0C;AAC1C,2DAAsD;AACtD,mDAA8C;AAC9C,qEAAgE;AAChE,2DAAsD;AACtD,yDAAoD;AACpD,uDAAkD;AAClD,iEAA4D;AAC5D,+DAA0D;AAC1D,yBAAyB;AACzB,6DAAwD;AAExD,MAAa,UAAU;
|
|
1
|
+
{"version":3,"file":"ApiHelpers.js","sourceRoot":"","sources":["../../../lib/helpers/ApiHelpers.ts"],"names":[],"mappings":";;;AACA,yDAAmD;AACnD,iDAA4C;AAC5C,qEAAgE;AAChE,2DAAuD;AACvD,+DAA0D;AAC1D,iDAAqD;AACrD,6DAAwD;AACxD,2DAAsD;AACtD,+CAA0C;AAC1C,2DAAsD;AACtD,mDAA8C;AAC9C,qEAAgE;AACh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ChC,MAAM,OAAO,GAAG;YACZ,OAAO,EAAE,MAAM,IAAI,CAAC,UAAU,EAAE;YAChC,IAAI,EAAE,IAAI;YACV,iBAAiB,EAAE,IAAI;SAC1B,CAAA;QACD,OAAO,MAAM,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,GAAG,EAAE,OAAO,CAAC,CAAC;IACrD,CAAC;IAED,KAAK,CAAC,iBAAiB,CAAC,GAAW,EAAE,EAAE,EAAE,IAAY,EAAE,QAAgB,EAAE,QAAQ;QAC7E,MAAM,OAAO,GAAG;YACZ,OAAO,EAAE,MAAM,IAAI,CAAC,UAAU,EAAE;YAChC,SAAS,EAAE;gBACP,EAAE,EAAE,EAAE;gBACN,IAAI,EAAE;oBACF,IAAI,EAAE,IAAI;oBACV,QAAQ,EAAE,QAAQ;oBAClB,MAAM,EAAE,EAAE,CAAC,YAAY,CAAC,QAAQ,CAAC;iBACpC;aACJ;YACD,iBAAiB,EAAE,IAAI;SAC1B,CAAA;QACD,OAAO,MAAM,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,EAAE,OAAO,CAAC,CAAC;IACtD,CAAC;CACJ;AA1HD,gCA0HC","sourcesContent":["import {Page} from \"@playwright/test\"\nimport {umbracoConfig} from \"../../umbraco.config\";\nimport {ReportHelper} from \"./ReportHelper\";\nimport {TelemetryDataApiHelper} from \"./TelemetryDataApiHelper\";\nimport {LanguagesApiHelper} from \"./LanguageApiHelper\";\nimport {DictionaryApiHelper} from \"./DictionaryApiHelper\";\nimport {RelationTypeApiHelper} from \"./RelationType\";\nimport {UserGroupApiHelper} from \"./UserGroupApiHelper\";\nimport {TemplateApiHelper} from \"./TemplateApiHelper\";\nimport {AliasHelper} from \"./AliasHelper\";\nimport {DataTypeApiHelper} from \"./DataTypeApiHelper\";\nimport {UserApiHelper} from \"./UserApiHelper\";\nimport {TemporaryFileApiHelper} from \"./TemporaryFileApiHelper\";\nimport {DocumentApiHelper} from \"./DocumentApiHelper\";\nimport {PackageApiHelper} from \"./PackageApiHelper\";\nimport {ScriptApiHelper} from \"./ScriptApiHelper\";\nimport {PartialViewApiHelper} from \"./PartialViewApiHelper\";\nimport {StylesheetApiHelper} from \"./StylesheetApiHelper\";\nimport * as fs from \"fs\";\nimport {LogViewerApiHelper} from \"./LogViewerApiHelper\";\n\nexport class ApiHelpers {\n baseUrl: string = umbracoConfig.environment.baseUrl;\n page: Page;\n alias: AliasHelper;\n report: ReportHelper;\n telemetry: TelemetryDataApiHelper;\n language: LanguagesApiHelper;\n dictionary: DictionaryApiHelper;\n relationType: RelationTypeApiHelper;\n userGroup: UserGroupApiHelper;\n template: TemplateApiHelper;\n dataType: DataTypeApiHelper;\n user: UserApiHelper;\n temporaryFile: TemporaryFileApiHelper;\n document: DocumentApiHelper;\n package: PackageApiHelper;\n script: ScriptApiHelper;\n partialView: PartialViewApiHelper;\n stylesheet: StylesheetApiHelper;\n logViewer: LogViewerApiHelper;\n\n constructor(page: Page) {\n this.page = page;\n this.alias = new AliasHelper();\n this.report = new ReportHelper(this);\n this.telemetry = new TelemetryDataApiHelper(this);\n this.language = new LanguagesApiHelper(this);\n this.dictionary = new DictionaryApiHelper(this);\n this.relationType = new RelationTypeApiHelper(this);\n this.userGroup = new UserGroupApiHelper(this);\n this.template = new TemplateApiHelper(this);\n this.dataType = new DataTypeApiHelper(this);\n this.user = new UserApiHelper(this);\n this.temporaryFile = new TemporaryFileApiHelper(this);\n this.document = new DocumentApiHelper(this);\n this.package = new PackageApiHelper(this);\n this.script = new ScriptApiHelper(this);\n this.partialView = new PartialViewApiHelper(this);\n this.stylesheet = new StylesheetApiHelper(this);\n this.logViewer = new LogViewerApiHelper(this);\n }\n\n async getBearerToken() {\n let someStorage = await this.page.context().storageState();\n let someObject = JSON.parse(someStorage.origins[0].localStorage[0].value);\n return 'Bearer ' + someObject.access_token;\n }\n\n async getCookie() {\n let someStorage = await this.page.context().storageState();\n let cookieString = \"\";\n for (let cookie of someStorage.cookies) {\n cookieString += cookie.name + '=' + cookie.value + ';';\n }\n return cookieString;\n }\n\n async getHeaders() {\n return {\n 'Authorization': await this.getBearerToken(),\n 'Cookie': await this.getCookie(),\n }\n }\n\n async get(url: string, params?: { [key: string]: string | number | boolean; }) {\n const options = {\n headers: await this.getHeaders(),\n params: params,\n ignoreHTTPSErrors: true\n }\n return this.page.request.get(url, options);\n }\n\n async saveCodeFile(codeFile) {\n if (codeFile == null) {\n return;\n }\n return await this.post(umbracoConfig.environment.baseUrl + '/umbraco/backoffice/UmbracoApi/CodeFile/PostSave', codeFile);\n }\n\n async post(url: string, data?: object) {\n const options = {\n headers: await this.getHeaders(),\n data: data,\n ignoreHTTPSErrors: true\n }\n return await this.page.request.post(url, options);\n }\n\n async delete(url: string, data?: object) {\n const options = {\n headers: await this.getHeaders(),\n data: data,\n ignoreHTTPSErrors: true\n }\n return await this.page.request.delete(url, options);\n }\n\n async put(url: string, data?: object) {\n const options = {\n headers: await this.getHeaders(),\n data: data,\n ignoreHTTPSErrors: true\n }\n return await this.page.request.put(url, options);\n }\n\n async postMultiPartForm(url: string, id, name: string, mimeType: string, filePath) {\n const options = {\n headers: await this.getHeaders(),\n multipart: {\n Id: id,\n File: {\n name: name,\n mimeType: mimeType,\n buffer: fs.readFileSync(filePath)\n }\n },\n ignoreHTTPSErrors: true\n }\n return await this.page.request.post(url, options);\n }\n}"]}
|
|
@@ -2,18 +2,21 @@ import { ApiHelpers } from "./ApiHelpers";
|
|
|
2
2
|
export declare class ScriptApiHelper {
|
|
3
3
|
api: ApiHelpers;
|
|
4
4
|
constructor(api: ApiHelpers);
|
|
5
|
-
ensureNameNotExistsAtRoot(name: string): Promise<void | import("playwright-core").APIResponse | null>;
|
|
6
|
-
nameExistsAtRoot(name: string): Promise<boolean>;
|
|
7
|
-
exists(path: string): Promise<boolean>;
|
|
8
5
|
get(path: string): Promise<any>;
|
|
9
|
-
|
|
6
|
+
doesExist(path: string): Promise<boolean>;
|
|
10
7
|
create(name: string, content: string, parentPath?: string): Promise<string | undefined>;
|
|
11
8
|
update(script: any): Promise<import("playwright-core").APIResponse>;
|
|
12
9
|
delete(path: string): Promise<import("playwright-core").APIResponse>;
|
|
10
|
+
getChildren(path: string): Promise<any>;
|
|
11
|
+
getItems(paths: string[]): Promise<any>;
|
|
12
|
+
getAllAtRoot(): Promise<import("playwright-core").APIResponse>;
|
|
13
|
+
doesNameExist(name: string): Promise<any>;
|
|
14
|
+
getByName(name: string): Promise<any>;
|
|
15
|
+
private recurseDeleteChildren;
|
|
16
|
+
private recurseChildren;
|
|
17
|
+
ensureNameNotExists(name: string): Promise<import("playwright-core").APIResponse | null>;
|
|
13
18
|
getFolder(path: string): Promise<any>;
|
|
14
|
-
|
|
15
|
-
getFolderChildren(path: string): Promise<any>;
|
|
19
|
+
doesFolderExist(path: string): Promise<boolean>;
|
|
16
20
|
createFolder(name: string, parentPath?: string): Promise<any>;
|
|
17
21
|
deleteFolder(path: string): Promise<import("playwright-core").APIResponse>;
|
|
18
|
-
recurseFolderChildren(path: string): Promise<void>;
|
|
19
22
|
}
|
|
@@ -6,61 +6,18 @@ class ScriptApiHelper {
|
|
|
6
6
|
constructor(api) {
|
|
7
7
|
this.api = api;
|
|
8
8
|
}
|
|
9
|
-
async
|
|
10
|
-
const response = await this.api.get(this.api.baseUrl + '/umbraco/management/api/v1/
|
|
9
|
+
async get(path) {
|
|
10
|
+
const response = await this.api.get(this.api.baseUrl + '/umbraco/management/api/v1/script?path=' + path);
|
|
11
11
|
const json = await response.json();
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
if (sb.isFolder == false) {
|
|
15
|
-
return await this.api.delete(this.api.baseUrl + '/umbraco/management/api/v1/script?path=' + sb.path);
|
|
16
|
-
}
|
|
17
|
-
else {
|
|
18
|
-
if (sb.hasChildren == true) {
|
|
19
|
-
return await this.recurseFolderChildren(sb.path);
|
|
20
|
-
}
|
|
21
|
-
else {
|
|
22
|
-
return await this.api.delete(this.api.baseUrl + '/umbraco/management/api/v1/script/folder?path=' + sb.path);
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
}
|
|
12
|
+
if (json !== null) {
|
|
13
|
+
return json;
|
|
26
14
|
}
|
|
27
15
|
return null;
|
|
28
16
|
}
|
|
29
|
-
async
|
|
30
|
-
const response = await this.api.get(this.api.baseUrl + '/umbraco/management/api/v1/tree/script/root?skip=0&take=10000');
|
|
31
|
-
const json = await response.json();
|
|
32
|
-
for (const sb of json.items) {
|
|
33
|
-
if (sb.name === name) {
|
|
34
|
-
return true;
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
return false;
|
|
38
|
-
}
|
|
39
|
-
async exists(path) {
|
|
17
|
+
async doesExist(path) {
|
|
40
18
|
const response = await this.api.get(this.api.baseUrl + '/umbraco/management/api/v1/script?path=' + path);
|
|
41
19
|
return response.status() === 200;
|
|
42
20
|
}
|
|
43
|
-
async get(path) {
|
|
44
|
-
const response = await this.api.get(this.api.baseUrl + '/umbraco/management/api/v1/script?path=' + path);
|
|
45
|
-
return await response.json();
|
|
46
|
-
}
|
|
47
|
-
async getByNameAtRoot(name) {
|
|
48
|
-
const response = await this.api.get(this.api.baseUrl + '/umbraco/management/api/v1/tree/script/root?skip=0&take=10000');
|
|
49
|
-
const json = await response.json();
|
|
50
|
-
for (const sb of json.items) {
|
|
51
|
-
if (sb.name === name) {
|
|
52
|
-
if (sb.isFolder === false) {
|
|
53
|
-
const script = await this.api.get(this.api.baseUrl + '/umbraco/management/api/v1/script?path=' + sb.path);
|
|
54
|
-
return await script.json();
|
|
55
|
-
}
|
|
56
|
-
else {
|
|
57
|
-
const scriptFolder = await this.api.get(this.api.baseUrl + '/umbraco/management/api/v1/script/folder?path=' + sb.path);
|
|
58
|
-
return await scriptFolder.json();
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
return null;
|
|
63
|
-
}
|
|
64
21
|
async create(name, content, parentPath = "") {
|
|
65
22
|
const scriptData = {
|
|
66
23
|
"name": name,
|
|
@@ -82,56 +39,128 @@ class ScriptApiHelper {
|
|
|
82
39
|
async delete(path) {
|
|
83
40
|
return await this.api.delete(this.api.baseUrl + '/umbraco/management/api/v1/script?path=' + path);
|
|
84
41
|
}
|
|
42
|
+
async getChildren(path) {
|
|
43
|
+
const response = await this.api.get(`${this.api.baseUrl}/umbraco/management/api/v1/tree/script/children?path=${path}&skip=0&take=10000`);
|
|
44
|
+
const items = await response.json();
|
|
45
|
+
return items.items;
|
|
46
|
+
}
|
|
47
|
+
async getItems(paths) {
|
|
48
|
+
let pathArray = 'path=' + paths[0];
|
|
49
|
+
let i;
|
|
50
|
+
for (i = 1; i < paths.length; ++i) {
|
|
51
|
+
pathArray += '&path=' + paths[i];
|
|
52
|
+
}
|
|
53
|
+
const response = await this.api.get(this.api.baseUrl + '/umbraco/management/api/v1/tree/script/item?' + pathArray);
|
|
54
|
+
const json = await response.json();
|
|
55
|
+
if (json !== null) {
|
|
56
|
+
return json;
|
|
57
|
+
}
|
|
58
|
+
return null;
|
|
59
|
+
}
|
|
60
|
+
async getAllAtRoot() {
|
|
61
|
+
return await this.api.get(this.api.baseUrl + '/umbraco/management/api/v1/tree/script/root?skip=0&take=10000');
|
|
62
|
+
}
|
|
63
|
+
async doesNameExist(name) {
|
|
64
|
+
return await this.getByName(name);
|
|
65
|
+
}
|
|
66
|
+
async getByName(name) {
|
|
67
|
+
const rootScripts = await this.getAllAtRoot();
|
|
68
|
+
const jsonScripts = await rootScripts.json();
|
|
69
|
+
for (const script of jsonScripts.items) {
|
|
70
|
+
if (script.name === name) {
|
|
71
|
+
if (script.isFolder) {
|
|
72
|
+
return this.getFolder(script.path);
|
|
73
|
+
}
|
|
74
|
+
else {
|
|
75
|
+
return this.get(script.path);
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
else if (script.isFolder && script.hasChildren) {
|
|
79
|
+
const result = await this.recurseChildren(name, script.path, false);
|
|
80
|
+
if (result) {
|
|
81
|
+
return result;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
return false;
|
|
86
|
+
}
|
|
87
|
+
async recurseDeleteChildren(scriptFolder) {
|
|
88
|
+
if (!scriptFolder.hasChildren) {
|
|
89
|
+
return await this.deleteFolder(scriptFolder.path);
|
|
90
|
+
}
|
|
91
|
+
const items = await this.getChildren(scriptFolder.path);
|
|
92
|
+
for (const child of items) {
|
|
93
|
+
if (child.hasChildren) {
|
|
94
|
+
await this.recurseDeleteChildren(child);
|
|
95
|
+
}
|
|
96
|
+
else if (child.isFolder) {
|
|
97
|
+
await this.deleteFolder(child.path);
|
|
98
|
+
}
|
|
99
|
+
else {
|
|
100
|
+
await this.delete(child.path);
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
return await this.deleteFolder(scriptFolder.path);
|
|
104
|
+
}
|
|
105
|
+
async recurseChildren(name, path, toDelete) {
|
|
106
|
+
const items = await this.getChildren(path);
|
|
107
|
+
for (const child of items) {
|
|
108
|
+
if (child.name === name) {
|
|
109
|
+
if (!toDelete) {
|
|
110
|
+
if (child.isFolder) {
|
|
111
|
+
return await this.getFolder(child.path);
|
|
112
|
+
}
|
|
113
|
+
return await this.get(child.path);
|
|
114
|
+
}
|
|
115
|
+
if (child.isFolder) {
|
|
116
|
+
return await this.recurseDeleteChildren(child);
|
|
117
|
+
}
|
|
118
|
+
return await this.delete(child.path);
|
|
119
|
+
}
|
|
120
|
+
else if (child.hasChildren) {
|
|
121
|
+
return await this.recurseChildren(name, child.path, toDelete);
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
return false;
|
|
125
|
+
}
|
|
126
|
+
async ensureNameNotExists(name) {
|
|
127
|
+
const rootScripts = await this.getAllAtRoot();
|
|
128
|
+
const jsonScripts = await rootScripts.json();
|
|
129
|
+
for (const script of jsonScripts.items) {
|
|
130
|
+
if (script.name === name) {
|
|
131
|
+
if (script.isFolder) {
|
|
132
|
+
return await this.recurseDeleteChildren(script);
|
|
133
|
+
}
|
|
134
|
+
return await this.delete(script.path);
|
|
135
|
+
}
|
|
136
|
+
else if (script.hasChildren) {
|
|
137
|
+
await this.recurseChildren(name, script.path, true);
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
return null;
|
|
141
|
+
}
|
|
85
142
|
// Folder
|
|
86
143
|
async getFolder(path) {
|
|
87
144
|
const response = await this.api.get(this.api.baseUrl + '/umbraco/management/api/v1/script/folder?path=' + path);
|
|
88
145
|
return await response.json();
|
|
89
146
|
}
|
|
90
|
-
async
|
|
147
|
+
async doesFolderExist(path) {
|
|
91
148
|
const response = await this.api.get(this.api.baseUrl + '/umbraco/management/api/v1/script/folder?path=' + path);
|
|
92
149
|
return response.status() === 200;
|
|
93
150
|
}
|
|
94
|
-
async getFolderChildren(path) {
|
|
95
|
-
const response = await this.api.get(this.api.baseUrl + '/umbraco/management/api/v1/tree/script/children?path=' + path + '&skip=0&take=10000');
|
|
96
|
-
const json = await response.json();
|
|
97
|
-
if (json !== null) {
|
|
98
|
-
return json;
|
|
99
|
-
}
|
|
100
|
-
return null;
|
|
101
|
-
}
|
|
102
151
|
async createFolder(name, parentPath = "") {
|
|
103
152
|
const scriptFolderData = {
|
|
104
153
|
"name": name,
|
|
105
154
|
"parentPath": parentPath
|
|
106
155
|
};
|
|
107
156
|
const response = await this.api.post(this.api.baseUrl + '/umbraco/management/api/v1/script/folder', scriptFolderData);
|
|
108
|
-
// Returns the
|
|
157
|
+
// Returns the path of the created scriptFolder
|
|
109
158
|
const json = await response.json();
|
|
110
159
|
return json.path;
|
|
111
160
|
}
|
|
112
161
|
async deleteFolder(path) {
|
|
113
162
|
return await this.api.delete(this.api.baseUrl + '/umbraco/management/api/v1/script/folder?path=' + path);
|
|
114
163
|
}
|
|
115
|
-
async recurseFolderChildren(path) {
|
|
116
|
-
const parentScript = await this.api.get(this.api.baseUrl + '/umbraco/management/api/v1/tree/script/children?path=' + path + '&skip=0&take=10000');
|
|
117
|
-
const itemsJson = await parentScript.json();
|
|
118
|
-
for (const child of itemsJson.items) {
|
|
119
|
-
if (child.path !== null) {
|
|
120
|
-
if (child.isFolder == true) {
|
|
121
|
-
if (child.hasChildren == true) {
|
|
122
|
-
await this.recurseFolderChildren(child.path);
|
|
123
|
-
}
|
|
124
|
-
else {
|
|
125
|
-
await this.api.delete(this.api.baseUrl + '/umbraco/management/api/v1/script/folder?path=' + child.path);
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
else {
|
|
129
|
-
await this.api.delete(this.api.baseUrl + '/umbraco/management/api/v1/script/?path=' + child.path);
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
await this.api.delete(this.api.baseUrl + '/umbraco/management/api/v1/script/folder?path=' + path);
|
|
134
|
-
}
|
|
135
164
|
}
|
|
136
165
|
exports.ScriptApiHelper = ScriptApiHelper;
|
|
137
166
|
//# sourceMappingURL=ScriptApiHelper.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ScriptApiHelper.js","sourceRoot":"","sources":["../../../lib/helpers/ScriptApiHelper.ts"],"names":[],"mappings":";;;AAEA,MAAa,eAAe;IAC1B,GAAG,CAAY;IAEf,YAAY,GAAe;QACzB,IAAI,CAAC,GAAG,GAAG,GAAG,CAAC;IACjB,CAAC;IAED,KAAK,CAAC,yBAAyB,CAAC,IAAY;QAC1C,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,OAAO,GAAG,+DAA+D,CAAC,CAAC;QACxH,MAAM,IAAI,GAAG,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC;QAEnC,KAAK,MAAM,EAAE,IAAI,IAAI,CAAC,KAAK,EAAE;YAC3B,IAAI,EAAE,CAAC,IAAI,KAAK,IAAI,EAAE;gBACpB,IAAI,EAAE,CAAC,QAAQ,IAAI,KAAK,EAAE;oBACxB,OAAO,MAAM,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,IAAI,CAA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IAAI,CAAC,qBAAqB,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;qBAC9C;yBAAM;wBACL,MAAM,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,OAAO,GAAG,gDAAgD,GAAG,KAAK,CAAC,IAAI,CAAC,CAAC;qBACzG;iBACF;qBAAM;oBACL,MAAM,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,OAAO,GAAG,0CAA0C,GAAG,KAAK,CAAC,IAAI,CAAC,CAAC;iBACnG;aACF;SACF;QACD,MAAM,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,OAAO,GAAG,gDAAgD,GAAG,IAAI,CAAC,CAAC;IACpG,CAAC;CACF;AAnJD,0CAmJC","sourcesContent":["import {ApiHelpers} from \"./ApiHelpers\";\n\nexport class ScriptApiHelper {\n api: ApiHelpers\n\n constructor(api: ApiHelpers) {\n this.api = api;\n }\n\n async ensureNameNotExistsAtRoot(name: string) {\n const response = await this.api.get(this.api.baseUrl + '/umbraco/management/api/v1/tree/script/root?skip=0&take=10000');\n const json = await response.json();\n\n for (const sb of json.items) {\n if (sb.name === name) {\n if (sb.isFolder == false) {\n return await this.api.delete(this.api.baseUrl + '/umbraco/management/api/v1/script?path=' + sb.path);\n } else {\n if (sb.hasChildren == true) {\n return await this.recurseFolderChildren(sb.path);\n } else {\n return await this.api.delete(this.api.baseUrl + '/umbraco/management/api/v1/script/folder?path=' + sb.path);\n }\n }\n }\n }\n return null;\n }\n\n async nameExistsAtRoot(name: string) {\n const response = await this.api.get(this.api.baseUrl + '/umbraco/management/api/v1/tree/script/root?skip=0&take=10000');\n const json = await response.json();\n\n for (const sb of json.items) {\n if (sb.name === name) {\n return true;\n }\n }\n return false;\n }\n\n async exists(path: string) {\n const response = await this.api.get(this.api.baseUrl + '/umbraco/management/api/v1/script?path=' + path);\n return response.status() === 200;\n }\n\n async get(path: string) {\n const response = await this.api.get(this.api.baseUrl + '/umbraco/management/api/v1/script?path=' + path);\n return await response.json();\n }\n\n async getByNameAtRoot(name: string) {\n const response = await this.api.get(this.api.baseUrl + '/umbraco/management/api/v1/tree/script/root?skip=0&take=10000');\n const json = await response.json();\n\n for (const sb of json.items) {\n if (sb.name === name) {\n if (sb.isFolder === false) {\n const script = await this.api.get(this.api.baseUrl + '/umbraco/management/api/v1/script?path=' + sb.path);\n return await script.json();\n } else {\n const scriptFolder = await this.api.get(this.api.baseUrl + '/umbraco/management/api/v1/script/folder?path=' + sb.path);\n return await scriptFolder.json();\n }\n }\n }\n return null;\n }\n\n async create(name: string, content: string, parentPath: string = \"\") {\n const scriptData = {\n \"name\": name,\n \"content\": content,\n \"parentPath\": parentPath\n };\n const response = await this.api.post(this.api.baseUrl + '/umbraco/management/api/v1/script', scriptData);\n // Returns the path of the created Script\n return response.headers().location.split(\"=\").pop();\n }\n\n async update(script) {\n const scriptData = {\n \"name\": script.name,\n \"content\": script.content,\n \"existingPath\": script.path\n };\n return await this.api.put(this.api.baseUrl + '/umbraco/management/api/v1/script', scriptData);\n }\n\n async delete(path: string) {\n return await this.api.delete(this.api.baseUrl + '/umbraco/management/api/v1/script?path=' + path);\n }\n\n // Folder\n async getFolder(path: string) {\n const response = await this.api.get(this.api.baseUrl + '/umbraco/management/api/v1/script/folder?path=' + path);\n return await response.json();\n }\n\n async folderExists(path: string) {\n const response = await this.api.get(this.api.baseUrl + '/umbraco/management/api/v1/script/folder?path=' + path);\n return response.status() === 200;\n }\n\n async getFolderChildren(path: string) {\n const response = await this.api.get(this.api.baseUrl + '/umbraco/management/api/v1/tree/script/children?path=' + path + '&skip=0&take=10000');\n const json = await response.json();\n\n if (json !== null) {\n return json;\n }\n return null;\n }\n\n async createFolder(name: string, parentPath = \"\") {\n const scriptFolderData =\n {\n \"name\": name,\n \"parentPath\": parentPath\n };\n const response = await this.api.post(this.api.baseUrl + '/umbraco/management/api/v1/script/folder', scriptFolderData);\n // Returns the id of the created scriptFolder\n const json = await response.json();\n return json.path;\n }\n\n async deleteFolder(path: string) {\n return await this.api.delete(this.api.baseUrl + '/umbraco/management/api/v1/script/folder?path=' + path);\n }\n\n async recurseFolderChildren(path: string) {\n const parentScript = await this.api.get(this.api.baseUrl + '/umbraco/management/api/v1/tree/script/children?path=' + path + '&skip=0&take=10000');\n const itemsJson = await parentScript.json();\n\n for (const child of itemsJson.items) {\n if (child.path !== null) {\n if (child.isFolder == true) {\n if (child.hasChildren == true) {\n await this.recurseFolderChildren(child.path);\n } else {\n await this.api.delete(this.api.baseUrl + '/umbraco/management/api/v1/script/folder?path=' + child.path);\n }\n } else {\n await this.api.delete(this.api.baseUrl + '/umbraco/management/api/v1/script/?path=' + child.path);\n }\n }\n }\n await this.api.delete(this.api.baseUrl + '/umbraco/management/api/v1/script/folder?path=' + path);\n }\n}"]}
|
|
1
|
+
{"version":3,"file":"ScriptApiHelper.js","sourceRoot":"","sources":["../../../lib/helpers/ScriptApiHelper.ts"],"names":[],"mappings":";;;AAEA,MAAa,eAAe;IACxB,GAAG,CAAY;IAEf,YAAY,GAAe;QACvB,IAAI,CAAC,GAAG,GAAG,GAAG,CAAC;IACnB,CAAC;IAED,KAAK,CAAC,GAAG,CAAC,IAAY;QAClB,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,OAAO,GAAG,yCAAyC,GAAG,IAAI,CAAC,CAAC;QACzG,MAAM,IAAI,GAAG,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC;QACnC,IAAI,IAAI,KAAK,IAAI,EAAE;YACf,OAAO,IAAI,CAAC;SACf;QACD,OAAO,IAAI,CAAC;IAChB,CAAC;IAED,KAAK,CAAC,SAAS,CAAC,IAAY;QACxB,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,OAAO,GAAG,yCAAyC,GAAG,IAAI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this.api = api;\n }\n\n async get(path: string) {\n const response = await this.api.get(this.api.baseUrl + '/umbraco/management/api/v1/script?path=' + path);\n const json = await response.json();\n if (json !== null) {\n return json;\n }\n return null;\n }\n\n async doesExist(path: string) {\n const response = await this.api.get(this.api.baseUrl + '/umbraco/management/api/v1/script?path=' + path);\n return response.status() === 200;\n }\n\n async create(name: string, content: string, parentPath: string = \"\") {\n const scriptData = {\n \"name\": name,\n \"content\": content,\n \"parentPath\": parentPath\n };\n const response = await this.api.post(this.api.baseUrl + '/umbraco/management/api/v1/script', scriptData);\n // Returns the path of the created Script\n return response.headers().location.split(\"=\").pop();\n }\n\n async update(script) {\n const scriptData = {\n \"name\": script.name,\n \"content\": script.content,\n \"existingPath\": script.path\n };\n return await this.api.put(this.api.baseUrl + '/umbraco/management/api/v1/script', scriptData);\n }\n\n async delete(path: string) {\n return await this.api.delete(this.api.baseUrl + '/umbraco/management/api/v1/script?path=' + path);\n }\n\n async getChildren(path: string) {\n const response = await this.api.get(`${this.api.baseUrl}/umbraco/management/api/v1/tree/script/children?path=${path}&skip=0&take=10000`);\n const items = await response.json();\n return items.items;\n }\n\n async getItems(paths: string[]) {\n let pathArray = 'path=' + paths[0];\n let i: number;\n\n for (i = 1; i < paths.length; ++i) {\n pathArray += '&path=' + paths[i];\n }\n\n const response = await this.api.get(this.api.baseUrl + '/umbraco/management/api/v1/tree/script/item?' + pathArray);\n const json = await response.json();\n if (json !== null) {\n return json;\n }\n return null;\n }\n\n async getAllAtRoot() {\n return await this.api.get(this.api.baseUrl + '/umbraco/management/api/v1/tree/script/root?skip=0&take=10000');\n }\n\n async doesNameExist(name: string) {\n return await this.getByName(name);\n }\n\n async getByName(name: string) {\n const rootScripts = await this.getAllAtRoot();\n const jsonScripts = await rootScripts.json();\n\n for (const script of jsonScripts.items) {\n if (script.name === name) {\n if (script.isFolder) {\n return this.getFolder(script.path);\n } else {\n return this.get(script.path);\n }\n } else if (script.isFolder && script.hasChildren) {\n const result = await this.recurseChildren(name, script.path, false);\n if (result) {\n return result;\n }\n }\n }\n return false;\n }\n\n private async recurseDeleteChildren(scriptFolder) {\n if (!scriptFolder.hasChildren) {\n return await this.deleteFolder(scriptFolder.path);\n }\n const items = await this.getChildren(scriptFolder.path);\n\n for (const child of items) {\n if (child.hasChildren) {\n await this.recurseDeleteChildren(child);\n } else if (child.isFolder) {\n await this.deleteFolder(child.path);\n } else {\n await this.delete(child.path);\n }\n }\n return await this.deleteFolder(scriptFolder.path);\n }\n\n private async recurseChildren(name: string, path: string, toDelete: boolean) {\n const items = await this.getChildren(path);\n\n for (const child of items) {\n if (child.name === name) {\n if (!toDelete) {\n if (child.isFolder) {\n return await this.getFolder(child.path);\n }\n return await this.get(child.path);\n }\n if (child.isFolder) {\n return await this.recurseDeleteChildren(child);\n }\n return await this.delete(child.path);\n\n } else if (child.hasChildren) {\n return await this.recurseChildren(name, child.path, toDelete);\n }\n }\n return false;\n }\n\n async ensureNameNotExists(name: string) {\n const rootScripts = await this.getAllAtRoot();\n const jsonScripts = await rootScripts.json();\n\n for (const script of jsonScripts.items) {\n if (script.name === name) {\n if (script.isFolder) {\n return await this.recurseDeleteChildren(script);\n }\n return await this.delete(script.path);\n } else if (script.hasChildren) {\n await this.recurseChildren(name, script.path, true);\n\n }\n }\n return null;\n }\n\n // Folder\n async getFolder(path: string) {\n const response = await this.api.get(this.api.baseUrl + '/umbraco/management/api/v1/script/folder?path=' + path);\n return await response.json();\n }\n\n async doesFolderExist(path: string) {\n const response = await this.api.get(this.api.baseUrl + '/umbraco/management/api/v1/script/folder?path=' + path);\n return response.status() === 200;\n }\n\n async createFolder(name: string, parentPath = \"\") {\n const scriptFolderData =\n {\n \"name\": name,\n \"parentPath\": parentPath\n };\n const response = await this.api.post(this.api.baseUrl + '/umbraco/management/api/v1/script/folder', scriptFolderData);\n // Returns the path of the created scriptFolder\n const json = await response.json();\n return json.path;\n }\n\n async deleteFolder(path: string) {\n return await this.api.delete(this.api.baseUrl + '/umbraco/management/api/v1/script/folder?path=' + path);\n }\n}"]}
|
|
@@ -2,16 +2,17 @@ import { ApiHelpers } from "./ApiHelpers";
|
|
|
2
2
|
export declare class TemplateApiHelper {
|
|
3
3
|
api: ApiHelpers;
|
|
4
4
|
constructor(api: ApiHelpers);
|
|
5
|
-
ensureNameNotExistsAtRoot(name: string): Promise<import("playwright-core").APIResponse | null>;
|
|
6
5
|
get(id: string): Promise<any>;
|
|
7
|
-
|
|
8
|
-
getByNameAtRoot(name: string): Promise<any>;
|
|
6
|
+
doesExist(id: string): Promise<boolean>;
|
|
9
7
|
create(name: string, alias: string, content: string): Promise<string | undefined>;
|
|
10
8
|
delete(id: string): Promise<import("playwright-core").APIResponse>;
|
|
11
|
-
deleteByNameAtRoot(name: string): Promise<import("playwright-core").APIResponse | null>;
|
|
12
9
|
update(id: string, template: object): Promise<import("playwright-core").APIResponse>;
|
|
13
10
|
getChildren(id: string): Promise<any>;
|
|
14
11
|
getItems(ids: string[]): Promise<any>;
|
|
15
12
|
getAllAtRoot(): Promise<import("playwright-core").APIResponse>;
|
|
16
|
-
|
|
13
|
+
doesNameExist(name: string): Promise<any>;
|
|
14
|
+
private recurseDeleteChildren;
|
|
15
|
+
private recurseChildren;
|
|
16
|
+
getByName(name: string): Promise<any>;
|
|
17
|
+
ensureNameNotExists(name: string): Promise<void>;
|
|
17
18
|
}
|
|
@@ -6,18 +6,6 @@ class TemplateApiHelper {
|
|
|
6
6
|
constructor(api) {
|
|
7
7
|
this.api = api;
|
|
8
8
|
}
|
|
9
|
-
async ensureNameNotExistsAtRoot(name) {
|
|
10
|
-
const response = await this.api.get(this.api.baseUrl + '/umbraco/management/api/v1/tree/template/root?skip=0&take=10000');
|
|
11
|
-
const json = await response.json();
|
|
12
|
-
for (const sb of json.items) {
|
|
13
|
-
if (sb.name === name) {
|
|
14
|
-
if (sb.id !== null) {
|
|
15
|
-
return await this.api.delete(this.api.baseUrl + '/umbraco/management/api/v1/template/' + sb.id);
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
return null;
|
|
20
|
-
}
|
|
21
9
|
async get(id) {
|
|
22
10
|
const response = await this.api.get(this.api.baseUrl + '/umbraco/management/api/v1/template/' + id);
|
|
23
11
|
const json = await response.json();
|
|
@@ -26,23 +14,10 @@ class TemplateApiHelper {
|
|
|
26
14
|
}
|
|
27
15
|
return null;
|
|
28
16
|
}
|
|
29
|
-
async
|
|
30
|
-
const response = await this.api.get(this.api.baseUrl + '/umbraco/management/api/v1/template/' +
|
|
17
|
+
async doesExist(id) {
|
|
18
|
+
const response = await this.api.get(this.api.baseUrl + '/umbraco/management/api/v1/template/' + id);
|
|
31
19
|
return response.status() === 200;
|
|
32
20
|
}
|
|
33
|
-
async getByNameAtRoot(name) {
|
|
34
|
-
const response = await this.api.get(this.api.baseUrl + '/umbraco/management/api/v1/tree/template/root?skip=0&take=10000');
|
|
35
|
-
const json = await response.json();
|
|
36
|
-
for (const sb of json.items) {
|
|
37
|
-
if (sb.name === name) {
|
|
38
|
-
if (sb.id !== null) {
|
|
39
|
-
const response = await this.api.get(this.api.baseUrl + '/umbraco/management/api/v1/template/' + sb.id);
|
|
40
|
-
return await response.json();
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
return null;
|
|
45
|
-
}
|
|
46
21
|
async create(name, alias, content) {
|
|
47
22
|
const templateData = {
|
|
48
23
|
"name": name,
|
|
@@ -56,28 +31,13 @@ class TemplateApiHelper {
|
|
|
56
31
|
async delete(id) {
|
|
57
32
|
return await this.api.delete(this.api.baseUrl + '/umbraco/management/api/v1/template/' + id);
|
|
58
33
|
}
|
|
59
|
-
async deleteByNameAtRoot(name) {
|
|
60
|
-
const response = await this.api.get(this.api.baseUrl + '/umbraco/management/api/v1/tree/template/root?skip=0&take=10000');
|
|
61
|
-
const json = await response.json();
|
|
62
|
-
for (const sb of json.items) {
|
|
63
|
-
if (sb.name === name) {
|
|
64
|
-
if (sb.id !== null) {
|
|
65
|
-
return await this.api.delete(this.api.baseUrl + '/umbraco/management/api/v1/template/' + sb.id);
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
return null;
|
|
70
|
-
}
|
|
71
34
|
async update(id, template) {
|
|
72
35
|
return await this.api.put(this.api.baseUrl + '/umbraco/management/api/v1/template/' + id, template);
|
|
73
36
|
}
|
|
74
37
|
async getChildren(id) {
|
|
75
|
-
const response = await this.api.get(this.api.baseUrl
|
|
76
|
-
const
|
|
77
|
-
|
|
78
|
-
return json;
|
|
79
|
-
}
|
|
80
|
-
return null;
|
|
38
|
+
const response = await this.api.get(`${this.api.baseUrl}/umbraco/management/api/v1/tree/template/children?parentId=${id}&skip=0&take=10000`);
|
|
39
|
+
const items = await response.json();
|
|
40
|
+
return items.items;
|
|
81
41
|
}
|
|
82
42
|
async getItems(ids) {
|
|
83
43
|
let idArray = 'id=' + ids[0];
|
|
@@ -95,16 +55,74 @@ class TemplateApiHelper {
|
|
|
95
55
|
async getAllAtRoot() {
|
|
96
56
|
return await this.api.get(this.api.baseUrl + '/umbraco/management/api/v1/tree/template/root?skip=0&take=10000');
|
|
97
57
|
}
|
|
98
|
-
async
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
58
|
+
async doesNameExist(name) {
|
|
59
|
+
return await this.getByName(name);
|
|
60
|
+
}
|
|
61
|
+
async recurseDeleteChildren(id) {
|
|
62
|
+
const items = await this.getChildren(id);
|
|
63
|
+
for (const child of items) {
|
|
64
|
+
if (child.isContainer || child.hasChildren) {
|
|
65
|
+
await this.recurseDeleteChildren(child.id);
|
|
66
|
+
}
|
|
67
|
+
else {
|
|
68
|
+
await this.delete(child.id);
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
return await this.delete(id);
|
|
72
|
+
}
|
|
73
|
+
async recurseChildren(name, id, toDelete) {
|
|
74
|
+
const items = await this.getChildren(id);
|
|
75
|
+
for (const child of items) {
|
|
76
|
+
if (child.name === name) {
|
|
77
|
+
if (!toDelete) {
|
|
78
|
+
return await this.get(child.id);
|
|
79
|
+
}
|
|
80
|
+
if (child.isContainer || child.hasChildren) {
|
|
81
|
+
return await this.recurseDeleteChildren(child.id);
|
|
82
|
+
}
|
|
83
|
+
else {
|
|
84
|
+
return await this.delete(child.id);
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
else if (child.isContainer || child.hasChildren) {
|
|
88
|
+
await this.recurseChildren(name, child.id, toDelete);
|
|
104
89
|
}
|
|
105
90
|
}
|
|
106
91
|
return false;
|
|
107
92
|
}
|
|
93
|
+
async getByName(name) {
|
|
94
|
+
const rootTemplates = await this.getAllAtRoot();
|
|
95
|
+
const jsonTemplates = await rootTemplates.json();
|
|
96
|
+
for (const template of jsonTemplates.items) {
|
|
97
|
+
if (template.name === name) {
|
|
98
|
+
return this.get(template.id);
|
|
99
|
+
}
|
|
100
|
+
else if (template.isContainer || template.hasChildren) {
|
|
101
|
+
const result = await this.recurseChildren(name, template.id, false);
|
|
102
|
+
if (result) {
|
|
103
|
+
return result;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
return false;
|
|
108
|
+
}
|
|
109
|
+
async ensureNameNotExists(name) {
|
|
110
|
+
const rootTemplates = await this.getAllAtRoot();
|
|
111
|
+
const jsonTemplates = await rootTemplates.json();
|
|
112
|
+
for (const template of jsonTemplates.items) {
|
|
113
|
+
if (template.name === name) {
|
|
114
|
+
if (template.isContainer || template.hasChildren) {
|
|
115
|
+
await this.recurseDeleteChildren(template.id);
|
|
116
|
+
}
|
|
117
|
+
await this.delete(template.id);
|
|
118
|
+
}
|
|
119
|
+
else {
|
|
120
|
+
if (template.isContainer || template.hasChildren) {
|
|
121
|
+
await this.recurseChildren(name, template.id, true);
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
}
|
|
108
126
|
}
|
|
109
127
|
exports.TemplateApiHelper = TemplateApiHelper;
|
|
110
128
|
//# sourceMappingURL=TemplateApiHelper.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TemplateApiHelper.js","sourceRoot":"","sources":["../../../lib/helpers/TemplateApiHelper.ts"],"names":[],"mappings":";;;AAEA,MAAa,iBAAiB;
|
|
1
|
+
{"version":3,"file":"TemplateApiHelper.js","sourceRoot":"","sources":["../../../lib/helpers/TemplateApiHelper.ts"],"names":[],"mappings":";;;AAEA,MAAa,iBAAiB;IAC1B,GAAG,CAAY;IAEf,YAAY,GAAe;QACvB,IAAI,CAAC,GAAG,GAAG,GAAG,CAAC;IACnB,CAAC;IAED,KAAK,CAAC,GAAG,CAAC,EAAU;QAChB,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,OAAO,GAAG,sCAAsC,GAAG,EAAE,CAAC,CAAC;QACpG,MAAM,IAAI,GAAG,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC;QAEnC,IAAI,IAAI,KAAK,IAAI,EAAE;YACf,OAAO,IAAI,CAAC;SACf;QACD,OAAO,IAAI,CAAC;IAChB,CAAC;IAED,KAAK,CAAC,SAAS,CAAC,EAAU;QACtB,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,OAAO,GAAG,sCAAsC,GAAG,EAAE,CAAC,CAAC;QACpG,OAAO,QAAQ,CAAC,MAAM,EAAE,KAAK,GAAG,CAAC;IACrC,CAAC;IAED,KAAK,CAAC,MAAM,CAAC,IAAY,EAAE,KAAa,EAAE,OAAe;QACrD,MAAM,YAAY,GAAG;YACjB,MAAM,EAAE,IAAI;YACZ,OAAO,EAAE,KAAK;YACd,SAAS,EAAE,OAAO;SACrB,CAAC;QACF,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,OAAO,GAAG,qCAAqC,EAAE,Y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I,QAAQ,CAAC,IAAI,KAAK,IAAI,EAAE;gBACxB,IAAI,QAAQ,CAAC,WAAW,IAAI,QAAQ,CAAC,WAAW,EAAE;oBAC9C,MAAM,IAAI,CAAC,qBAAqB,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC;iBACjD;gBACD,MAAM,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC;aAClC;iBAAM;gBACH,IAAI,QAAQ,CAAC,WAAW,IAAI,QAAQ,CAAC,WAAW,EAAE;oBAC9C,MAAM,IAAI,CAAC,eAAe,CAAC,IAAI,EAAE,QAAQ,CAAC,EAAE,EAAE,IAAI,CAAC,CAAC;iBACvD;aACJ;SACJ;IACL,CAAC;CACJ;AA3ID,8CA2IC","sourcesContent":["import {ApiHelpers} from \"./ApiHelpers\";\n\nexport class TemplateApiHelper {\n api: ApiHelpers\n\n constructor(api: ApiHelpers) {\n this.api = api;\n }\n\n async get(id: string) {\n const response = await this.api.get(this.api.baseUrl + '/umbraco/management/api/v1/template/' + id);\n const json = await response.json();\n\n if (json !== null) {\n return json;\n }\n return null;\n }\n\n async doesExist(id: string) {\n const response = await this.api.get(this.api.baseUrl + '/umbraco/management/api/v1/template/' + id);\n return response.status() === 200;\n }\n\n async create(name: string, alias: string, content: string) {\n const templateData = {\n \"name\": name,\n \"alias\": alias,\n \"content\": content\n };\n const response = await this.api.post(this.api.baseUrl + '/umbraco/management/api/v1/template', templateData);\n // Returns the id of the created template\n return response.headers().location.split(\"/\").pop();\n }\n\n async delete(id: string) {\n return await this.api.delete(this.api.baseUrl + '/umbraco/management/api/v1/template/' + id);\n }\n\n async update(id: string, template: object) {\n return await this.api.put(this.api.baseUrl + '/umbraco/management/api/v1/template/' + id, template);\n }\n\n async getChildren(id: string) {\n const response = await this.api.get(`${this.api.baseUrl}/umbraco/management/api/v1/tree/template/children?parentId=${id}&skip=0&take=10000`);\n const items = await response.json();\n return items.items;\n }\n\n async getItems(ids: string[]) {\n let idArray = 'id=' + ids[0];\n let i: number;\n\n for (i = 1; i < ids.length; ++i) {\n idArray += '&id=' + ids[i];\n }\n\n const response = await this.api.get(this.api.baseUrl + '/umbraco/management/api/v1/tree/template/item?' + idArray);\n const json = await response.json();\n\n if (json !== null) {\n return json;\n }\n return null;\n }\n\n async getAllAtRoot() {\n return await this.api.get(this.api.baseUrl + '/umbraco/management/api/v1/tree/template/root?skip=0&take=10000');\n }\n\n async doesNameExist(name: string) {\n return await this.getByName(name);\n }\n\n private async recurseDeleteChildren(id: string) {\n const items = await this.getChildren(id);\n\n for (const child of items) {\n if (child.isContainer || child.hasChildren) {\n await this.recurseDeleteChildren(child.id);\n } else {\n await this.delete(child.id);\n }\n }\n return await this.delete(id);\n }\n\n private async recurseChildren(name: string, id: string, toDelete: boolean) {\n const items = await this.getChildren(id);\n\n for (const child of items) {\n if (child.name === name) {\n if (!toDelete) {\n return await this.get(child.id);\n }\n if (child.isContainer || child.hasChildren) {\n return await this.recurseDeleteChildren(child.id);\n } else {\n return await this.delete(child.id);\n }\n } else if (child.isContainer || child.hasChildren) {\n await this.recurseChildren(name, child.id, toDelete);\n }\n }\n return false;\n }\n\n async getByName(name: string) {\n const rootTemplates = await this.getAllAtRoot();\n const jsonTemplates = await rootTemplates.json();\n\n for (const template of jsonTemplates.items) {\n if (template.name === name) {\n return this.get(template.id);\n } else if (template.isContainer || template.hasChildren) {\n const result = await this.recurseChildren(name, template.id, false);\n if (result) {\n return result;\n }\n }\n }\n return false;\n }\n\n async ensureNameNotExists(name: string) {\n const rootTemplates = await this.getAllAtRoot();\n const jsonTemplates = await rootTemplates.json();\n\n for (const template of jsonTemplates.items) {\n if (template.name === name) {\n if (template.isContainer || template.hasChildren) {\n await this.recurseDeleteChildren(template.id);\n }\n await this.delete(template.id);\n } else {\n if (template.isContainer || template.hasChildren) {\n await this.recurseChildren(name, template.id, true);\n }\n }\n }\n }\n}"]}
|
|
@@ -7,5 +7,8 @@ export declare class UiHelpers {
|
|
|
7
7
|
goToSettingsTreeItem(settingsTreeItemName: string): Promise<void>;
|
|
8
8
|
clickDataElement(elementName: string, options?: any): Promise<void>;
|
|
9
9
|
getDataElement(elementName: string): Promise<import("playwright-core").Locator>;
|
|
10
|
-
|
|
10
|
+
isSuccessNotificationVisible(): Promise<void>;
|
|
11
|
+
isErrorNotificationVisible(): Promise<void>;
|
|
12
|
+
goToTemplate(templateName: string): Promise<void>;
|
|
13
|
+
goToScript(scriptName: string): Promise<void>;
|
|
11
14
|
}
|
|
@@ -27,8 +27,23 @@ class UiHelpers {
|
|
|
27
27
|
async getDataElement(elementName) {
|
|
28
28
|
return this.page.locator(`[data-element="${elementName}"]`);
|
|
29
29
|
}
|
|
30
|
-
async
|
|
31
|
-
return (0, test_1.expect)(this.page.locator('uui-toast-notification
|
|
30
|
+
async isSuccessNotificationVisible() {
|
|
31
|
+
return await (0, test_1.expect)(this.page.locator('uui-toast-notification >> [color="positive"]')).toBeVisible();
|
|
32
|
+
}
|
|
33
|
+
async isErrorNotificationVisible() {
|
|
34
|
+
return await (0, test_1.expect)(this.page.locator('uui-toast-notification >> [color="danger"]')).toBeVisible();
|
|
35
|
+
}
|
|
36
|
+
// Will only work for root templates
|
|
37
|
+
async goToTemplate(templateName) {
|
|
38
|
+
await this.goToSection(ConstantHelper_1.ConstantHelper.sections.settings);
|
|
39
|
+
await this.page.locator('umb-tree-item', { hasText: 'Templates' }).locator('#caret-button').click();
|
|
40
|
+
await this.page.locator('umb-tree-item').getByLabel(templateName).click();
|
|
41
|
+
}
|
|
42
|
+
// Will only work for root scripts
|
|
43
|
+
async goToScript(scriptName) {
|
|
44
|
+
await this.goToSection(ConstantHelper_1.ConstantHelper.sections.settings);
|
|
45
|
+
await this.page.locator('umb-tree-item', { hasText: 'Scripts' }).locator('#caret-button').click();
|
|
46
|
+
await this.page.locator('umb-tree-item').getByLabel(scriptName).click();
|
|
32
47
|
}
|
|
33
48
|
}
|
|
34
49
|
exports.UiHelpers = UiHelpers;
|
|
@@ -1 +1 @@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sourcesContent":["import {expect, Page} from \"@playwright/test\"\nimport {ConstantHelper} from \"./ConstantHelper\";\n\nexport class UiHelpers {\n\n page: Page;\n\n constructor(page: Page) {\n this.page = page;\n }\n\n async clickButton(buttonName: string) {\n await this.page.getByRole('button', {name: buttonName}).click();\n }\n\n async goToSection(sectionName: string) {\n for (let section in ConstantHelper.sections) {\n await expect(this.page.getByRole('tab', {name: section})).toBeVisible();\n }\n await this.page.getByRole('tab', {name: sectionName}).click();\n }\n\n async goToSettingsTreeItem(settingsTreeItemName: string) {\n await this.goToSection('Settings');\n await this.page.getByLabel(settingsTreeItemName).click();\n }\n\n async clickDataElement(elementName: string, options: any = null) {\n await this.page.click(`[data-element=\"${elementName}\"]`, options);\n }\n\n async getDataElement(elementName: string) {\n return this.page.locator(`[data-element=\"${elementName}\"]`);\n }\n\n async isSuccessNotificationVisible() {\n return await expect(this.page.locator('uui-toast-notification >> [color=\"positive\"]')).toBeVisible();\n }\n\n async isErrorNotificationVisible() {\n return await expect(this.page.locator('uui-toast-notification >> [color=\"danger\"]')).toBeVisible();\n }\n\n // Will only work for root templates\n async goToTemplate(templateName: string) {\n await this.goToSection(ConstantHelper.sections.settings);\n await this.page.locator('umb-tree-item', {hasText: 'Templates'}).locator('#caret-button').click();\n await this.page.locator('umb-tree-item').getByLabel(templateName).click();\n }\n \n // Will only work for root scripts\n async goToScript(scriptName: string){\n await this.goToSection(ConstantHelper.sections.settings);\n await this.page.locator('umb-tree-item', {hasText: 'Scripts'}).locator('#caret-button').click();\n await this.page.locator('umb-tree-item').getByLabel(scriptName).click();\n }\n}"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"program":{"fileNames":["../node_modules/typescript/lib/lib.es5.d.ts","../node_modules/typescript/lib/lib.es2015.d.ts","../node_modules/typescript/lib/lib.es2016.d.ts","../node_modules/typescript/lib/lib.es2017.d.ts","../node_modules/typescript/lib/lib.dom.d.ts","../node_modules/typescript/lib/lib.dom.iterable.d.ts","../node_modules/typescript/lib/lib.es2015.core.d.ts","../node_modules/typescript/lib/lib.es2015.collection.d.ts","../node_modules/typescript/lib/lib.es2015.generator.d.ts","../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../node_modules/typescript/lib/lib.es2015.promise.d.ts","../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../node_modules/typescript/lib/lib.es2017.object.d.ts","../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../node_modules/typescript/lib/lib.es2017.string.d.ts","../node_modules/typescript/lib/lib.es2017.intl.d.ts","../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../node_modules/tslib/tslib.d.ts","../node_modules/playwright-core/types/protocol.d.ts","../node_modules/playwright-core/types/structs.d.ts","../node_modules/playwright-core/types/types.d.ts","../node_modules/playwright/types/test.d.ts","../node_modules/playwright/test.d.ts","../node_modules/@playwright/test/index.d.ts","../umbraco.config.ts","../lib/helpers/ReportHelper.ts","../lib/helpers/TelemetryDataApiHelper.ts","../lib/helpers/LanguageApiHelper.ts","../lib/helpers/DictionaryApiHelper.ts","../lib/helpers/RelationType.ts","../lib/helpers/UserGroupApiHelper.ts","../lib/helpers/TemplateApiHelper.ts","../lib/helpers/AliasHelper.ts","../lib/helpers/DataTypeApiHelper.ts","../lib/helpers/UserApiHelper.ts","../lib/helpers/TemporaryFileApiHelper.ts","../lib/helpers/DocumentApiHelper.ts","../lib/helpers/PackageApiHelper.ts","../lib/helpers/ScriptApiHelper.ts","../lib/helpers/PartialViewApiHelper.ts","../lib/helpers/StylesheetApiHelper.ts","../lib/helpers/LogViewerApiHelper.ts","../lib/helpers/ApiHelpers.ts","../lib/helpers/ConstantHelper.ts","../lib/helpers/UiHelpers.ts","../lib/helpers/testExtension.ts","../lib/helpers/index.ts","../lib/index.ts","../node_modules/@types/node/base.d.ts","../node_modules/@types/node/index.d.ts"],"fileInfos":[{"version":"f20c05dbfe50a208301d2a1da37b9931bce0466eb5a1f4fe240971b4ecc82b67","affectsGlobalScope":true},"dc47c4fa66b9b9890cf076304de2a9c5201e94b740cffdf09f87296d877d71f6","7a387c58583dfca701b6c85e0adaf43fb17d590fb16d5b2dc0a2fbd89f35c467","8a12173c586e95f4433e0c6dc446bc88346be73ffe9ca6eec7aa63c8f3dca7f9",{"version":"9b087de7268e4efc5f215347a62656663933d63c0b1d7b624913240367b999ea","affectsGlobalScope":true},{"version":"3260e3386d9535b804205bdddb5618a9a27735bd22927f48ad54363abcd23d45","affectsGlobalScope":true},{"version":"adb996790133eb33b33aadb9c09f15c2c575e71fb57a62de8bf74dbf59ec7dfb","affectsGlobalScope":true},{"version":"8cc8c5a3bac513368b0157f3d8b31cfdcfe78b56d3724f30f80ed9715e404af8","affectsGlobalScope":true},{"version":"cdccba9a388c2ee3fd6ad4018c640a471a6c060e96f1232062223063b0a5ac6a","affectsGlobalScope":true},{"version":"c5c05907c02476e4bde6b7e76a79ffcd948aedd14b6a8f56e4674221b0417398","affectsGlobalScope":true},{"version":"0d5f52b3174bee6edb81260ebcd792692c32c81fd55499d69531496f3f2b25e7","affectsGlobalScope":true},{"version":"55f400eec64d17e888e278f4def2f254b41b89515d3b88ad75d5e05f019daddd","affectsGlobalScope":true},{"version":"181f1784c6c10b751631b24ce60c7f78b20665db4550b335be179217bacc0d5f","affectsGlobalScope":true},{"version":"3013574108c36fd3aaca79764002b3717da09725a36a6fc02eac386593110f93","affectsGlobalScope":true},{"version":"75ec0bdd727d887f1b79ed6619412ea72ba3c81d92d0787ccb64bab18d261f14","affectsGlobalScope":true},{"version":"3be5a1453daa63e031d266bf342f3943603873d890ab8b9ada95e22389389006","affectsGlobalScope":true},{"version":"17bb1fc99591b00515502d264fa55dc8370c45c5298f4a5c2083557dccba5a2a","affectsGlobalScope":true},{"version":"7ce9f0bde3307ca1f944119f6365f2d776d281a393b576a18a2f2893a2d75c98","affectsGlobalScope":true},{"version":"6a6b173e739a6a99629a8594bfb294cc7329bfb7b227f12e1f7c11bc163b8577","affectsGlobalScope":true},{"version":"81cac4cbc92c0c839c70f8ffb94eb61e2d32dc1c3cf6d95844ca099463cf37ea","affectsGlobalScope":true},{"version":"b0124885ef82641903d232172577f2ceb5d3e60aed4da1153bab4221e1f6dd4e","affectsGlobalScope":true},"14a84fbe4ec531dcbaf5d2594fd95df107258e60ae6c6a076404f13c3f66f28e","08f466e76048fdad5b11cfea3e71f14dd81392831483f098c92715d62f2855db","8d13c86e53ac8a5ed2c205497dbf9446fa854c7b8a23288de62cb797fb4ca486","eacf1ea6f35270dcfba0a5931e753616734d11ccddc6b2c2a9767b38058a3279",{"version":"de6d2e55195064e4460f0dcc4d560f4aaf84c202290dd4b5306affaf4eb4cb1d","affectsGlobalScope":true},"3f00324f263189b385c3a9383b1f4dae6237697bcf0801f96aa35c340512d79c","ec8997c2e5cea26befc76e7bf990750e96babb16977673a9ff3b5c0575d01e48",{"version":"c93350324664aeec0217741e56c4950435f58ebba7c4589b99deec894b33d67b","signature":"22fea8c28752d1a841afd4b34f886b6ddd7701982943de4a92694a371824b818"},{"version":"e598311445ebe4378af1cb00abfb7222659a7851aaa3d9549c64628857ab4838","signature":"d9e590839d9b5259ea85c4b7b8abedd8459bfadad3aa2ab707df5f06d838a879"},{"version":"16bc0fd4adf6f83440a9f0401fc64bd45c73ca0e5e3efa7a3df152e884420ccd","signature":"f4c914bf76148b4feba712d9e6b2b33b52ee537448d9002e48faaadd12d8f1e9"},{"version":"7a4a8fa9be7dd4a0eacf6fcc79982805195f24c62c8419af326ec22b1a534345","signature":"9631597fd2063026932c3a99645b68682cef2081aead168c0416026468c64388"},{"version":"64ea91ed2aae8aeb8e45e53934fe756af0d7fa3a05172300a3b9404a6192c390","signature":"cd091e88f3461938d185a251e0146b32d0be6b29ad3deab8baa1f5d4fc1597d8"},{"version":"08a26c1d6bbbfb44ef2484675d96f5bf36d427b0e6edad61b38d68858a884098","signature":"e7bfac5c6a6ab4c11b72866e86bbf758f38a8c7c983ea10787a54f10460ae013"},{"version":"7426201624290b4bbe597a6e4bdaa8a5b84ec70333e28b324ee95f51af08c296","signature":"7407519d4b5aefa9a1d72b84833ebc8bf55ae8f45cc37ee2448eb1ee1e61deb3"},{"version":"1fa79a7893e5d300d0d535beec045b99fa3179fece057e40faae11d1b3557bec","signature":"31da70ceb2eb41e94cda849a79c8fe2361fee003c39a2bd21375582a6f2262a0"},{"version":"e17f07b028b14f80d6c625470844ec2f52f37efcd58f80dffc607fb8653cd4d0","signature":"7c9803e8b478726fc90dac32492eb1904cf2ddf6cacc9393a823a1f56c8de2b6"},{"version":"324203f35fe8c0bb25b887cd8325314e672f884200fe9b6b93c8dc9eba09fcee","signature":"0eafac28ea0186d351cdda9458653d1dbd6f283bd0f8c571d7169b1dbcf7e978"},{"version":"39fbeac72c4027903be763529c6caa5dc5c1c4ee359b6f6adfdc912484e57116","signature":"e024dceb8caff34db9cfba3b2ac19170b0afc1b817a0b66e22e0141b34e2fc6e"},{"version":"95b1d0701ff22a984ce1b67910110194ed14ffa433b44a3be5111174d5695559","signature":"b3e9372b4dbae48465582902ca7446cd9ef9dae6092670eaa18af04d5c089c00"},{"version":"fadb42657de31f353a17a9cce4ca0bdb0424b58179197ce97f1f49313b35df93","signature":"4af44936bc7df88f3d8bbf0b250cf4fd76ad9d38bd2884db6ca9b0c97c42ce99"},{"version":"d609d8b0a013e2645316b975ab68855dfbd72cbd5311e0093c4f14d87defd34f","signature":"2698823199b9e32187daacb96108ed9a06e913d2e5347bf99ea2c1d1d33df20a"},{"version":"65a9aa25ba5766698759b6dac11748c748b3fe789933c295ba5216d8b0365919","signature":"fe505f3be60d71c2669aa753385861c1cc84f1f9a4fa3f65e64d40a7bc9854fb"},{"version":"88a8deea4903f2b6219f77a2f8c30b1277852441f4f36d447f58acc9f565298f","signature":"f6bcea6d0ed15c89143a3362fc8d4f8f523da6c4da16bc4eef2859cb1b0be90d"},{"version":"961e703fe7be2fa3a307ccaf8e381de7444d22a6417bb3b811fbb59341ee3c6f","signature":"52ed0834eed3548ac5adff54c0ffb7cc33496d90f8aef9ba30dca85bc005d6c9"},{"version":"f1bd24334e503e833a2cecf306de16ba4c5cf2fefd6fda9d57c19d838f6cb8ec","signature":"35d0dad48d46ff699954fd32afe947a9191acfd3a0dbf1d9d75f4f8785d41cc3"},{"version":"214e34a1be8ad6d79e788dfdde64b260e3d4355829169e508c72e12e91211898","signature":"e60e1e97c3bbcfcd8b1c9a1beff849fc749146da4fe2d17479c1e20a5cbacc6b"},{"version":"2cd71417c382c2f417294dfa0e34c1ed314b6976480087f7dd7980b793484a47","signature":"bb8f4231e89b77b07df78175e69051078407d14ad055fad1cf54aae3e2317567"},{"version":"8c8d11341a238c093eb261d868f11b47aa06f339c57f9a3fda4b9187eaa626ff","signature":"8dd10f9496ac4e3b1eb717761f7f0a2996209ada7c1e30e614eadb68a0719584"},{"version":"94ed2d1240b347c3f620642cde781b2048a7d17d5cf957e2379088a39d35418f","signature":"302280c749ac14a35a70667829db1fb7118cc298f4a9c98dbde1a69899158aeb"},{"version":"0ae539fcb9305ceed033478dad6057ca783cd05639a5ffec46236b181329b73d","signature":"fb2248233522d52bc64ce2a6cbbb7a48063c27fe937586687f86ec9e59f356be"},{"version":"b9181bea4a29329594d5c5a53bec78507fcc67ad0c5afa2a580dc51d6f19a4f7","signature":"4f7d54c603949113f45505330caae6f41e8dbb59841d4ae20b42307dc4579835"},{"version":"e7f447ee6988ff9fefe357e8672350b2c6ca3d088f0f8359ec5d0a4b6c82b37a","affectsGlobalScope":true},"2ee6b8d10878e64227c146bdbda238deeb794b6b56db11dd82fc23547071d8ed"],"options":{"allowSyntheticDefaultImports":true,"composite":true,"declaration":true,"emitDeclarationOnly":false,"esModuleInterop":false,"experimentalDecorators":true,"importHelpers":true,"inlineSources":true,"module":1,"noEmitOnError":true,"noFallthroughCasesInSwitch":true,"noImplicitAny":false,"noImplicitReturns":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./","skipLibCheck":true,"sourceMap":true,"strict":true,"strictPropertyInitialization":false,"target":99},"fileIdsList":[[22],[22,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,53],[22,47],[22,28,47],[22,28,48],[22,37,47,48,49,50],[22,28,51],[22,51],[27],[53],[25],[23,24,53],[26],[25,28,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],[25,47],[47],[28,47],[25,28],[37,47,48,49,50],[28,51],[51]],"referencedMap":[[37,1],[47,2],[48,1],[38,3],[33,3],[41,3],[32,3],[46,3],[42,3],[44,3],[34,3],[30,4],[43,3],[45,3],[31,3],[36,3],[40,3],[49,5],[39,3],[35,3],[51,6],[50,7],[52,8],[28,9],[53,10],[54,10],[24,11],[25,12],[27,13],[26,11],[29,1]],"exportedModulesMap":[[47,14],[38,15],[33,15],[41,16],[32,15],[46,16],[42,15],[44,15],[34,15],[30,17],[43,15],[45,15],[31,15],[36,15],[40,15],[49,18],[39,15],[35,15],[51,19],[50,20],[52,21],[28,9],[53,10],[54,10],[24,11],[25,12],[27,13],[26,11]],"semanticDiagnosticsPerFile":[37,47,48,38,33,41,32,46,42,44,34,30,43,45,31,36,40,49,39,35,51,50,52,28,53,54,23,24,25,27,26,22,5,6,8,7,2,9,10,11,12,13,14,15,16,3,4,20,17,18,19,21,1,29],"latestChangedDtsFile":"./lib/index.d.ts"},"version":"4.8.3"}
|
|
1
|
+
{"program":{"fileNames":["../node_modules/typescript/lib/lib.es5.d.ts","../node_modules/typescript/lib/lib.es2015.d.ts","../node_modules/typescript/lib/lib.es2016.d.ts","../node_modules/typescript/lib/lib.es2017.d.ts","../node_modules/typescript/lib/lib.es2018.d.ts","../node_modules/typescript/lib/lib.es2019.d.ts","../node_modules/typescript/lib/lib.es2020.d.ts","../node_modules/typescript/lib/lib.dom.d.ts","../node_modules/typescript/lib/lib.dom.iterable.d.ts","../node_modules/typescript/lib/lib.es2015.core.d.ts","../node_modules/typescript/lib/lib.es2015.collection.d.ts","../node_modules/typescript/lib/lib.es2015.generator.d.ts","../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../node_modules/typescript/lib/lib.es2015.promise.d.ts","../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../node_modules/typescript/lib/lib.es2017.object.d.ts","../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../node_modules/typescript/lib/lib.es2017.string.d.ts","../node_modules/typescript/lib/lib.es2017.intl.d.ts","../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../node_modules/typescript/lib/lib.es2018.intl.d.ts","../node_modules/typescript/lib/lib.es2018.promise.d.ts","../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../node_modules/typescript/lib/lib.es2019.array.d.ts","../node_modules/typescript/lib/lib.es2019.object.d.ts","../node_modules/typescript/lib/lib.es2019.string.d.ts","../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../node_modules/typescript/lib/lib.es2020.date.d.ts","../node_modules/typescript/lib/lib.es2020.promise.d.ts","../node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../node_modules/typescript/lib/lib.es2020.string.d.ts","../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../node_modules/typescript/lib/lib.es2020.intl.d.ts","../node_modules/typescript/lib/lib.es2020.number.d.ts","../node_modules/typescript/lib/lib.esnext.intl.d.ts","../node_modules/tslib/tslib.d.ts","../node_modules/playwright-core/types/protocol.d.ts","../node_modules/playwright-core/types/structs.d.ts","../node_modules/playwright-core/types/types.d.ts","../node_modules/playwright/types/test.d.ts","../node_modules/playwright/test.d.ts","../node_modules/@playwright/test/index.d.ts","../umbraco.config.ts","../lib/helpers/ReportHelper.ts","../lib/helpers/TelemetryDataApiHelper.ts","../lib/helpers/LanguageApiHelper.ts","../lib/helpers/DictionaryApiHelper.ts","../lib/helpers/RelationType.ts","../lib/helpers/UserGroupApiHelper.ts","../lib/helpers/TemplateApiHelper.ts","../lib/helpers/AliasHelper.ts","../lib/helpers/DataTypeApiHelper.ts","../lib/helpers/UserApiHelper.ts","../lib/helpers/TemporaryFileApiHelper.ts","../lib/helpers/DocumentApiHelper.ts","../lib/helpers/PackageApiHelper.ts","../lib/helpers/ScriptApiHelper.ts","../lib/helpers/PartialViewApiHelper.ts","../lib/helpers/StylesheetApiHelper.ts","../lib/helpers/LogViewerApiHelper.ts","../lib/helpers/ApiHelpers.ts","../lib/helpers/ConstantHelper.ts","../lib/helpers/UiHelpers.ts","../lib/helpers/testExtension.ts","../lib/helpers/index.ts","../lib/index.ts","../node_modules/@types/node/ts4.8/assert.d.ts","../node_modules/@types/node/ts4.8/assert/strict.d.ts","../node_modules/undici-types/header.d.ts","../node_modules/undici-types/readable.d.ts","../node_modules/undici-types/file.d.ts","../node_modules/undici-types/fetch.d.ts","../node_modules/undici-types/formdata.d.ts","../node_modules/undici-types/connector.d.ts","../node_modules/undici-types/client.d.ts","../node_modules/undici-types/errors.d.ts","../node_modules/undici-types/dispatcher.d.ts","../node_modules/undici-types/global-dispatcher.d.ts","../node_modules/undici-types/global-origin.d.ts","../node_modules/undici-types/pool-stats.d.ts","../node_modules/undici-types/pool.d.ts","../node_modules/undici-types/handlers.d.ts","../node_modules/undici-types/balanced-pool.d.ts","../node_modules/undici-types/agent.d.ts","../node_modules/undici-types/mock-interceptor.d.ts","../node_modules/undici-types/mock-agent.d.ts","../node_modules/undici-types/mock-client.d.ts","../node_modules/undici-types/mock-pool.d.ts","../node_modules/undici-types/mock-errors.d.ts","../node_modules/undici-types/proxy-agent.d.ts","../node_modules/undici-types/api.d.ts","../node_modules/undici-types/cookies.d.ts","../node_modules/undici-types/patch.d.ts","../node_modules/undici-types/filereader.d.ts","../node_modules/undici-types/diagnostics-channel.d.ts","../node_modules/undici-types/websocket.d.ts","../node_modules/undici-types/content-type.d.ts","../node_modules/undici-types/cache.d.ts","../node_modules/undici-types/interceptors.d.ts","../node_modules/undici-types/index.d.ts","../node_modules/@types/node/ts4.8/globals.d.ts","../node_modules/@types/node/ts4.8/async_hooks.d.ts","../node_modules/@types/node/ts4.8/buffer.d.ts","../node_modules/@types/node/ts4.8/child_process.d.ts","../node_modules/@types/node/ts4.8/cluster.d.ts","../node_modules/@types/node/ts4.8/console.d.ts","../node_modules/@types/node/ts4.8/constants.d.ts","../node_modules/@types/node/ts4.8/crypto.d.ts","../node_modules/@types/node/ts4.8/dgram.d.ts","../node_modules/@types/node/ts4.8/diagnostics_channel.d.ts","../node_modules/@types/node/ts4.8/dns.d.ts","../node_modules/@types/node/ts4.8/dns/promises.d.ts","../node_modules/@types/node/ts4.8/domain.d.ts","../node_modules/@types/node/ts4.8/dom-events.d.ts","../node_modules/@types/node/ts4.8/events.d.ts","../node_modules/@types/node/ts4.8/fs.d.ts","../node_modules/@types/node/ts4.8/fs/promises.d.ts","../node_modules/@types/node/ts4.8/http.d.ts","../node_modules/@types/node/ts4.8/http2.d.ts","../node_modules/@types/node/ts4.8/https.d.ts","../node_modules/@types/node/ts4.8/inspector.d.ts","../node_modules/@types/node/ts4.8/module.d.ts","../node_modules/@types/node/ts4.8/net.d.ts","../node_modules/@types/node/ts4.8/os.d.ts","../node_modules/@types/node/ts4.8/path.d.ts","../node_modules/@types/node/ts4.8/perf_hooks.d.ts","../node_modules/@types/node/ts4.8/process.d.ts","../node_modules/@types/node/ts4.8/punycode.d.ts","../node_modules/@types/node/ts4.8/querystring.d.ts","../node_modules/@types/node/ts4.8/readline.d.ts","../node_modules/@types/node/ts4.8/readline/promises.d.ts","../node_modules/@types/node/ts4.8/repl.d.ts","../node_modules/@types/node/ts4.8/stream.d.ts","../node_modules/@types/node/ts4.8/stream/promises.d.ts","../node_modules/@types/node/ts4.8/stream/consumers.d.ts","../node_modules/@types/node/ts4.8/stream/web.d.ts","../node_modules/@types/node/ts4.8/string_decoder.d.ts","../node_modules/@types/node/ts4.8/test.d.ts","../node_modules/@types/node/ts4.8/timers.d.ts","../node_modules/@types/node/ts4.8/timers/promises.d.ts","../node_modules/@types/node/ts4.8/tls.d.ts","../node_modules/@types/node/ts4.8/trace_events.d.ts","../node_modules/@types/node/ts4.8/tty.d.ts","../node_modules/@types/node/ts4.8/url.d.ts","../node_modules/@types/node/ts4.8/util.d.ts","../node_modules/@types/node/ts4.8/v8.d.ts","../node_modules/@types/node/ts4.8/vm.d.ts","../node_modules/@types/node/ts4.8/wasi.d.ts","../node_modules/@types/node/ts4.8/worker_threads.d.ts","../node_modules/@types/node/ts4.8/zlib.d.ts","../node_modules/@types/node/ts4.8/globals.global.d.ts","../node_modules/@types/node/ts4.8/index.d.ts"],"fileInfos":[{"version":"f20c05dbfe50a208301d2a1da37b9931bce0466eb5a1f4fe240971b4ecc82b67","affectsGlobalScope":true},"dc47c4fa66b9b9890cf076304de2a9c5201e94b740cffdf09f87296d877d71f6","7a387c58583dfca701b6c85e0adaf43fb17d590fb16d5b2dc0a2fbd89f35c467","8a12173c586e95f4433e0c6dc446bc88346be73ffe9ca6eec7aa63c8f3dca7f9","5f4e733ced4e129482ae2186aae29fde948ab7182844c3a5a51dd346182c7b06","e6b724280c694a9f588847f754198fb96c43d805f065c3a5b28bbc9594541c84","1fc5ab7a764205c68fa10d381b08417795fc73111d6dd16b5b1ed36badb743d9",{"version":"9b087de7268e4efc5f215347a62656663933d63c0b1d7b624913240367b999ea","affectsGlobalScope":true},{"version":"3260e3386d9535b804205bdddb5618a9a27735bd22927f48ad54363abcd23d45","affectsGlobalScope":true},{"version":"adb996790133eb33b33aadb9c09f15c2c575e71fb57a62de8bf74dbf59ec7dfb","affectsGlobalScope":true},{"version":"8cc8c5a3bac513368b0157f3d8b31cfdcfe78b56d3724f30f80ed9715e404af8","affectsGlobalScope":true},{"version":"cdccba9a388c2ee3fd6ad4018c640a471a6c060e96f1232062223063b0a5ac6a","affectsGlobalScope":true},{"version":"c5c05907c02476e4bde6b7e76a79ffcd948aedd14b6a8f56e4674221b0417398","affectsGlobalScope":true},{"version":"0d5f52b3174bee6edb81260ebcd792692c32c81fd55499d69531496f3f2b25e7","affectsGlobalScope":true},{"version":"55f400eec64d17e888e278f4def2f254b41b89515d3b88ad75d5e05f019daddd","affectsGlobalScope":true},{"version":"181f1784c6c10b751631b24ce60c7f78b20665db4550b335be179217bacc0d5f","affectsGlobalScope":true},{"version":"3013574108c36fd3aaca79764002b3717da09725a36a6fc02eac386593110f93","affectsGlobalScope":true},{"version":"75ec0bdd727d887f1b79ed6619412ea72ba3c81d92d0787ccb64bab18d261f14","affectsGlobalScope":true},{"version":"3be5a1453daa63e031d266bf342f3943603873d890ab8b9ada95e22389389006","affectsGlobalScope":true},{"version":"17bb1fc99591b00515502d264fa55dc8370c45c5298f4a5c2083557dccba5a2a","affectsGlobalScope":true},{"version":"7ce9f0bde3307ca1f944119f6365f2d776d281a393b576a18a2f2893a2d75c98","affectsGlobalScope":true},{"version":"6a6b173e739a6a99629a8594bfb294cc7329bfb7b227f12e1f7c11bc163b8577","affectsGlobalScope":true},{"version":"81cac4cbc92c0c839c70f8ffb94eb61e2d32dc1c3cf6d95844ca099463cf37ea","affectsGlobalScope":true},{"version":"b0124885ef82641903d232172577f2ceb5d3e60aed4da1153bab4221e1f6dd4e","affectsGlobalScope":true},{"version":"0eb85d6c590b0d577919a79e0084fa1744c1beba6fd0d4e951432fa1ede5510a","affectsGlobalScope":true},{"version":"da233fc1c8a377ba9e0bed690a73c290d843c2c3d23a7bd7ec5cd3d7d73ba1e0","affectsGlobalScope":true},{"version":"d154ea5bb7f7f9001ed9153e876b2d5b8f5c2bb9ec02b3ae0d239ec769f1f2ae","affectsGlobalScope":true},{"version":"bb2d3fb05a1d2ffbca947cc7cbc95d23e1d053d6595391bd325deb265a18d36c","affectsGlobalScope":true},{"version":"c80df75850fea5caa2afe43b9949338ce4e2de086f91713e9af1a06f973872b8","affectsGlobalScope":true},{"version":"9d57b2b5d15838ed094aa9ff1299eecef40b190722eb619bac4616657a05f951","affectsGlobalScope":true},{"version":"6c51b5dd26a2c31dbf37f00cfc32b2aa6a92e19c995aefb5b97a3a64f1ac99de","affectsGlobalScope":true},{"version":"6e7997ef61de3132e4d4b2250e75343f487903ddf5370e7ce33cf1b9db9a63ed","affectsGlobalScope":true},{"version":"2ad234885a4240522efccd77de6c7d99eecf9b4de0914adb9a35c0c22433f993","affectsGlobalScope":true},{"version":"09aa50414b80c023553090e2f53827f007a301bc34b0495bfb2c3c08ab9ad1eb","affectsGlobalScope":true},{"version":"d7f680a43f8cd12a6b6122c07c54ba40952b0c8aa140dcfcf32eb9e6cb028596","affectsGlobalScope":true},{"version":"3787b83e297de7c315d55d4a7c546ae28e5f6c0a361b7a1dcec1f1f50a54ef11","affectsGlobalScope":true},{"version":"e7e8e1d368290e9295ef18ca23f405cf40d5456fa9f20db6373a61ca45f75f40","affectsGlobalScope":true},{"version":"faf0221ae0465363c842ce6aa8a0cbda5d9296940a8e26c86e04cc4081eea21e","affectsGlobalScope":true},{"version":"06393d13ea207a1bfe08ec8d7be562549c5e2da8983f2ee074e00002629d1871","affectsGlobalScope":true},{"version":"775d9c9fd150d5de79e0450f35bc8b8f94ae64e3eb5da12725ff2a649dccc777","affectsGlobalScope":true},{"version":"b248e32ca52e8f5571390a4142558ae4f203ae2f94d5bac38a3084d529ef4e58","affectsGlobalScope":true},{"version":"52d1bb7ab7a3306fd0375c8bff560feed26ed676a5b0457fa8027b563aecb9a4","affectsGlobalScope":true},"14a84fbe4ec531dcbaf5d2594fd95df107258e60ae6c6a076404f13c3f66f28e","08f466e76048fdad5b11cfea3e71f14dd81392831483f098c92715d62f2855db","8d13c86e53ac8a5ed2c205497dbf9446fa854c7b8a23288de62cb797fb4ca486","eacf1ea6f35270dcfba0a5931e753616734d11ccddc6b2c2a9767b38058a3279",{"version":"de6d2e55195064e4460f0dcc4d560f4aaf84c202290dd4b5306affaf4eb4cb1d","affectsGlobalScope":true},"3f00324f263189b385c3a9383b1f4dae6237697bcf0801f96aa35c340512d79c","ec8997c2e5cea26befc76e7bf990750e96babb16977673a9ff3b5c0575d01e48",{"version":"c93350324664aeec0217741e56c4950435f58ebba7c4589b99deec894b33d67b","signature":"22fea8c28752d1a841afd4b34f886b6ddd7701982943de4a92694a371824b818"},{"version":"e598311445ebe4378af1cb00abfb7222659a7851aaa3d9549c64628857ab4838","signature":"d9e590839d9b5259ea85c4b7b8abedd8459bfadad3aa2ab707df5f06d838a879"},{"version":"16bc0fd4adf6f83440a9f0401fc64bd45c73ca0e5e3efa7a3df152e884420ccd","signature":"f4c914bf76148b4feba712d9e6b2b33b52ee537448d9002e48faaadd12d8f1e9"},{"version":"7a4a8fa9be7dd4a0eacf6fcc79982805195f24c62c8419af326ec22b1a534345","signature":"9631597fd2063026932c3a99645b68682cef2081aead168c0416026468c64388"},{"version":"64ea91ed2aae8aeb8e45e53934fe756af0d7fa3a05172300a3b9404a6192c390","signature":"cd091e88f3461938d185a251e0146b32d0be6b29ad3deab8baa1f5d4fc1597d8"},{"version":"08a26c1d6bbbfb44ef2484675d96f5bf36d427b0e6edad61b38d68858a884098","signature":"e7bfac5c6a6ab4c11b72866e86bbf758f38a8c7c983ea10787a54f10460ae013"},{"version":"7426201624290b4bbe597a6e4bdaa8a5b84ec70333e28b324ee95f51af08c296","signature":"7407519d4b5aefa9a1d72b84833ebc8bf55ae8f45cc37ee2448eb1ee1e61deb3"},{"version":"4c712a0845e307a40ee6f5513712e15acfcaaac0abdd6f7dddbdfb0590329aee","signature":"b383d07b6cfbbf9750f1dd5e56d6d68f2ca0355305d47a05a30185c24786f62a"},{"version":"e17f07b028b14f80d6c625470844ec2f52f37efcd58f80dffc607fb8653cd4d0","signature":"7c9803e8b478726fc90dac32492eb1904cf2ddf6cacc9393a823a1f56c8de2b6"},{"version":"324203f35fe8c0bb25b887cd8325314e672f884200fe9b6b93c8dc9eba09fcee","signature":"0eafac28ea0186d351cdda9458653d1dbd6f283bd0f8c571d7169b1dbcf7e978"},{"version":"39fbeac72c4027903be763529c6caa5dc5c1c4ee359b6f6adfdc912484e57116","signature":"e024dceb8caff34db9cfba3b2ac19170b0afc1b817a0b66e22e0141b34e2fc6e"},{"version":"95b1d0701ff22a984ce1b67910110194ed14ffa433b44a3be5111174d5695559","signature":"b3e9372b4dbae48465582902ca7446cd9ef9dae6092670eaa18af04d5c089c00"},{"version":"fadb42657de31f353a17a9cce4ca0bdb0424b58179197ce97f1f49313b35df93","signature":"4af44936bc7df88f3d8bbf0b250cf4fd76ad9d38bd2884db6ca9b0c97c42ce99"},{"version":"d609d8b0a013e2645316b975ab68855dfbd72cbd5311e0093c4f14d87defd34f","signature":"2698823199b9e32187daacb96108ed9a06e913d2e5347bf99ea2c1d1d33df20a"},{"version":"7a36aa9524ddda8bf096aefc2add840b999c739a6f9c162308bf4df67b1ea38e","signature":"deccd4cbb6aff120ec5e2ddc0b7ea148c882c6c90ac4fdd5b782fb22c69fd4b5"},{"version":"88a8deea4903f2b6219f77a2f8c30b1277852441f4f36d447f58acc9f565298f","signature":"f6bcea6d0ed15c89143a3362fc8d4f8f523da6c4da16bc4eef2859cb1b0be90d"},{"version":"961e703fe7be2fa3a307ccaf8e381de7444d22a6417bb3b811fbb59341ee3c6f","signature":"52ed0834eed3548ac5adff54c0ffb7cc33496d90f8aef9ba30dca85bc005d6c9"},{"version":"f1bd24334e503e833a2cecf306de16ba4c5cf2fefd6fda9d57c19d838f6cb8ec","signature":"35d0dad48d46ff699954fd32afe947a9191acfd3a0dbf1d9d75f4f8785d41cc3"},{"version":"8c2ac162973c67413b8a99dbcd493f0c35b341426a522e7422bdb510b0632ca7","signature":"e60e1e97c3bbcfcd8b1c9a1beff849fc749146da4fe2d17479c1e20a5cbacc6b"},{"version":"2cd71417c382c2f417294dfa0e34c1ed314b6976480087f7dd7980b793484a47","signature":"bb8f4231e89b77b07df78175e69051078407d14ad055fad1cf54aae3e2317567"},{"version":"f78f01d9d91f235cc7115fca9b3ba166128b6ff90efbfc31547aeb7960969330","signature":"0d9f56d99a1a600934a6a5e117dbcec7d88be7314d0b915ae34a3f3e852d0527"},{"version":"94ed2d1240b347c3f620642cde781b2048a7d17d5cf957e2379088a39d35418f","signature":"302280c749ac14a35a70667829db1fb7118cc298f4a9c98dbde1a69899158aeb"},{"version":"0ae539fcb9305ceed033478dad6057ca783cd05639a5ffec46236b181329b73d","signature":"fb2248233522d52bc64ce2a6cbbb7a48063c27fe937586687f86ec9e59f356be"},{"version":"b9181bea4a29329594d5c5a53bec78507fcc67ad0c5afa2a580dc51d6f19a4f7","signature":"4f7d54c603949113f45505330caae6f41e8dbb59841d4ae20b42307dc4579835"},"09df3b4f1c937f02e7fee2836d4c4d7a63e66db70fd4d4e97126f4542cc21d9d","7394959e5a741b185456e1ef5d64599c36c60a323207450991e7a42e08911419","5929864ce17fba74232584d90cb721a89b7ad277220627cc97054ba15a98ea8f","7180c03fd3cb6e22f911ce9ba0f8a7008b1a6ddbe88ccf16a9c8140ef9ac1686","25c8056edf4314820382a5fdb4bb7816999acdcb929c8f75e3f39473b87e85bc","54cb85a47d760da1c13c00add10d26b5118280d44d58e6908d8e89abbd9d7725","3e4825171442666d31c845aeb47fcd34b62e14041bb353ae2b874285d78482aa","c6fd2c5a395f2432786c9cb8deb870b9b0e8ff7e22c029954fabdd692bff6195","a967bfe3ad4e62243eb604bf956101e4c740f5921277c60debaf325c1320bf88","e9775e97ac4877aebf963a0289c81abe76d1ec9a2a7778dbe637e5151f25c5f3","471e1da5a78350bc55ef8cef24eb3aca6174143c281b8b214ca2beda51f5e04a","cadc8aced301244057c4e7e73fbcae534b0f5b12a37b150d80e5a45aa4bebcbd","385aab901643aa54e1c36f5ef3107913b10d1b5bb8cbcd933d4263b80a0d7f20","9670d44354bab9d9982eca21945686b5c24a3f893db73c0dae0fd74217a4c219","db3435f3525cd785bf21ec6769bf8da7e8a776be1a99e2e7efb5f244a2ef5fee","c3b170c45fc031db31f782e612adf7314b167e60439d304b49e704010e7bafe5","40383ebef22b943d503c6ce2cb2e060282936b952a01bea5f9f493d5fb487cc7","4893a895ea92c85345017a04ed427cbd6a1710453338df26881a6019432febdd","3a84b7cb891141824bd00ef8a50b6a44596aded4075da937f180c90e362fe5f6","13f6f39e12b1518c6650bbb220c8985999020fe0f21d818e28f512b7771d00f9","9b5369969f6e7175740bf51223112ff209f94ba43ecd3bb09eefff9fd675624a","4fe9e626e7164748e8769bbf74b538e09607f07ed17c2f20af8d680ee49fc1da","24515859bc0b836719105bb6cc3d68255042a9f02a6022b3187948b204946bd2","33203609eba548914dc83ddf6cadbc0bcb6e8ef89f6d648ca0908ae887f9fcc5","0db18c6e78ea846316c012478888f33c11ffadab9efd1cc8bcc12daded7a60b6","89167d696a849fce5ca508032aabfe901c0868f833a8625d5a9c6e861ef935d2","e53a3c2a9f624d90f24bf4588aacd223e7bec1b9d0d479b68d2f4a9e6011147f","339dc5265ee5ed92e536a93a04c4ebbc2128f45eeec6ed29f379e0085283542c","9f0a92164925aa37d4a5d9dd3e0134cff8177208dba55fd2310cd74beea40ee2","8bfdb79bf1a9d435ec48d9372dc93291161f152c0865b81fc0b2694aedb4578d","2e85db9e6fd73cfa3d7f28e0ab6b55417ea18931423bd47b409a96e4a169e8e6","c46e079fe54c76f95c67fb89081b3e399da2c7d109e7dca8e4b58d83e332e605","d32275be3546f252e3ad33976caf8c5e842c09cb87d468cb40d5f4cf092d1acc","4a0c3504813a3289f7fb1115db13967c8e004aa8e4f8a9021b95285502221bd1",{"version":"4d719cfab49ae4045d15cb6bed0f38ad3d7d6eb7f277d2603502a0f862ca3182","affectsGlobalScope":true},"cce1f5f86974c1e916ec4a8cab6eec9aa8e31e8148845bf07fbaa8e1d97b1a2c",{"version":"5a856afb15f9dc9983faa391dde989826995a33983c1cccb173e9606688e9709","affectsGlobalScope":true},"546ab07e19116d935ad982e76a223275b53bff7771dab94f433b7ab04652936e","7b43160a49cf2c6082da0465876c4a0b164e160b81187caeb0a6ca7a281e85ba",{"version":"aefb5a4a209f756b580eb53ea771cca8aad411603926f307a5e5b8ec6b16dcf6","affectsGlobalScope":true},"a40826e8476694e90da94aa008283a7de50d1dafd37beada623863f1901cb7fb","daece0d85f8783595463f509f7d82b03b2c210cc064cc793096b5f9c73a6db43","b86e1a45b29437f3a99bad4147cb9fe2357617e8008c0484568e5bb5138d6e13","b5b719a47968cd61a6f83f437236bb6fe22a39223b6620da81ef89f5d7a78fb7","42c431e7965b641106b5e25ab3283aa4865ca7bb9909610a2abfa6226e4348be","0b7e732af0a9599be28c091d6bd1cb22c856ec0d415d4749c087c3881ca07a56","b7fe70be794e13d1b7940e318b8770cd1fb3eced7707805318a2e3aaac2c3e9e",{"version":"2c71199d1fc83bf17636ad5bf63a945633406b7b94887612bba4ef027c662b3e","affectsGlobalScope":true},{"version":"bd27e23daf177808fc4b00c86f7d67d64dc42bbc3c855ea41bfed7a529150a1d","affectsGlobalScope":true},"3b4c85eea12187de9929a76792b98406e8778ce575caca8c574f06da82622c54","f788131a39c81e0c9b9e463645dd7132b5bc1beb609b0e31e5c1ceaea378b4df","0c236069ce7bded4f6774946e928e4b3601894d294054af47a553f7abcafe2c1","21894466693f64957b9bd4c80fa3ec7fdfd4efa9d1861e070aca23f10220c9b2","396a8939b5e177542bdf9b5262b4eee85d29851b2d57681fa9d7eae30e225830","21773f5ac69ddf5a05636ba1f50b5239f4f2d27e4420db147fc2f76a5ae598ac",{"version":"6ec93c745c5e3e25e278fa35451bf18ef857f733de7e57c15e7920ac463baa2a","affectsGlobalScope":true},"a5fe4cc622c3bf8e09ababde5f4096ceac53163eefcd95e9cd53f062ff9bb67a","30c2ec6abf6aaa60eb4f32fb1235531506b7961c6d1bdc7430711aec8fd85295","0f05c06ff6196958d76b865ae17245b52d8fe01773626ac3c43214a2458ea7b7",{"version":"603df4e91a0c2fd815c6619927468373fb00b6c13066334982ee684f5c7d40b2","affectsGlobalScope":true},{"version":"d48009cbe8a30a504031cc82e1286f78fed33b7a42abf7602c23b5547b382563","affectsGlobalScope":true},"7aaeb5e62f90e1b2be0fc4844df78cdb1be15c22b427bc6c39d57308785b8f10","3ba30205a029ebc0c91d7b1ab4da73f6277d730ca1fc6692d5a9144c6772c76b","d8dba11dc34d50cb4202de5effa9a1b296d7a2f4a029eec871f894bddfb6430d","8b71dd18e7e63b6f991b511a201fad7c3bf8d1e0dd98acb5e3d844f335a73634","01d8e1419c84affad359cc240b2b551fb9812b450b4d3d456b64cda8102d4f60","458b216959c231df388a5de9dcbcafd4b4ca563bc3784d706d0455467d7d4942","269929a24b2816343a178008ac9ae9248304d92a8ba8e233055e0ed6dbe6ef71","93452d394fdd1dc551ec62f5042366f011a00d342d36d50793b3529bfc9bd633","f8c87b19eae111f8720b0345ab301af8d81add39621b63614dfc2d15fd6f140a","831c22d257717bf2cbb03afe9c4bcffc5ccb8a2074344d4238bf16d3a857bb12",{"version":"24ba151e213906027e2b1f5223d33575a3612b0234a0e2b56119520bbe0e594b","affectsGlobalScope":true},{"version":"cbf046714f3a3ba2544957e1973ac94aa819fa8aa668846fa8de47eb1c41b0b2","affectsGlobalScope":true},"aa34c3aa493d1c699601027c441b9664547c3024f9dbab1639df7701d63d18fa","eae74e3d50820f37c72c0679fed959cd1e63c98f6a146a55b8c4361582fa6a52","7c651f8dce91a927ab62925e73f190763574c46098f2b11fb8ddc1b147a6709a","7440ab60f4cb031812940cc38166b8bb6fbf2540cfe599f87c41c08011f0c1df",{"version":"aed89e3c18f4c659ee8153a76560dffda23e2d801e1e60d7a67abd84bc555f8d","affectsGlobalScope":true},{"version":"527e6e7c1e60184879fe97517f0d51dbfab72c4625cef50179f27f46d7fd69a1","affectsGlobalScope":true},"e393915d3dc385e69c0e2390739c87b2d296a610662eb0b1cb85224e55992250","2f940651c2f30e6b29f8743fae3f40b7b1c03615184f837132b56ea75edad08b","5749c327c3f789f658072f8340786966c8b05ea124a56c1d8d60e04649495a4d",{"version":"c9d62b2a51b2ff166314d8be84f6881a7fcbccd37612442cf1c70d27d5352f50","affectsGlobalScope":true},"e7dbf5716d76846c7522e910896c5747b6df1abd538fee8f5291bdc843461795",{"version":"ab9b9a36e5284fd8d3bf2f7d5fcbc60052f25f27e4d20954782099282c60d23e","affectsGlobalScope":true},"652ee9c5103e89102d87bc20d167a02a0e3e5e53665674466c8cfea8a9e418c7"],"options":{"allowSyntheticDefaultImports":true,"composite":true,"declaration":true,"emitDeclarationOnly":false,"esModuleInterop":false,"experimentalDecorators":true,"importHelpers":true,"inlineSources":true,"module":1,"noEmitOnError":true,"noFallthroughCasesInSwitch":true,"noImplicitAny":false,"noImplicitReturns":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./","skipLibCheck":true,"sourceMap":true,"strict":true,"strictPropertyInitialization":false,"target":99},"fileIdsList":[[43,152],[43,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,123,152],[43,68,152],[43,49,68,152],[43,49,69,152],[43,58,68,69,70,71,152],[43,49,72,152],[43,72,152],[48,152],[74,152],[109,152],[110,115,143,152],[111,122,123,130,140,151,152],[111,112,122,130,152],[113,152],[114,115,123,131,152],[115,140,148,152],[116,118,122,130,152],[117,152],[118,119,152],[122,152],[120,122,152],[122,123,124,140,151,152],[122,123,124,137,140,143,152],[107,152,156],[152],[118,122,125,130,140,151,152],[122,123,125,126,130,140,148,151,152],[125,127,140,148,151,152],[74,75,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158],[122,128,152],[129,151,152,156],[118,122,130,140,152],[131,152],[132,152],[109,133,152],[134,150,152,156],[135,152],[136,152],[122,137,138,152],[137,139,152,154],[110,122,140,141,142,143,152],[110,140,142,152],[140,141,152],[143,152],[144,152],[109,140,152],[122,146,147,152],[146,147,152],[115,130,140,148,152],[149,152],[130,150,152],[110,125,136,151,152],[115,152],[140,152,153],[129,152,154],[152,155],[110,115,122,124,133,140,151,152,154,156],[140,152,157],[46,152],[44,45,111,122,123,140,152],[47,152],[84,88,151,152],[84,140,151,152],[79,152],[81,84,148,151,152],[130,148,152],[152,159],[79,152,159],[81,84,130,151,152],[76,77,80,83,110,122,140,151,152],[76,82,152],[80,84,110,143,151,152,159],[110,152,159],[100,110,152,159],[78,79,152,159],[84,152],[78,79,80,81,82,83,84,85,86,88,89,90,91,92,93,94,95,96,97,98,99,101,102,103,104,105,106,152],[84,91,92,152],[82,84,92,93,152],[83,152],[76,79,84,152],[84,88,92,93,152],[88,152],[82,84,87,151,152],[76,81,82,84,88,91,152],[110,140,152],[79,84,100,110,152,156,159],[46,49,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67],[46,68],[68],[49,68],[46,49],[58,68,69,70,71],[49,72],[72]],"referencedMap":[[58,1],[68,2],[69,1],[59,3],[54,3],[62,3],[53,3],[67,3],[63,3],[65,3],[55,3],[51,4],[64,3],[66,3],[52,3],[57,3],[61,3],[70,5],[60,3],[56,3],[72,6],[71,7],[73,8],[49,9],[74,10],[75,10],[109,11],[110,12],[111,13],[112,14],[113,15],[114,16],[115,17],[116,18],[117,19],[118,20],[119,20],[121,21],[120,22],[122,21],[123,23],[124,24],[108,25],[158,26],[125,27],[126,28],[127,29],[159,30],[128,31],[129,32],[130,33],[131,34],[132,35],[133,36],[134,37],[135,38],[136,39],[137,40],[138,40],[139,41],[140,42],[142,43],[141,44],[143,45],[144,46],[145,47],[146,48],[147,49],[148,50],[149,51],[150,52],[151,53],[152,54],[153,55],[154,56],[155,57],[156,58],[157,59],[44,26],[45,60],[46,61],[48,62],[47,60],[43,26],[8,26],[9,26],[11,26],[10,26],[2,26],[12,26],[13,26],[14,26],[15,26],[16,26],[17,26],[18,26],[19,26],[3,26],[4,26],[23,26],[20,26],[21,26],[22,26],[24,26],[25,26],[26,26],[5,26],[27,26],[28,26],[29,26],[30,26],[6,26],[31,26],[32,26],[33,26],[34,26],[7,26],[35,26],[40,26],[41,26],[36,26],[37,26],[38,26],[39,26],[1,26],[42,26],[91,63],[98,64],[90,63],[105,65],[82,66],[81,67],[104,68],[99,69],[102,70],[84,71],[83,72],[79,73],[78,74],[101,75],[80,76],[85,77],[86,26],[89,77],[76,26],[107,78],[106,77],[93,79],[94,80],[96,81],[92,82],[95,83],[100,68],[87,84],[88,85],[97,86],[77,87],[103,88],[50,1]],"exportedModulesMap":[[68,89],[59,90],[54,90],[62,91],[53,90],[67,91],[63,90],[65,90],[55,90],[51,92],[64,90],[66,90],[52,90],[57,90],[61,90],[70,93],[60,90],[56,90],[72,94],[71,95],[73,96],[49,9],[74,10],[75,10],[109,11],[110,12],[111,13],[112,14],[113,15],[114,16],[115,17],[116,18],[117,19],[118,20],[119,20],[121,21],[120,22],[122,21],[123,23],[124,24],[108,25],[158,26],[125,27],[126,28],[127,29],[159,30],[128,31],[129,32],[130,33],[131,34],[132,35],[133,36],[134,37],[135,38],[136,39],[137,40],[138,40],[139,41],[140,42],[142,43],[141,44],[143,45],[144,46],[145,47],[146,48],[147,49],[148,50],[149,51],[150,52],[151,53],[152,54],[153,55],[154,56],[155,57],[156,58],[157,59],[44,26],[45,60],[46,61],[48,62],[47,60],[43,26],[8,26],[9,26],[11,26],[10,26],[2,26],[12,26],[13,26],[14,26],[15,26],[16,26],[17,26],[18,26],[19,26],[3,26],[4,26],[23,26],[20,26],[21,26],[22,26],[24,26],[25,26],[26,26],[5,26],[27,26],[28,26],[29,26],[30,26],[6,26],[31,26],[32,26],[33,26],[34,26],[7,26],[35,26],[40,26],[41,26],[36,26],[37,26],[38,26],[39,26],[1,26],[42,26],[91,63],[98,64],[90,63],[105,65],[82,66],[81,67],[104,68],[99,69],[102,70],[84,71],[83,72],[79,73],[78,74],[101,75],[80,76],[85,77],[86,26],[89,77],[76,26],[107,78],[106,77],[93,79],[94,80],[96,81],[92,82],[95,83],[100,68],[87,84],[88,85],[97,86],[77,87],[103,88]],"semanticDiagnosticsPerFile":[58,68,69,59,54,62,53,67,63,65,55,51,64,66,52,57,61,70,60,56,72,71,73,49,74,75,109,110,111,112,113,114,115,116,117,118,119,121,120,122,123,124,108,158,125,126,127,159,128,129,130,131,132,133,134,135,136,137,138,139,140,142,141,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,44,45,46,48,47,43,8,9,11,10,2,12,13,14,15,16,17,18,19,3,4,23,20,21,22,24,25,26,5,27,28,29,30,6,31,32,33,34,7,35,40,41,36,37,38,39,1,42,91,98,90,105,82,81,104,99,102,84,83,79,78,101,80,85,86,89,76,107,106,93,94,96,92,95,100,87,88,97,77,103,50],"latestChangedDtsFile":"./lib/index.d.ts"},"version":"4.8.3"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@umbraco/playwright-testhelpers",
|
|
3
|
-
"version": "2.0.0-beta.
|
|
3
|
+
"version": "2.0.0-beta.6",
|
|
4
4
|
"description": "Test helpers for making playwright tests for Umbraco solutions",
|
|
5
5
|
"main": "dist/lib/index.js",
|
|
6
6
|
"files": ["dist/**/*"],
|
|
@@ -28,7 +28,8 @@
|
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@playwright/test": "^1.37",
|
|
30
30
|
"typescript": "^4.8.3",
|
|
31
|
-
"tslib": "^2.4.0"
|
|
31
|
+
"tslib": "^2.4.0",
|
|
32
|
+
"@types/node": "^20.9.0"
|
|
32
33
|
},
|
|
33
34
|
"dependencies": {
|
|
34
35
|
"@umbraco/json-models-builders": "^1.0.6",
|
|
@@ -36,7 +37,6 @@
|
|
|
36
37
|
"faker": "^4.1.0",
|
|
37
38
|
"form-data": "^4.0.0",
|
|
38
39
|
"node-fetch": "^2.6.7",
|
|
39
|
-
"xhr2": "^0.2.1"
|
|
40
|
-
"@types/node": "^7.0.5"
|
|
40
|
+
"xhr2": "^0.2.1"
|
|
41
41
|
}
|
|
42
42
|
}
|