@suitest/types
Advanced tools
Comparing version 3.0.6 to 4.0.0
export * from './appConfiguration'; | ||
export * from './queryLine'; | ||
export * from './comparator'; | ||
@@ -3,0 +4,0 @@ export * from './condition'; |
@@ -41,2 +41,3 @@ import {NumberComparator, StringComparator} from './comparator'; | ||
video?: boolean, | ||
psVideo?: boolean, | ||
ifMultipleFoundReturn?: number, | ||
@@ -43,0 +44,0 @@ }, |
@@ -18,3 +18,3 @@ import {Condition} from './condition'; | ||
timeout?: number | string, // String in case it's a variable | ||
then: AssertThen, | ||
then?: AssertThen, | ||
}; | ||
@@ -26,3 +26,3 @@ | ||
timeout: number | string, // String in case it's a variable | ||
then: AssertThen, | ||
then?: AssertThen, | ||
}; | ||
@@ -34,2 +34,8 @@ | ||
export type TakeScreenshotTestLine = BaseTestLine & { | ||
type: 'takeScreenshot', | ||
dataFormat?: 'raw' | 'base64', | ||
fileName?: string, | ||
}; | ||
export type ExecuteCommandTestLine = BaseTestLine & { | ||
@@ -184,2 +190,3 @@ type: 'execCmd', | ||
| SetTextTestLine | ||
| CommentTestLine; | ||
| CommentTestLine | ||
| TakeScreenshotTestLine; |
@@ -5,3 +5,3 @@ import {LineId} from './testLine'; | ||
export type TestLineResultType = 'success' | 'fail' | 'fatal' | 'warning' | 'exit' | 'excluded'; | ||
export type TestLineResultType = 'success' | 'fail' | 'fatal' | 'warning' | 'exit' | 'excluded' | 'aborted'; | ||
@@ -133,2 +133,3 @@ export type BaseResult = { | ||
| 'configuratorError' | ||
| 'appleNetworkLogsError' | ||
| 'appStoreBuild' | ||
@@ -141,3 +142,6 @@ | 'outdatedLibraryWarning' | ||
| 'MoveTargetOutOfBounds' | ||
| 'ElementClickIntercepted', | ||
| 'ElementClickIntercepted' | ||
| 'unsupportedOSVersion' | ||
| 'targetManagerUnsupportedVersion' | ||
| 'systemOutdated', | ||
}; | ||
@@ -356,5 +360,20 @@ | ||
}, | ||
} | { | ||
code: 'certificateError', | ||
}, | ||
}; | ||
export type QueryLineError = { | ||
contentType: 'query', | ||
result?: 'error', | ||
errorType?: 'deviceError', | ||
errorMessage?: 'cssSelectorInvalid', | ||
elementExists?: boolean, | ||
cookieExists?: boolean, | ||
executeThrowException?: boolean, | ||
executeExceptionMessage?: string, | ||
error?: 'notExistingElement', | ||
}; | ||
export type TestLineSuccessResult = BaseResult & { | ||
@@ -365,2 +384,11 @@ result: 'success', | ||
export type TestLineAbortedResult = BaseResult & { | ||
result: 'aborted', | ||
message?: { | ||
info?: unknown, | ||
}, | ||
errorType?: undefined, | ||
}; | ||
export type TestLineExcludedResult = BaseResult & { | ||
@@ -371,6 +399,10 @@ result: 'excluded', | ||
export type TestLineErrorResult = Exclude<TestLineResult, TestLineSuccessResult | TestLineExcludedResult>; | ||
export type TestLineErrorResult = Exclude< | ||
TestLineResult, | ||
TestLineSuccessResult | TestLineExcludedResult | TestLineAbortedResult | ||
>; | ||
export type TestLineResult = TestLineSuccessResult | ||
| TestLineExcludedResult | ||
| TestLineAbortedResult | ||
| SimpleError | ||
@@ -377,0 +409,0 @@ | OutdatedInstrumentationLibraryError |
{ | ||
"name": "@suitest/types", | ||
"version": "3.0.6", | ||
"version": "4.0.0", | ||
"description": "TypeScript definitions for common data structures", | ||
@@ -5,0 +5,0 @@ "homepage": "https://suite.st/", |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
21098
12
810
1