@thinkwise/testwise 0.0.2-alpha.2 → 0.1.63
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/Testwise.ts +5 -1
- package/components/actionbar/Actionbar.ts +126 -18
- package/components/actionbar/ActionbarObjects.ts +46 -41
- package/components/filter/FilterForm.ts +1 -1
- package/components/filter/FindForm.ts +1 -1
- package/components/form/Form.ts +23 -24
- package/components/form/FormObjects.ts +25 -0
- package/components/grid/Grid.ts +88 -12
- package/components/grid/GridObjects.ts +16 -8
- package/components/index.ts +7 -3
- package/components/pop-up/PopUpComponent.ts +5 -1
- package/components/pop-up/{PopUpComponentModels.ts → PopUpComponentObjects.ts} +4 -0
- package/components/tab/BaseTab.ts +42 -0
- package/components/tab/BaseTabObjects.ts +23 -0
- package/components/tab/ComponentTab.ts +35 -0
- package/components/tab/ComponentTabObjects.ts +14 -0
- package/components/tab/DetailTab.ts +20 -0
- package/components/tab/DetailTabObjects.ts +10 -0
- package/components/task/TaskBar.ts +29 -9
- package/components/task/TaskBarObjects.ts +24 -0
- package/components/task/TaskTile.ts +28 -0
- package/components/task/TaskTileObjects.ts +20 -0
- package/controls/LookupDropdown.ts +54 -0
- package/controls/index.ts +1 -0
- package/dist/Testwise.js +4 -2
- package/dist/Testwise.js.map +1 -1
- package/dist/biome.json +52 -0
- package/dist/components/actionbar/Actionbar.d.ts +53 -7
- package/dist/components/actionbar/Actionbar.js +74 -14
- package/dist/components/actionbar/Actionbar.js.map +1 -1
- package/dist/components/actionbar/ActionbarObjects.d.ts +17 -4
- package/dist/components/actionbar/ActionbarObjects.js +35 -24
- package/dist/components/actionbar/ActionbarObjects.js.map +1 -1
- package/dist/components/filter/FilterForm.d.ts +5 -0
- package/dist/components/filter/FilterForm.js +10 -0
- package/dist/components/filter/FilterForm.js.map +1 -0
- package/dist/components/filter/FindForm.d.ts +5 -0
- package/dist/components/filter/FindForm.js +10 -0
- package/dist/components/filter/FindForm.js.map +1 -0
- package/dist/components/form/Form.d.ts +7 -5
- package/dist/components/form/Form.js +17 -25
- package/dist/components/form/Form.js.map +1 -1
- package/dist/components/form/FormObjects.d.ts +9 -0
- package/dist/components/form/FormObjects.js +20 -0
- package/dist/components/form/FormObjects.js.map +1 -0
- package/dist/components/grid/Grid.d.ts +25 -6
- package/dist/components/grid/Grid.js +80 -16
- package/dist/components/grid/Grid.js.map +1 -1
- package/dist/components/grid/GridObjects.d.ts +5 -3
- package/dist/components/grid/GridObjects.js +9 -6
- package/dist/components/grid/GridObjects.js.map +1 -1
- package/dist/components/index.d.ts +7 -3
- package/dist/components/index.js +7 -3
- package/dist/components/index.js.map +1 -1
- package/dist/components/pop-up/PopUpComponent.d.ts +2 -0
- package/dist/components/pop-up/PopUpComponent.js +3 -1
- package/dist/components/pop-up/PopUpComponent.js.map +1 -1
- package/dist/components/pop-up/{PopUpComponentModels.d.ts → PopUpComponentObjects.d.ts} +2 -0
- package/dist/components/pop-up/{PopUpComponentModels.js → PopUpComponentObjects.js} +3 -1
- package/dist/components/pop-up/PopUpComponentObjects.js.map +1 -0
- package/dist/components/tab/BaseTab.d.ts +11 -0
- package/dist/components/tab/BaseTab.js +34 -0
- package/dist/components/tab/BaseTab.js.map +1 -0
- package/dist/components/tab/BaseTabObjects.d.ts +10 -0
- package/dist/components/tab/BaseTabObjects.js +14 -0
- package/dist/components/tab/BaseTabObjects.js.map +1 -0
- package/dist/components/tab/ComponentTab.d.ts +11 -0
- package/dist/components/tab/ComponentTab.js +27 -0
- package/dist/components/tab/ComponentTab.js.map +1 -0
- package/dist/components/tab/ComponentTabObjects.d.ts +7 -0
- package/dist/components/tab/ComponentTabObjects.js +10 -0
- package/dist/components/tab/ComponentTabObjects.js.map +1 -0
- package/dist/components/tab/DetailTab.d.ts +9 -0
- package/dist/components/tab/DetailTab.js +15 -0
- package/dist/components/tab/DetailTab.js.map +1 -0
- package/dist/components/tab/DetailTabObjects.d.ts +5 -0
- package/dist/components/tab/DetailTabObjects.js +7 -0
- package/dist/components/tab/DetailTabObjects.js.map +1 -0
- package/dist/components/task/TaskBar.d.ts +17 -0
- package/dist/components/task/TaskBar.js +23 -0
- package/dist/components/task/TaskBar.js.map +1 -0
- package/dist/components/task/TaskBarObjects.d.ts +17 -0
- package/dist/components/task/TaskBarObjects.js +19 -0
- package/dist/components/task/TaskBarObjects.js.map +1 -0
- package/dist/components/task/TaskTile.d.ts +14 -0
- package/dist/components/task/TaskTile.js +20 -0
- package/dist/components/task/TaskTile.js.map +1 -0
- package/dist/components/task/TaskTileObjects.d.ts +13 -0
- package/dist/components/task/TaskTileObjects.js +15 -0
- package/dist/components/task/TaskTileObjects.js.map +1 -0
- package/dist/config.json +10 -10
- package/dist/controls/LookupDropdown.d.ts +11 -0
- package/dist/controls/LookupDropdown.js +39 -0
- package/dist/controls/LookupDropdown.js.map +1 -0
- package/dist/controls/index.d.ts +1 -0
- package/dist/controls/index.js +2 -0
- package/dist/controls/index.js.map +1 -0
- package/dist/enums/LogLevel.d.ts +2 -3
- package/dist/enums/LogLevel.js +1 -2
- package/dist/enums/LogLevel.js.map +1 -1
- package/dist/enums/index.d.ts +1 -0
- package/dist/enums/index.js +2 -0
- package/dist/enums/index.js.map +1 -0
- package/dist/example-code/TestifyService.js +22 -12
- package/dist/example-code/TestifyService.js.map +1 -1
- package/dist/helpers/Ensure.d.ts +2 -0
- package/dist/helpers/Ensure.js +10 -0
- package/dist/helpers/Ensure.js.map +1 -0
- package/dist/helpers/FlightTracker.d.ts +6 -0
- package/dist/helpers/FlightTracker.js +25 -0
- package/dist/helpers/FlightTracker.js.map +1 -0
- package/dist/helpers/GlobalWaitEventHandler.d.ts +12 -0
- package/dist/helpers/GlobalWaitEventHandler.js +53 -0
- package/dist/helpers/GlobalWaitEventHandler.js.map +1 -0
- package/dist/helpers/LoginHelper.d.ts +3 -2
- package/dist/helpers/LoginHelper.js +20 -4
- package/dist/helpers/LoginHelper.js.map +1 -1
- package/dist/helpers/Poll.d.ts +2 -0
- package/dist/helpers/Poll.js +17 -0
- package/dist/helpers/Poll.js.map +1 -0
- package/dist/helpers/RegexHelper.d.ts +5 -0
- package/dist/helpers/RegexHelper.js +16 -0
- package/dist/helpers/RegexHelper.js.map +1 -0
- package/dist/helpers/UserSimulationHelper.d.ts +1 -1
- package/dist/helpers/UserSimulationHelper.js +10 -6
- package/dist/helpers/UserSimulationHelper.js.map +1 -1
- package/dist/helpers/index.d.ts +2 -0
- package/dist/helpers/index.js +3 -0
- package/dist/helpers/index.js.map +1 -0
- package/dist/index.d.ts +8 -12
- package/dist/index.js +9 -13
- package/dist/index.js.map +1 -1
- package/dist/package-lock.json +4087 -0
- package/dist/package.json +57 -0
- package/dist/page-extensions/GoToDeepLink.js +15 -1
- package/dist/page-extensions/GoToDeepLink.js.map +1 -1
- package/dist/page-extensions/LoginFeatures.d.ts +2 -1
- package/dist/page-extensions/LoginFeatures.js +3 -0
- package/dist/page-extensions/LoginFeatures.js.map +1 -1
- package/dist/page-extensions/WaitEventHandler.d.ts +12 -0
- package/dist/page-extensions/WaitEventHandler.js +15 -0
- package/dist/page-extensions/WaitEventHandler.js.map +1 -0
- package/dist/page-extensions/index.d.ts +3 -0
- package/dist/page-extensions/index.js +4 -0
- package/dist/page-extensions/index.js.map +1 -0
- package/dist/page-overrides/ClickOverride.d.ts +1 -0
- package/dist/page-overrides/ClickOverride.js +46 -25
- package/dist/page-overrides/ClickOverride.js.map +1 -1
- package/dist/page-overrides/FillOverride.d.ts +7 -0
- package/dist/page-overrides/FillOverride.js +106 -0
- package/dist/page-overrides/FillOverride.js.map +1 -0
- package/dist/page-overrides/index.d.ts +1 -0
- package/dist/page-overrides/index.js +2 -0
- package/dist/page-overrides/index.js.map +1 -0
- package/dist/scripts/Testwise.template.json +25 -0
- package/dist/services/ConfigBuilder.js +23 -1
- package/dist/services/ConfigBuilder.js.map +1 -1
- package/dist/services/Logger.d.ts +1 -2
- package/dist/services/Logger.js +69 -15
- package/dist/services/Logger.js.map +1 -1
- package/dist/services/index.d.ts +1 -0
- package/dist/services/index.js +2 -0
- package/dist/services/index.js.map +1 -0
- package/dist/tsconfig.json +20 -0
- package/dist/types/PollTypes.d.ts +6 -0
- package/dist/types/PollTypes.js +2 -0
- package/dist/types/PollTypes.js.map +1 -0
- package/dist/types/Universal.js +2 -0
- package/dist/types/Universal.js.map +1 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/types/index.js +3 -0
- package/dist/types/index.js.map +1 -0
- package/enums/LogLevel.ts +2 -3
- package/enums/index.ts +1 -0
- package/example-code/TestifyService.ts +26 -12
- package/helpers/Ensure.ts +9 -0
- package/helpers/FlightTracker.ts +26 -0
- package/helpers/GlobalWaitEventHandler.ts +66 -0
- package/helpers/LoginHelper.ts +26 -5
- package/helpers/Poll.ts +19 -0
- package/helpers/RegexHelper.ts +17 -0
- package/helpers/UserSimulationHelper.ts +11 -6
- package/helpers/index.ts +2 -0
- package/index.ts +9 -13
- package/package.json +21 -4
- package/page-extensions/GoToDeepLink.ts +17 -1
- package/page-extensions/LoginFeatures.ts +6 -1
- package/page-extensions/WaitEventHandler.ts +26 -0
- package/page-extensions/index.ts +3 -0
- package/page-overrides/ClickOverride.ts +60 -26
- package/page-overrides/FillOverride.ts +133 -0
- package/page-overrides/index.ts +1 -0
- package/promptCredentials.js +41 -30
- package/scripts/Testwise.template.json +7 -1
- package/scripts/add-config.js +2 -2
- package/services/ConfigBuilder.ts +27 -1
- package/services/Logger.ts +73 -15
- package/services/index.ts +1 -0
- package/tsconfig.json +20 -0
- package/types/PollTypes.ts +6 -0
- package/types/index.ts +2 -0
- package/.ci/azure-pipelines.yaml +0 -80
- package/.eslintcache +0 -1
- package/.gitattributes +0 -3
- package/.gitconfig +0 -2
- package/.vscode/settings.json +0 -18
- package/components/tab/Tab.ts +0 -29
- package/components/task/TaskTiles.ts +0 -11
- package/dist/components/pop-up/PopUpComponentModels.js.map +0 -1
- package/dist/enums/ActionbarRegions.d.ts +0 -5
- package/dist/enums/ActionbarRegions.js +0 -7
- package/dist/enums/ActionbarRegions.js.map +0 -1
- package/dist/enums/ButtonEnums.d.ts +0 -24
- package/dist/enums/ButtonEnums.js +0 -29
- package/dist/enums/ButtonEnums.js.map +0 -1
- package/dist/helpers/InflightRequestTracker.d.ts +0 -10
- package/dist/helpers/InflightRequestTracker.js +0 -26
- package/dist/helpers/InflightRequestTracker.js.map +0 -1
- package/dist/types/universal.js +0 -2
- package/dist/types/universal.js.map +0 -1
- package/enums/ActionbarRegions.ts +0 -5
- package/enums/ButtonEnums.ts +0 -28
- package/helpers/InflightRequestTracker.ts +0 -33
- /package/dist/types/{universal.d.ts → Universal.d.ts} +0 -0
- /package/types/{universal.ts → Universal.ts} +0 -0
package/services/Logger.ts
CHANGED
|
@@ -5,6 +5,46 @@ import { originalDebug, originalError, originalInfo, originalLog, originalWarn }
|
|
|
5
5
|
import { testwiseConfig } from './ConfigBuilder.js';
|
|
6
6
|
|
|
7
7
|
const logDir = path.resolve(process.cwd(), testwiseConfig().get<string>('featureSettings.logger.logDir') ?? 'logs');
|
|
8
|
+
const logLevel =
|
|
9
|
+
(testwiseConfig().get<string>('featureSettings.logger.logLevel')?.toUpperCase() as LogLevel) ?? LogLevel.ALL;
|
|
10
|
+
const applyLogLevelToConsoleOutput =
|
|
11
|
+
testwiseConfig().get<boolean>('featureSettings.logger.applyLogLevelToConsoleOutput') ?? false;
|
|
12
|
+
|
|
13
|
+
let logErrors = false;
|
|
14
|
+
let logWarnings = false;
|
|
15
|
+
let logInfo = false;
|
|
16
|
+
let logDebug = false;
|
|
17
|
+
let logLog = false;
|
|
18
|
+
|
|
19
|
+
switch (logLevel) {
|
|
20
|
+
case LogLevel.ERROR:
|
|
21
|
+
logErrors = true;
|
|
22
|
+
break;
|
|
23
|
+
case LogLevel.WARN:
|
|
24
|
+
logErrors = true;
|
|
25
|
+
logWarnings = true;
|
|
26
|
+
break;
|
|
27
|
+
case LogLevel.INFO:
|
|
28
|
+
logErrors = true;
|
|
29
|
+
logWarnings = true;
|
|
30
|
+
logInfo = true;
|
|
31
|
+
break;
|
|
32
|
+
case LogLevel.DEBUG:
|
|
33
|
+
logErrors = true;
|
|
34
|
+
logWarnings = true;
|
|
35
|
+
logInfo = true;
|
|
36
|
+
logDebug = true;
|
|
37
|
+
break;
|
|
38
|
+
case LogLevel.ALL:
|
|
39
|
+
logErrors = true;
|
|
40
|
+
logWarnings = true;
|
|
41
|
+
logInfo = true;
|
|
42
|
+
logDebug = true;
|
|
43
|
+
logLog = true;
|
|
44
|
+
break;
|
|
45
|
+
default:
|
|
46
|
+
throw new Error(`Unknown log level: ${logLevel}`);
|
|
47
|
+
}
|
|
8
48
|
|
|
9
49
|
fs.mkdirSync(logDir, { recursive: true });
|
|
10
50
|
|
|
@@ -19,12 +59,12 @@ const logFilePath = path.join(
|
|
|
19
59
|
let logBuffer: string[] = [];
|
|
20
60
|
const bufferSizeLimit = testwiseConfig().get<number>('featureSettings.logger.bufferSizeLimit') ?? 1000;
|
|
21
61
|
|
|
22
|
-
let
|
|
62
|
+
let _linesAlreadyWritten = 0;
|
|
23
63
|
|
|
24
64
|
if (fs.existsSync(logFilePath)) {
|
|
25
65
|
const existingLogs = fs.readFileSync(logFilePath, 'utf-8').split('\n').filter(Boolean);
|
|
26
66
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
27
|
-
|
|
67
|
+
_linesAlreadyWritten = existingLogs.length;
|
|
28
68
|
}
|
|
29
69
|
|
|
30
70
|
/**
|
|
@@ -57,32 +97,51 @@ function flushLogs() {
|
|
|
57
97
|
* @param level
|
|
58
98
|
* @param optionalParams
|
|
59
99
|
*/
|
|
60
|
-
function log(message?: string, level: LogLevel = LogLevel.
|
|
100
|
+
function log(message?: string, level: LogLevel = LogLevel.ALL, ...optionalParams: unknown[]): void {
|
|
61
101
|
const timestamp = new Date().toISOString();
|
|
62
102
|
const origin = getCallerInfo();
|
|
63
103
|
const formatted = `[${timestamp}] [${level}] [${origin}] ${message}`;
|
|
64
104
|
|
|
65
105
|
switch (level) {
|
|
66
|
-
case LogLevel.FATAL:
|
|
67
106
|
case LogLevel.ERROR:
|
|
68
|
-
|
|
107
|
+
if (logErrors) {
|
|
108
|
+
logBuffer.push(`${formatted} ${optionalParams}`);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
if (logErrors || !applyLogLevelToConsoleOutput) originalError(formatted, ...optionalParams);
|
|
69
112
|
break;
|
|
70
113
|
case LogLevel.WARN:
|
|
71
|
-
|
|
114
|
+
if (logWarnings) {
|
|
115
|
+
logBuffer.push(`${formatted} ${optionalParams}`);
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
if (logWarnings || !applyLogLevelToConsoleOutput) originalWarn(formatted, ...optionalParams);
|
|
72
119
|
break;
|
|
73
120
|
case LogLevel.DEBUG:
|
|
74
|
-
|
|
121
|
+
if (logDebug) {
|
|
122
|
+
logBuffer.push(`${formatted} ${optionalParams}`);
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
if (logDebug || !applyLogLevelToConsoleOutput) originalDebug(formatted, ...optionalParams);
|
|
75
126
|
break;
|
|
76
127
|
case LogLevel.INFO:
|
|
77
|
-
|
|
128
|
+
if (logInfo) {
|
|
129
|
+
logBuffer.push(`${formatted} ${optionalParams}`);
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
if (logInfo || !applyLogLevelToConsoleOutput) originalInfo(formatted, ...optionalParams);
|
|
78
133
|
break;
|
|
79
134
|
default:
|
|
80
|
-
|
|
81
|
-
|
|
135
|
+
if (logLog) {
|
|
136
|
+
logBuffer.push(`${formatted} ${optionalParams}`);
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
if (logLog || !applyLogLevelToConsoleOutput) originalLog(formatted, ...optionalParams);
|
|
82
140
|
}
|
|
83
141
|
|
|
84
|
-
logBuffer.
|
|
85
|
-
|
|
142
|
+
if (logBuffer.length >= bufferSizeLimit) {
|
|
143
|
+
flushLogs();
|
|
144
|
+
}
|
|
86
145
|
}
|
|
87
146
|
|
|
88
147
|
/**
|
|
@@ -116,10 +175,9 @@ function getCallerInfo(): string {
|
|
|
116
175
|
|
|
117
176
|
export const logger = {
|
|
118
177
|
// Order by severity level
|
|
119
|
-
fatal: (msg?: string, ...optionalParams: unknown[]): void => log(msg, LogLevel.FATAL, ...optionalParams),
|
|
120
178
|
error: (msg?: string, ...optionalParams: unknown[]): void => log(msg, LogLevel.ERROR, ...optionalParams),
|
|
121
179
|
warn: (msg?: string, ...optionalParams: unknown[]): void => log(msg, LogLevel.WARN, ...optionalParams),
|
|
122
|
-
step: (msg?: string, ...optionalParams: unknown[]): void => log(msg, LogLevel.STEP, ...optionalParams),
|
|
123
180
|
info: (msg?: string, ...optionalParams: unknown[]): void => log(msg, LogLevel.INFO, ...optionalParams),
|
|
124
|
-
debug: (msg?: string, ...optionalParams: unknown[]): void => log(msg, LogLevel.DEBUG, ...optionalParams)
|
|
181
|
+
debug: (msg?: string, ...optionalParams: unknown[]): void => log(msg, LogLevel.DEBUG, ...optionalParams),
|
|
182
|
+
log: (msg?: string, ...optionalParams: unknown[]): void => log(msg, LogLevel.ALL, ...optionalParams)
|
|
125
183
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './ConfigBuilder.js';
|
package/tsconfig.json
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"target": "ES2020",
|
|
4
|
+
"module": "nodenext",
|
|
5
|
+
"moduleResolution": "nodenext",
|
|
6
|
+
"esModuleInterop": true,
|
|
7
|
+
"allowSyntheticDefaultImports": true,
|
|
8
|
+
"outDir": "dist",
|
|
9
|
+
"declaration": true,
|
|
10
|
+
"sourceMap": true,
|
|
11
|
+
"resolveJsonModule": true,
|
|
12
|
+
"skipLibCheck": true,
|
|
13
|
+
"strict": true
|
|
14
|
+
},
|
|
15
|
+
"include": [
|
|
16
|
+
"**/*.ts",
|
|
17
|
+
"**/*.json"
|
|
18
|
+
],
|
|
19
|
+
"exclude": ["dist", "node_modules"]
|
|
20
|
+
}
|
package/types/index.ts
ADDED
package/.ci/azure-pipelines.yaml
DELETED
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
trigger:
|
|
2
|
-
- develop
|
|
3
|
-
|
|
4
|
-
pr:
|
|
5
|
-
- develop
|
|
6
|
-
|
|
7
|
-
pool: qa-testwise
|
|
8
|
-
|
|
9
|
-
variables:
|
|
10
|
-
- name: nodejs-version
|
|
11
|
-
value: 20.x
|
|
12
|
-
|
|
13
|
-
jobs:
|
|
14
|
-
# - job: build
|
|
15
|
-
# steps:
|
|
16
|
-
# - task: NodeTool@0
|
|
17
|
-
# inputs:
|
|
18
|
-
# versionSpec: $(nodejs-version)
|
|
19
|
-
# displayName: "Install Node.js version $(nodejs-version)"
|
|
20
|
-
#
|
|
21
|
-
# - task: Npm@1
|
|
22
|
-
# inputs:
|
|
23
|
-
# command: ...
|
|
24
|
-
#
|
|
25
|
-
# - task: PublishBuildArtifacts@1
|
|
26
|
-
# inputs:
|
|
27
|
-
# PathtoPublish: "$(Build.ArtifactStagingDirectory)"
|
|
28
|
-
# ArtifactName: "$(Build.Repository.Name)_$(Build.BuildId)"
|
|
29
|
-
|
|
30
|
-
- job: test_format
|
|
31
|
-
displayName: Test formatting
|
|
32
|
-
steps:
|
|
33
|
-
- task: NodeTool@0
|
|
34
|
-
inputs:
|
|
35
|
-
versionSpec: $(nodejs-version)
|
|
36
|
-
displayName: "Install Node.js version $(nodejs-version)"
|
|
37
|
-
|
|
38
|
-
- script: |
|
|
39
|
-
npm install @biomejs/biome @eslint/js eslint eslint-plugin-playwright typescript-eslint npm-run-all
|
|
40
|
-
displayName: "Install rule package dependencies"
|
|
41
|
-
|
|
42
|
-
- script: |
|
|
43
|
-
npm run format:check
|
|
44
|
-
displayName: "Run format:check command"
|
|
45
|
-
|
|
46
|
-
# - job: test
|
|
47
|
-
# displayName: Test
|
|
48
|
-
# steps:
|
|
49
|
-
# - task: NodeTool@0
|
|
50
|
-
# inputs:
|
|
51
|
-
# versionSpec: $(nodejs-version)
|
|
52
|
-
# displayName: "Install Node.js version $(nodejs-version)"
|
|
53
|
-
|
|
54
|
-
# - script: |
|
|
55
|
-
# npm install @biomejs/biome @eslint/js eslint eslint-plugin-playwright typescript-eslint npm-run-all
|
|
56
|
-
# displayName: "Install rule package dependencies"
|
|
57
|
-
|
|
58
|
-
# - script: |
|
|
59
|
-
# npm run test
|
|
60
|
-
# displayName: "Run test command"
|
|
61
|
-
|
|
62
|
-
- job: publish
|
|
63
|
-
displayName: Publish NPM package
|
|
64
|
-
condition: and(succeeded(), eq(variables['Publish'], 'true'))
|
|
65
|
-
steps:
|
|
66
|
-
- task: DownloadBuildArtifacts@1
|
|
67
|
-
inputs:
|
|
68
|
-
buildType: current
|
|
69
|
-
artifactName: $(Build.Repository.Name)_$(Build.BuildId)
|
|
70
|
-
|
|
71
|
-
- task: npmAuthenticate@0
|
|
72
|
-
displayName: Authenticate with npm
|
|
73
|
-
inputs:
|
|
74
|
-
workingFile: $(System.DefaultWorkingDirectory)/.npmrc
|
|
75
|
-
|
|
76
|
-
- task: Npm@1
|
|
77
|
-
name: publish
|
|
78
|
-
displayName: Publish NPM package to feed
|
|
79
|
-
inputs:
|
|
80
|
-
command: publish
|
package/.eslintcache
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
[{"C:\\Repos\\Testwise\\components\\actionbar\\Actionbar.ts":"1","C:\\Repos\\Testwise\\components\\actionbar\\ActionbarObjects.ts":"2","C:\\Repos\\Testwise\\components\\BaseComponent.ts":"3","C:\\Repos\\Testwise\\components\\filter\\FilterForm.ts":"4","C:\\Repos\\Testwise\\components\\filter\\FindForm.ts":"5","C:\\Repos\\Testwise\\components\\form\\Form.ts":"6","C:\\Repos\\Testwise\\components\\grid\\Grid.ts":"7","C:\\Repos\\Testwise\\components\\index.ts":"8","C:\\Repos\\Testwise\\components\\Splitter.ts":"9","C:\\Repos\\Testwise\\components\\tab\\Tab.ts":"10","C:\\Repos\\Testwise\\components\\task\\TaskBar.ts":"11","C:\\Repos\\Testwise\\components\\task\\TaskTiles.ts":"12","C:\\Repos\\Testwise\\components\\TSFComponent.ts":"13","C:\\Repos\\Testwise\\enums\\ActionbarRegions.ts":"14","C:\\Repos\\Testwise\\enums\\ButtonEnums.ts":"15","C:\\Repos\\Testwise\\enums\\LogLevel.ts":"16","C:\\Repos\\Testwise\\eslint-plugin-custom\\index.js":"17","C:\\Repos\\Testwise\\eslint-plugin-custom\\lib\\rules\\no-click-override.js":"18","C:\\Repos\\Testwise\\example-code\\TestifyService.ts":"19","C:\\Repos\\Testwise\\helpers\\InflightRequestTracker.ts":"20","C:\\Repos\\Testwise\\helpers\\LoginHelper.ts":"21","C:\\Repos\\Testwise\\helpers\\UserSimulationHelper.ts":"22","C:\\Repos\\Testwise\\index.ts":"23","C:\\Repos\\Testwise\\page-extensions\\GoToDeepLink.ts":"24","C:\\Repos\\Testwise\\page-extensions\\LoginFeatures.ts":"25","C:\\Repos\\Testwise\\page-extensions\\UserSimulation.ts":"26","C:\\Repos\\Testwise\\page-overrides\\ClickOverride.ts":"27","C:\\Repos\\Testwise\\promptCredentials.js":"28","C:\\Repos\\Testwise\\scripts\\add-config.js":"29","C:\\Repos\\Testwise\\services\\ConfigBuilder.ts":"30","C:\\Repos\\Testwise\\services\\Logger.ts":"31","C:\\Repos\\Testwise\\services\\ReportingService.ts":"32","C:\\Repos\\Testwise\\Testwise.ts":"33","C:\\Repos\\Testwise\\types\\CoreTypes.ts":"34","C:\\Repos\\Testwise\\types\\universal.ts":"35","C:\\Repos\\Testwise\\components\\BaseComponentObjects.ts":"36","C:\\Repos\\Testwise\\components\\export\\ExportComponent.ts":"37","C:\\Repos\\Testwise\\components\\export\\ExportComponentObjects.ts":"38","C:\\Repos\\Testwise\\components\\grid\\GridObjects.ts":"39","C:\\Repos\\Testwise\\components\\IComponentObjects.ts":"40","C:\\Repos\\Testwise\\components\\pop-up\\PopUpComponent.ts":"41","C:\\Repos\\Testwise\\components\\pop-up\\PopUpComponentModels.ts":"42","C:\\Repos\\Testwise\\enums\\ExportFormat.ts":"43"},{"size":2021,"mtime":1751522769257,"results":"44","hashOfConfig":"45"},{"size":2576,"mtime":1751528778595,"results":"46","hashOfConfig":"45"},{"size":3122,"mtime":1751522279073,"results":"47","hashOfConfig":"45"},{"size":330,"mtime":1748942441174,"results":"48","hashOfConfig":"45"},{"size":328,"mtime":1748942446381,"results":"49","hashOfConfig":"45"},{"size":1009,"mtime":1751522352486,"results":"50","hashOfConfig":"45"},{"size":8734,"mtime":1751550578515,"results":"51","hashOfConfig":"45"},{"size":226,"mtime":1751436619558,"results":"52","hashOfConfig":"45"},{"size":400,"mtime":1751522923371,"results":"53","hashOfConfig":"45"},{"size":818,"mtime":1748942461699,"results":"54","hashOfConfig":"45"},{"size":327,"mtime":1748942467360,"results":"55","hashOfConfig":"45"},{"size":329,"mtime":1748942472010,"results":"56","hashOfConfig":"45"},{"size":169,"mtime":1751522237806,"results":"57","hashOfConfig":"45"},{"size":88,"mtime":1750674713040,"results":"58","hashOfConfig":"45"},{"size":784,"mtime":1751264923809,"results":"59","hashOfConfig":"45"},{"size":155,"mtime":1748416363345,"results":"60","hashOfConfig":"45"},{"size":149,"mtime":1750248769915,"results":"61","hashOfConfig":"62"},{"size":926,"mtime":1750248769917,"results":"63","hashOfConfig":"62"},{"size":6919,"mtime":1749656149481,"results":"64","hashOfConfig":"45"},{"size":937,"mtime":1750164017577,"results":"65","hashOfConfig":"45"},{"size":4069,"mtime":1750674713042,"results":"66","hashOfConfig":"45"},{"size":2279,"mtime":1750674713045,"results":"67","hashOfConfig":"45"},{"size":1218,"mtime":1751375510261,"results":"68","hashOfConfig":"45"},{"size":672,"mtime":1748956696562,"results":"69","hashOfConfig":"45"},{"size":1335,"mtime":1748956696562,"results":"70","hashOfConfig":"45"},{"size":1293,"mtime":1748956696562,"results":"71","hashOfConfig":"45"},{"size":3582,"mtime":1750674713054,"results":"72","hashOfConfig":"45"},{"size":3269,"mtime":1750674713057,"results":"73","hashOfConfig":"62"},{"size":813,"mtime":1750674713059,"results":"74","hashOfConfig":"62"},{"size":1085,"mtime":1750248769941,"results":"75","hashOfConfig":"45"},{"size":4147,"mtime":1750674713062,"results":"76","hashOfConfig":"45"},{"size":1316,"mtime":1749656024091,"results":"77","hashOfConfig":"45"},{"size":726,"mtime":1750674713026,"results":"78","hashOfConfig":"79"},{"size":272,"mtime":1748956696592,"results":"80","hashOfConfig":"45"},{"size":731,"mtime":1748956696594,"results":"81","hashOfConfig":"45"},{"size":343,"mtime":1751522308836,"results":"82","hashOfConfig":"45"},{"size":2359,"mtime":1751375510251,"results":"83","hashOfConfig":"45"},{"size":869,"mtime":1751522504772,"results":"84","hashOfConfig":"45"},{"size":1851,"mtime":1751550591615,"results":"85","hashOfConfig":"45"},{"size":109,"mtime":1751522250137,"results":"86","hashOfConfig":"45"},{"size":437,"mtime":1751436619568,"results":"87","hashOfConfig":"45"},{"size":360,"mtime":1751436619568,"results":"88","hashOfConfig":"45"},{"size":75,"mtime":1751375510258,"results":"89","hashOfConfig":"45"},{"filePath":"90","messages":"91","suppressedMessages":"92","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"18jtond",{"filePath":"93","messages":"94","suppressedMessages":"95","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"96","messages":"97","suppressedMessages":"98","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"99","messages":"100","suppressedMessages":"101","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"102","messages":"103","suppressedMessages":"104","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"105","messages":"106","suppressedMessages":"107","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"108","messages":"109","suppressedMessages":"110","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"111","messages":"112","suppressedMessages":"113","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"114","messages":"115","suppressedMessages":"116","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"117","messages":"118","suppressedMessages":"119","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"120","messages":"121","suppressedMessages":"122","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"123","messages":"124","suppressedMessages":"125","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"126","messages":"127","suppressedMessages":"128","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"129","messages":"130","suppressedMessages":"131","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"132","messages":"133","suppressedMessages":"134","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"135","messages":"136","suppressedMessages":"137","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"138","messages":"139","suppressedMessages":"140","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"1fztyz0",{"filePath":"141","messages":"142","suppressedMessages":"143","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"144","messages":"145","suppressedMessages":"146","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"147","messages":"148","suppressedMessages":"149","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"150","messages":"151","suppressedMessages":"152","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"153","messages":"154","suppressedMessages":"155","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"156","messages":"157","suppressedMessages":"158","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"159","messages":"160","suppressedMessages":"161","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"162","messages":"163","suppressedMessages":"164","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"165","messages":"166","suppressedMessages":"167","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"168","messages":"169","suppressedMessages":"170","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"171","messages":"172","suppressedMessages":"173","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"174","messages":"175","suppressedMessages":"176","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"177","messages":"178","suppressedMessages":"179","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"180","messages":"181","suppressedMessages":"182","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"183","messages":"184","suppressedMessages":"185","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"186","messages":"187","suppressedMessages":"188","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"fxl6v2",{"filePath":"189","messages":"190","suppressedMessages":"191","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"192","messages":"193","suppressedMessages":"194","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"195","messages":"196","suppressedMessages":"197","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"198","messages":"199","suppressedMessages":"200","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"201","messages":"202","suppressedMessages":"203","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"204","messages":"205","suppressedMessages":"206","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"207","messages":"208","suppressedMessages":"209","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"210","messages":"211","suppressedMessages":"212","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"213","messages":"214","suppressedMessages":"215","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"216","messages":"217","suppressedMessages":"218","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"C:\\Repos\\Testwise\\components\\actionbar\\Actionbar.ts",[],[],"C:\\Repos\\Testwise\\components\\actionbar\\ActionbarObjects.ts",[],[],"C:\\Repos\\Testwise\\components\\BaseComponent.ts",[],[],"C:\\Repos\\Testwise\\components\\filter\\FilterForm.ts",[],[],"C:\\Repos\\Testwise\\components\\filter\\FindForm.ts",[],[],"C:\\Repos\\Testwise\\components\\form\\Form.ts",[],[],"C:\\Repos\\Testwise\\components\\grid\\Grid.ts",[],[],"C:\\Repos\\Testwise\\components\\index.ts",[],[],"C:\\Repos\\Testwise\\components\\Splitter.ts",[],[],"C:\\Repos\\Testwise\\components\\tab\\Tab.ts",[],[],"C:\\Repos\\Testwise\\components\\task\\TaskBar.ts",[],[],"C:\\Repos\\Testwise\\components\\task\\TaskTiles.ts",[],[],"C:\\Repos\\Testwise\\components\\TSFComponent.ts",[],[],"C:\\Repos\\Testwise\\enums\\ActionbarRegions.ts",[],[],"C:\\Repos\\Testwise\\enums\\ButtonEnums.ts",[],[],"C:\\Repos\\Testwise\\enums\\LogLevel.ts",[],[],"C:\\Repos\\Testwise\\eslint-plugin-custom\\index.js",[],[],"C:\\Repos\\Testwise\\eslint-plugin-custom\\lib\\rules\\no-click-override.js",[],["219"],"C:\\Repos\\Testwise\\example-code\\TestifyService.ts",[],["220","221","222","223","224"],"C:\\Repos\\Testwise\\helpers\\InflightRequestTracker.ts",[],[],"C:\\Repos\\Testwise\\helpers\\LoginHelper.ts",[],[],"C:\\Repos\\Testwise\\helpers\\UserSimulationHelper.ts",[],[],"C:\\Repos\\Testwise\\index.ts",[],[],"C:\\Repos\\Testwise\\page-extensions\\GoToDeepLink.ts",[],[],"C:\\Repos\\Testwise\\page-extensions\\LoginFeatures.ts",[],[],"C:\\Repos\\Testwise\\page-extensions\\UserSimulation.ts",[],[],"C:\\Repos\\Testwise\\page-overrides\\ClickOverride.ts",[],[],"C:\\Repos\\Testwise\\promptCredentials.js",[],[],"C:\\Repos\\Testwise\\scripts\\add-config.js",[],["225","226","227","228"],"C:\\Repos\\Testwise\\services\\ConfigBuilder.ts",[],[],"C:\\Repos\\Testwise\\services\\Logger.ts",[],["229"],"C:\\Repos\\Testwise\\services\\ReportingService.ts",[],[],"C:\\Repos\\Testwise\\Testwise.ts",[],[],"C:\\Repos\\Testwise\\types\\CoreTypes.ts",[],[],"C:\\Repos\\Testwise\\types\\universal.ts",[],[],"C:\\Repos\\Testwise\\components\\BaseComponentObjects.ts",[],[],"C:\\Repos\\Testwise\\components\\export\\ExportComponent.ts",[],[],"C:\\Repos\\Testwise\\components\\export\\ExportComponentObjects.ts",[],[],"C:\\Repos\\Testwise\\components\\grid\\GridObjects.ts",[],[],"C:\\Repos\\Testwise\\components\\IComponentObjects.ts",[],[],"C:\\Repos\\Testwise\\components\\pop-up\\PopUpComponent.ts",[],[],"C:\\Repos\\Testwise\\components\\pop-up\\PopUpComponentModels.ts",[],[],"C:\\Repos\\Testwise\\enums\\ExportFormat.ts",[],[],{"ruleId":"230","severity":2,"message":"231","line":21,"column":7,"nodeType":"232","messageId":"233","endLine":21,"endColumn":27,"suppressions":"234"},{"ruleId":"235","severity":2,"message":"236","line":49,"column":43,"nodeType":"237","messageId":"238","endLine":49,"endColumn":46,"suggestions":"239","suppressions":"240"},{"ruleId":"235","severity":2,"message":"236","line":120,"column":38,"nodeType":"237","messageId":"238","endLine":120,"endColumn":41,"suggestions":"241","suppressions":"242"},{"ruleId":"235","severity":2,"message":"236","line":132,"column":41,"nodeType":"237","messageId":"238","endLine":132,"endColumn":44,"suggestions":"243","suppressions":"244"},{"ruleId":"235","severity":2,"message":"236","line":160,"column":37,"nodeType":"237","messageId":"238","endLine":160,"endColumn":40,"suggestions":"245","suppressions":"246"},{"ruleId":"235","severity":2,"message":"236","line":170,"column":41,"nodeType":"237","messageId":"238","endLine":170,"endColumn":44,"suggestions":"247","suppressions":"248"},{"ruleId":"249","severity":2,"message":"250","line":9,"column":5,"nodeType":"232","messageId":"251","endLine":9,"endColumn":12,"suppressions":"252"},{"ruleId":"230","severity":2,"message":"253","line":10,"column":9,"nodeType":"232","messageId":"254","endLine":10,"endColumn":19,"suppressions":"255"},{"ruleId":"230","severity":2,"message":"256","line":11,"column":9,"nodeType":"232","messageId":"254","endLine":11,"endColumn":18,"suppressions":"257"},{"ruleId":"249","severity":2,"message":"250","line":12,"column":35,"nodeType":"232","messageId":"251","endLine":12,"endColumn":42,"suppressions":"258"},{"ruleId":"259","severity":2,"message":"260","line":27,"column":3,"nodeType":null,"messageId":"261","endLine":27,"endColumn":22,"suppressions":"262"},"@typescript-eslint/naming-convention","Object Literal Method name `AssignmentExpression` must match one of the following formats: camelCase","Identifier","doesNotMatchFormat",["263"],"@typescript-eslint/no-explicit-any","Unexpected any. Specify a different type.","TSAnyKeyword","unexpectedAny",["264","265"],["266"],["267","268"],["269"],["270","271"],["272"],["273","274"],["275"],["276","277"],["278"],"no-undef","'process' is not defined.","undef",["279"],"Variable name `__filename` trimmed as `_filename` must match one of the following formats: camelCase","doesNotMatchFormatTrimmed",["280"],"Variable name `__dirname` trimmed as `_dirname` must match one of the following formats: camelCase",["281"],["282"],"@typescript-eslint/no-unused-vars","'linesAlreadyWritten' is assigned a value but never used.","unusedVar",["283"],{"kind":"284","justification":"285"},{"messageId":"286","fix":"287","desc":"288"},{"messageId":"289","fix":"290","desc":"291"},{"kind":"284","justification":"285"},{"messageId":"286","fix":"292","desc":"288"},{"messageId":"289","fix":"293","desc":"291"},{"kind":"284","justification":"285"},{"messageId":"286","fix":"294","desc":"288"},{"messageId":"289","fix":"295","desc":"291"},{"kind":"284","justification":"285"},{"messageId":"286","fix":"296","desc":"288"},{"messageId":"289","fix":"297","desc":"291"},{"kind":"284","justification":"285"},{"messageId":"286","fix":"298","desc":"288"},{"messageId":"289","fix":"299","desc":"291"},{"kind":"284","justification":"285"},{"kind":"284","justification":"285"},{"kind":"284","justification":"285"},{"kind":"284","justification":"285"},{"kind":"284","justification":"285"},{"kind":"284","justification":"285"},"directive","","suggestUnknown",{"range":"300","text":"301"},"Use `unknown` instead, this will force you to explicitly, and safely assert the type is correct.","suggestNever",{"range":"302","text":"303"},"Use `never` instead, this is useful when instantiating generic type parameters that you don't need to know the type of.",{"range":"304","text":"301"},{"range":"305","text":"303"},{"range":"306","text":"301"},{"range":"307","text":"303"},{"range":"308","text":"301"},{"range":"309","text":"303"},{"range":"310","text":"301"},{"range":"311","text":"303"},[1685,1688],"unknown",[1685,1688],"never",[4281,4284],[4281,4284],[4713,4716],[4713,4716],[5701,5704],[5701,5704],[6041,6044],[6041,6044]]
|
package/.gitattributes
DELETED
package/.gitconfig
DELETED
package/.vscode/settings.json
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"editor.codeActionsOnSave": {
|
|
3
|
-
"source.fixAll.eslint": "explicit",
|
|
4
|
-
"source.organizeImports.biome": "explicit",
|
|
5
|
-
"source.fixAll.biome": "explicit"
|
|
6
|
-
},
|
|
7
|
-
"[typescript]": {
|
|
8
|
-
"editor.defaultFormatter": "biomejs.biome"
|
|
9
|
-
},
|
|
10
|
-
"cSpell.words": [
|
|
11
|
-
// Add words in alphabetical order
|
|
12
|
-
"Actionbar",
|
|
13
|
-
"Testwise",
|
|
14
|
-
"Thinkwise",
|
|
15
|
-
"translatemessage"
|
|
16
|
-
],
|
|
17
|
-
"files.eol": "\n",
|
|
18
|
-
}
|
package/components/tab/Tab.ts
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import type { Locator } from '@playwright/test';
|
|
2
|
-
import { BaseComponent } from '../BaseComponent';
|
|
3
|
-
|
|
4
|
-
export class Tab extends BaseComponent {
|
|
5
|
-
public async getLocator(context?: Locator): Promise<Locator> {
|
|
6
|
-
if (context) {
|
|
7
|
-
return context.locator(`[class*="${this.id}"]`);
|
|
8
|
-
}
|
|
9
|
-
return this.page.locator(`[class*="${this.id}"]`);
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
export class DetailTabPage extends BaseComponent {
|
|
14
|
-
public async getLocator(context?: Locator): Promise<Locator> {
|
|
15
|
-
if (context) {
|
|
16
|
-
return context.getByTestId(this.id);
|
|
17
|
-
}
|
|
18
|
-
return this.page.getByTestId(this.id);
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
export class ComponentTabPage extends BaseComponent {
|
|
23
|
-
public async getLocator(context?: Locator): Promise<Locator> {
|
|
24
|
-
if (context) {
|
|
25
|
-
return context.getByTestId(this.id);
|
|
26
|
-
}
|
|
27
|
-
return this.page.getByTestId(this.id);
|
|
28
|
-
}
|
|
29
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { Locator } from '@playwright/test';
|
|
2
|
-
import { BaseComponent } from '../BaseComponent';
|
|
3
|
-
|
|
4
|
-
export class TaskTiles extends BaseComponent {
|
|
5
|
-
public async getLocator(context?: Locator): Promise<Locator> {
|
|
6
|
-
if (context) {
|
|
7
|
-
return context.getByTestId(this.id);
|
|
8
|
-
}
|
|
9
|
-
return this.page.getByTestId(this.id);
|
|
10
|
-
}
|
|
11
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PopUpComponentModels.js","sourceRoot":"","sources":["../../../components/pop-up/PopUpComponentModels.ts"],"names":[],"mappings":"AAEA,MAAM,OAAO,qBAAqB;IAGhC,YAAY,IAAU;QAIf,mBAAc,GAAG,GAAG,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,WAAW,CAAC,sCAAsC,CAAC,CAAC;QAEtF,oBAAe,GAAG,GAAG,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,WAAW,CAAC,uCAAuC,CAAC,CAAC;QAL7F,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC;IACpB,CAAC;CAKF"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export var ActionbarRegion;
|
|
2
|
-
(function (ActionbarRegion) {
|
|
3
|
-
ActionbarRegion["Near"] = "near";
|
|
4
|
-
ActionbarRegion["Far"] = "far";
|
|
5
|
-
ActionbarRegion["Overflow"] = "overflow";
|
|
6
|
-
})(ActionbarRegion || (ActionbarRegion = {}));
|
|
7
|
-
//# sourceMappingURL=ActionbarRegions.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ActionbarRegions.js","sourceRoot":"","sources":["../../enums/ActionbarRegions.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,eAIX;AAJD,WAAY,eAAe;IACzB,gCAAa,CAAA;IACb,8BAAW,CAAA;IACX,wCAAqB,CAAA;AACvB,CAAC,EAJW,eAAe,KAAf,eAAe,QAI1B"}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
export declare enum ButtonType {
|
|
2
|
-
ADD = "actionbar__add",
|
|
3
|
-
SAVE = "actionbar__save",
|
|
4
|
-
CANCEL = "actionbar__cancel",
|
|
5
|
-
COPY = "actionbar__copy",
|
|
6
|
-
UPDATE = "actionbar__update",
|
|
7
|
-
DELETE = "actionbar__delete",
|
|
8
|
-
REFRESH = "actionbar__refresh",
|
|
9
|
-
QuickFilter = "actionbar__quick-filter",
|
|
10
|
-
Filter = "actionbar__filter",
|
|
11
|
-
ClearAllFilters = "actionbar__clear-filters",
|
|
12
|
-
Sort = "actionbar__sort",
|
|
13
|
-
RestoreSortOrder = "actionbar__restore-sort",
|
|
14
|
-
Import = "actionbar__import",
|
|
15
|
-
Export = "actionbar__export",
|
|
16
|
-
ExportImmediately = "actionbar__export-immediately",
|
|
17
|
-
MassUpdate = "actionbar__mass-update"
|
|
18
|
-
}
|
|
19
|
-
export declare enum ButtonState {
|
|
20
|
-
ENABLED = "enabled",
|
|
21
|
-
DISABLED = "disabled",
|
|
22
|
-
HIDDEN = "hidden",
|
|
23
|
-
NON_EXISTENT = "nonExistent"
|
|
24
|
-
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
export var ButtonType;
|
|
2
|
-
(function (ButtonType) {
|
|
3
|
-
// --- CRUD buttons ---
|
|
4
|
-
ButtonType["ADD"] = "actionbar__add";
|
|
5
|
-
ButtonType["SAVE"] = "actionbar__save";
|
|
6
|
-
ButtonType["CANCEL"] = "actionbar__cancel";
|
|
7
|
-
ButtonType["COPY"] = "actionbar__copy";
|
|
8
|
-
ButtonType["UPDATE"] = "actionbar__update";
|
|
9
|
-
ButtonType["DELETE"] = "actionbar__delete";
|
|
10
|
-
ButtonType["REFRESH"] = "actionbar__refresh";
|
|
11
|
-
// --- Overflow menu buttons
|
|
12
|
-
ButtonType["QuickFilter"] = "actionbar__quick-filter";
|
|
13
|
-
ButtonType["Filter"] = "actionbar__filter";
|
|
14
|
-
ButtonType["ClearAllFilters"] = "actionbar__clear-filters";
|
|
15
|
-
ButtonType["Sort"] = "actionbar__sort";
|
|
16
|
-
ButtonType["RestoreSortOrder"] = "actionbar__restore-sort";
|
|
17
|
-
ButtonType["Import"] = "actionbar__import";
|
|
18
|
-
ButtonType["Export"] = "actionbar__export";
|
|
19
|
-
ButtonType["ExportImmediately"] = "actionbar__export-immediately";
|
|
20
|
-
ButtonType["MassUpdate"] = "actionbar__mass-update";
|
|
21
|
-
})(ButtonType || (ButtonType = {}));
|
|
22
|
-
export var ButtonState;
|
|
23
|
-
(function (ButtonState) {
|
|
24
|
-
ButtonState["ENABLED"] = "enabled";
|
|
25
|
-
ButtonState["DISABLED"] = "disabled";
|
|
26
|
-
ButtonState["HIDDEN"] = "hidden";
|
|
27
|
-
ButtonState["NON_EXISTENT"] = "nonExistent";
|
|
28
|
-
})(ButtonState || (ButtonState = {}));
|
|
29
|
-
//# sourceMappingURL=ButtonEnums.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ButtonEnums.js","sourceRoot":"","sources":["../../enums/ButtonEnums.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,UAoBX;AApBD,WAAY,UAAU;IACpB,uBAAuB;IACvB,oCAAsB,CAAA;IACtB,sCAAwB,CAAA;IACxB,0CAA4B,CAAA;IAC5B,sCAAwB,CAAA;IACxB,0CAA4B,CAAA;IAC5B,0CAA4B,CAAA;IAC5B,4CAA8B,CAAA;IAE9B,4BAA4B;IAC5B,qDAAuC,CAAA;IACvC,0CAA4B,CAAA;IAC5B,0DAA4C,CAAA;IAC5C,sCAAwB,CAAA;IACxB,0DAA4C,CAAA;IAC5C,0CAA4B,CAAA;IAC5B,0CAA4B,CAAA;IAC5B,iEAAmD,CAAA;IACnD,mDAAqC,CAAA;AACvC,CAAC,EApBW,UAAU,KAAV,UAAU,QAoBrB;AAED,MAAM,CAAN,IAAY,WAKX;AALD,WAAY,WAAW;IACrB,kCAAmB,CAAA;IACnB,oCAAqB,CAAA;IACrB,gCAAiB,CAAA;IACjB,2CAA4B,CAAA;AAC9B,CAAC,EALW,WAAW,KAAX,WAAW,QAKtB"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { Page, Request } from '@playwright/test';
|
|
2
|
-
export declare class InflightRequestsTracker {
|
|
3
|
-
private _page;
|
|
4
|
-
private _requests;
|
|
5
|
-
constructor(page: Page);
|
|
6
|
-
_onStarted(request: Request): void;
|
|
7
|
-
_onFinished(request: Request): void;
|
|
8
|
-
inflightRequests(): Request[];
|
|
9
|
-
dispose(): void;
|
|
10
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
export class InflightRequestsTracker {
|
|
2
|
-
constructor(page) {
|
|
3
|
-
this._page = page;
|
|
4
|
-
this._requests = new Set();
|
|
5
|
-
this._onStarted = this._onStarted.bind(this);
|
|
6
|
-
this._onFinished = this._onFinished.bind(this);
|
|
7
|
-
this._page.on('request', this._onStarted);
|
|
8
|
-
this._page.on('requestfinished', this._onFinished);
|
|
9
|
-
this._page.on('requestfailed', this._onFinished);
|
|
10
|
-
}
|
|
11
|
-
_onStarted(request) {
|
|
12
|
-
this._requests.add(request);
|
|
13
|
-
}
|
|
14
|
-
_onFinished(request) {
|
|
15
|
-
this._requests.delete(request);
|
|
16
|
-
}
|
|
17
|
-
inflightRequests() {
|
|
18
|
-
return Array.from(this._requests);
|
|
19
|
-
}
|
|
20
|
-
dispose() {
|
|
21
|
-
this._page.removeListener('request', this._onStarted);
|
|
22
|
-
this._page.removeListener('requestfinished', this._onFinished);
|
|
23
|
-
this._page.removeListener('requestfailed', this._onFinished);
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
//# sourceMappingURL=InflightRequestTracker.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"InflightRequestTracker.js","sourceRoot":"","sources":["../../helpers/InflightRequestTracker.ts"],"names":[],"mappings":"AAEA,MAAM,OAAO,uBAAuB;IAIlC,YAAY,IAAU;QACpB,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC;QAClB,IAAI,CAAC,SAAS,GAAG,IAAI,GAAG,EAAE,CAAC;QAC3B,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAC7C,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAC/C,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,SAAS,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC;QAC1C,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,iBAAiB,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC;QACnD,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,eAAe,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC;IACnD,CAAC;IAED,UAAU,CAAC,OAAgB;QACzB,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;IAC9B,CAAC;IACD,WAAW,CAAC,OAAgB;QAC1B,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;IACjC,CAAC;IAED,gBAAgB;QACd,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;IACpC,CAAC;IAED,OAAO;QACL,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,SAAS,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC;QACtD,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,iBAAiB,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC;QAC/D,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,eAAe,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC;IAC/D,CAAC;CACF"}
|
package/dist/types/universal.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"universal.js","sourceRoot":"","sources":["../../types/universal.ts"],"names":[],"mappings":""}
|
package/enums/ButtonEnums.ts
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
export enum ButtonType {
|
|
2
|
-
// --- CRUD buttons ---
|
|
3
|
-
ADD = 'actionbar__add',
|
|
4
|
-
SAVE = 'actionbar__save',
|
|
5
|
-
CANCEL = 'actionbar__cancel',
|
|
6
|
-
COPY = 'actionbar__copy',
|
|
7
|
-
UPDATE = 'actionbar__update',
|
|
8
|
-
DELETE = 'actionbar__delete',
|
|
9
|
-
REFRESH = 'actionbar__refresh',
|
|
10
|
-
|
|
11
|
-
// --- Overflow menu buttons
|
|
12
|
-
QuickFilter = 'actionbar__quick-filter',
|
|
13
|
-
Filter = 'actionbar__filter',
|
|
14
|
-
ClearAllFilters = 'actionbar__clear-filters',
|
|
15
|
-
Sort = 'actionbar__sort',
|
|
16
|
-
RestoreSortOrder = 'actionbar__restore-sort',
|
|
17
|
-
Import = 'actionbar__import',
|
|
18
|
-
Export = 'actionbar__export',
|
|
19
|
-
ExportImmediately = 'actionbar__export-immediately',
|
|
20
|
-
MassUpdate = 'actionbar__mass-update'
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
export enum ButtonState {
|
|
24
|
-
ENABLED = 'enabled',
|
|
25
|
-
DISABLED = 'disabled',
|
|
26
|
-
HIDDEN = 'hidden',
|
|
27
|
-
NON_EXISTENT = 'nonExistent'
|
|
28
|
-
}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import type { Page, Request } from '@playwright/test';
|
|
2
|
-
|
|
3
|
-
export class InflightRequestsTracker {
|
|
4
|
-
private _page: Page;
|
|
5
|
-
private _requests: Set<Request>;
|
|
6
|
-
|
|
7
|
-
constructor(page: Page) {
|
|
8
|
-
this._page = page;
|
|
9
|
-
this._requests = new Set();
|
|
10
|
-
this._onStarted = this._onStarted.bind(this);
|
|
11
|
-
this._onFinished = this._onFinished.bind(this);
|
|
12
|
-
this._page.on('request', this._onStarted);
|
|
13
|
-
this._page.on('requestfinished', this._onFinished);
|
|
14
|
-
this._page.on('requestfailed', this._onFinished);
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
_onStarted(request: Request) {
|
|
18
|
-
this._requests.add(request);
|
|
19
|
-
}
|
|
20
|
-
_onFinished(request: Request) {
|
|
21
|
-
this._requests.delete(request);
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
inflightRequests(): Request[] {
|
|
25
|
-
return Array.from(this._requests);
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
dispose() {
|
|
29
|
-
this._page.removeListener('request', this._onStarted);
|
|
30
|
-
this._page.removeListener('requestfinished', this._onFinished);
|
|
31
|
-
this._page.removeListener('requestfailed', this._onFinished);
|
|
32
|
-
}
|
|
33
|
-
}
|
|
File without changes
|
|
File without changes
|