Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hotfix/SUIT-21166 #205

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions packages/translate/lib/testLineResult.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,8 @@ const translateInvalidInputError = (result: InvalidInputError): Node => {
return defaultMessage;
case 'wrongDirection':
return <fragment>Invalid direction. See <link href="https://suite.st/docs/suitest-api/test-operations/#scroll">our docs</link> for more information</fragment>;
case 'invalidRegion':
return <text>Screen size limit exceeded</text>;
default:
const _code: never = message.code;
console.warn('invalidInput code was not handled', JSON.stringify(_code));
Expand Down
3 changes: 2 additions & 1 deletion packages/types/lib/testLineResult.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,8 @@ export type InvalidInputError = BaseResult & ({
code: 'lineTypeNotSupported' // Line is not supported by platform
| 'elementNotSupported' // Command is unsupported by element
| 'wrongExpression' // Faced when javascript expression subject value is undefined
| 'wrongDirection', // When line specified with unknown direction
| 'wrongDirection' // When line specified with unknown direction
| 'invalidRegion', // Specified region for ocr or image is out of bound device screen
},
} | {
errorType: 'invalidInput',
Expand Down