cumulocity-cypress
Version:
Cypress commands for Cumulocity IoT
849 lines (848 loc) • 233 kB
JSON
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"definitions": {
"Action": {
"additionalProperties": false,
"properties": {
"blur": {
"anyOf": [
{
"additionalProperties": false,
"properties": {
"selector": {
"anyOf": [
{
"additionalProperties": false,
"properties": {
"data-cy": {
"type": "string"
}
},
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"language": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "string"
}
],
"description": "The language(s) this selector is valid for. If the language of the application matches the language of the selector, the selector is used to select the element.\nIf language is not supported by the selector, the selector is ignored.",
"examples": [
"en",
"de",
[
"en",
"de"
]
]
}
},
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"localized": {
"additionalProperties": {
"type": "string"
},
"description": "Language key and localized selector mapping. Use for example to select elements based on the language of the application.",
"examples": [
{
"de": "span.label-info:not(:contains('Objekt'))",
"en": "span.label-info:not(:contains('Object'))"
}
],
"type": "object"
}
},
"type": "object"
},
{
"type": "string"
}
],
"description": "The selector to use to select the DOM element. The selector can be defined as string or an object with properties to select the element."
}
},
"required": [
"selector"
],
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"data-cy": {
"type": "string"
}
},
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"language": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "string"
}
],
"description": "The language(s) this selector is valid for. If the language of the application matches the language of the selector, the selector is used to select the element.\nIf language is not supported by the selector, the selector is ignored.",
"examples": [
"en",
"de",
[
"en",
"de"
]
]
}
},
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"localized": {
"additionalProperties": {
"type": "string"
},
"description": "Language key and localized selector mapping. Use for example to select elements based on the language of the application.",
"examples": [
{
"de": "span.label-info:not(:contains('Objekt'))",
"en": "span.label-info:not(:contains('Object'))"
}
],
"type": "object"
}
},
"type": "object"
},
{
"enum": [
true
],
"type": "boolean"
},
{
"type": "string"
}
],
"description": "A blur action triggers a blur event on the selected DOM element to remove focus."
},
"click": {
"anyOf": [
{
"additionalProperties": false,
"properties": {
"force": {
"default": false,
"description": "If true, the click event is triggered even if the element is not visible. The default is false.",
"type": "boolean"
},
"multiple": {
"default": false,
"description": "If true, the click event is triggered on all matching elements. The default is false.",
"type": "boolean"
},
"selector": {
"anyOf": [
{
"additionalProperties": false,
"properties": {
"data-cy": {
"type": "string"
}
},
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"language": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "string"
}
],
"description": "The language(s) this selector is valid for. If the language of the application matches the language of the selector, the selector is used to select the element.\nIf language is not supported by the selector, the selector is ignored.",
"examples": [
"en",
"de",
[
"en",
"de"
]
]
}
},
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"localized": {
"additionalProperties": {
"type": "string"
},
"description": "Language key and localized selector mapping. Use for example to select elements based on the language of the application.",
"examples": [
{
"de": "span.label-info:not(:contains('Objekt'))",
"en": "span.label-info:not(:contains('Object'))"
}
],
"type": "object"
}
},
"type": "object"
},
{
"type": "string"
}
],
"description": "The selector to use to select the DOM element. The selector can be defined as string or an object with properties to select the element."
}
},
"required": [
"selector"
],
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"data-cy": {
"type": "string"
},
"force": {
"default": false,
"description": "If true, the click event is triggered even if the element is not visible. The default is false.",
"type": "boolean"
},
"multiple": {
"default": false,
"description": "If true, the click event is triggered on all matching elements. The default is false.",
"type": "boolean"
}
},
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"force": {
"default": false,
"description": "If true, the click event is triggered even if the element is not visible. The default is false.",
"type": "boolean"
},
"language": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "string"
}
],
"description": "The language(s) this selector is valid for. If the language of the application matches the language of the selector, the selector is used to select the element.\nIf language is not supported by the selector, the selector is ignored.",
"examples": [
"en",
"de",
[
"en",
"de"
]
]
},
"multiple": {
"default": false,
"description": "If true, the click event is triggered on all matching elements. The default is false.",
"type": "boolean"
}
},
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"force": {
"default": false,
"description": "If true, the click event is triggered even if the element is not visible. The default is false.",
"type": "boolean"
},
"localized": {
"additionalProperties": {
"type": "string"
},
"description": "Language key and localized selector mapping. Use for example to select elements based on the language of the application.",
"examples": [
{
"de": "span.label-info:not(:contains('Objekt'))",
"en": "span.label-info:not(:contains('Object'))"
}
],
"type": "object"
},
"multiple": {
"default": false,
"description": "If true, the click event is triggered on all matching elements. The default is false.",
"type": "boolean"
}
},
"type": "object"
},
{
"type": "string"
}
],
"description": "A click action triggers a click event on the selected DOM element."
},
"fileUpload": {
"anyOf": [
{
"additionalProperties": false,
"properties": {
"encoding": {
"description": "The encoding of the file. If not provided, the encoding is determined automatically. Default is 'utf8' or 'binary' depending of file extension.",
"enum": [
"binary",
"utf-8",
"utf8"
],
"examples": [
[
"binary",
"utf8"
]
],
"type": "string"
},
"file": {
"description": "The path to the file to upload. Resolve the file path relative to the current working directory. Currently, only a single file of types .json, .txt, .csv, .png, .jpg, .jpeg, .gif can be uploaded. If file does not have required extension, overwrite extension in the fileName property.",
"type": "string"
},
"fileName": {
"description": "The name of the file to use when uploading including file extension. If not provided, the file name is determined from the file path.",
"examples": [
"file.txt"
],
"type": "string"
},
"force": {
"default": false,
"description": "If true, the file is uploaded even if the element is not visible. The default is false.",
"type": "boolean"
},
"mimeType": {
"description": "The MIME type of the file. If not provided, the MIME type is determined automatically.",
"examples": [
"application/json",
"text/csv",
"image/png"
],
"type": "string"
},
"selector": {
"anyOf": [
{
"additionalProperties": false,
"properties": {
"data-cy": {
"type": "string"
}
},
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"language": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "string"
}
],
"description": "The language(s) this selector is valid for. If the language of the application matches the language of the selector, the selector is used to select the element.\nIf language is not supported by the selector, the selector is ignored.",
"examples": [
"en",
"de",
[
"en",
"de"
]
]
}
},
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"localized": {
"additionalProperties": {
"type": "string"
},
"description": "Language key and localized selector mapping. Use for example to select elements based on the language of the application.",
"examples": [
{
"de": "span.label-info:not(:contains('Objekt'))",
"en": "span.label-info:not(:contains('Object'))"
}
],
"type": "object"
}
},
"type": "object"
},
{
"type": "string"
}
],
"description": "The selector to use to select the DOM element. The selector can be defined as string or an object with properties to select the element."
},
"subjectType": {
"default": "input",
"description": "The type of the file input element. The default is 'input'.",
"enum": [
"drag-n-drop",
"input"
],
"type": "string"
}
},
"required": [
"file",
"selector"
],
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"data-cy": {
"type": "string"
},
"encoding": {
"description": "The encoding of the file. If not provided, the encoding is determined automatically. Default is 'utf8' or 'binary' depending of file extension.",
"enum": [
"binary",
"utf-8",
"utf8"
],
"examples": [
[
"binary",
"utf8"
]
],
"type": "string"
},
"file": {
"description": "The path to the file to upload. Resolve the file path relative to the current working directory. Currently, only a single file of types .json, .txt, .csv, .png, .jpg, .jpeg, .gif can be uploaded. If file does not have required extension, overwrite extension in the fileName property.",
"type": "string"
},
"fileName": {
"description": "The name of the file to use when uploading including file extension. If not provided, the file name is determined from the file path.",
"examples": [
"file.txt"
],
"type": "string"
},
"force": {
"default": false,
"description": "If true, the file is uploaded even if the element is not visible. The default is false.",
"type": "boolean"
},
"mimeType": {
"description": "The MIME type of the file. If not provided, the MIME type is determined automatically.",
"examples": [
"application/json",
"text/csv",
"image/png"
],
"type": "string"
},
"subjectType": {
"default": "input",
"description": "The type of the file input element. The default is 'input'.",
"enum": [
"drag-n-drop",
"input"
],
"type": "string"
}
},
"required": [
"file"
],
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"encoding": {
"description": "The encoding of the file. If not provided, the encoding is determined automatically. Default is 'utf8' or 'binary' depending of file extension.",
"enum": [
"binary",
"utf-8",
"utf8"
],
"examples": [
[
"binary",
"utf8"
]
],
"type": "string"
},
"file": {
"description": "The path to the file to upload. Resolve the file path relative to the current working directory. Currently, only a single file of types .json, .txt, .csv, .png, .jpg, .jpeg, .gif can be uploaded. If file does not have required extension, overwrite extension in the fileName property.",
"type": "string"
},
"fileName": {
"description": "The name of the file to use when uploading including file extension. If not provided, the file name is determined from the file path.",
"examples": [
"file.txt"
],
"type": "string"
},
"force": {
"default": false,
"description": "If true, the file is uploaded even if the element is not visible. The default is false.",
"type": "boolean"
},
"language": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "string"
}
],
"description": "The language(s) this selector is valid for. If the language of the application matches the language of the selector, the selector is used to select the element.\nIf language is not supported by the selector, the selector is ignored.",
"examples": [
"en",
"de",
[
"en",
"de"
]
]
},
"mimeType": {
"description": "The MIME type of the file. If not provided, the MIME type is determined automatically.",
"examples": [
"application/json",
"text/csv",
"image/png"
],
"type": "string"
},
"subjectType": {
"default": "input",
"description": "The type of the file input element. The default is 'input'.",
"enum": [
"drag-n-drop",
"input"
],
"type": "string"
}
},
"required": [
"file"
],
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"encoding": {
"description": "The encoding of the file. If not provided, the encoding is determined automatically. Default is 'utf8' or 'binary' depending of file extension.",
"enum": [
"binary",
"utf-8",
"utf8"
],
"examples": [
[
"binary",
"utf8"
]
],
"type": "string"
},
"file": {
"description": "The path to the file to upload. Resolve the file path relative to the current working directory. Currently, only a single file of types .json, .txt, .csv, .png, .jpg, .jpeg, .gif can be uploaded. If file does not have required extension, overwrite extension in the fileName property.",
"type": "string"
},
"fileName": {
"description": "The name of the file to use when uploading including file extension. If not provided, the file name is determined from the file path.",
"examples": [
"file.txt"
],
"type": "string"
},
"force": {
"default": false,
"description": "If true, the file is uploaded even if the element is not visible. The default is false.",
"type": "boolean"
},
"localized": {
"additionalProperties": {
"type": "string"
},
"description": "Language key and localized selector mapping. Use for example to select elements based on the language of the application.",
"examples": [
{
"de": "span.label-info:not(:contains('Objekt'))",
"en": "span.label-info:not(:contains('Object'))"
}
],
"type": "object"
},
"mimeType": {
"description": "The MIME type of the file. If not provided, the MIME type is determined automatically.",
"examples": [
"application/json",
"text/csv",
"image/png"
],
"type": "string"
},
"subjectType": {
"default": "input",
"description": "The type of the file input element. The default is 'input'.",
"enum": [
"drag-n-drop",
"input"
],
"type": "string"
}
},
"required": [
"file"
],
"type": "object"
},
{
"type": "string"
}
],
"description": "Use the file upload action to upload a file using the file input element. Currently supported file types are .json, .txt, .csv, .png, .jpg, .jpeg, .gif."
},
"focus": {
"anyOf": [
{
"additionalProperties": false,
"properties": {
"selector": {
"anyOf": [
{
"additionalProperties": false,
"properties": {
"data-cy": {
"type": "string"
}
},
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"language": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "string"
}
],
"description": "The language(s) this selector is valid for. If the language of the application matches the language of the selector, the selector is used to select the element.\nIf language is not supported by the selector, the selector is ignored.",
"examples": [
"en",
"de",
[
"en",
"de"
]
]
}
},
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"localized": {
"additionalProperties": {
"type": "string"
},
"description": "Language key and localized selector mapping. Use for example to select elements based on the language of the application.",
"examples": [
{
"de": "span.label-info:not(:contains('Objekt'))",
"en": "span.label-info:not(:contains('Object'))"
}
],
"type": "object"
}
},
"type": "object"
},
{
"type": "string"
}
],
"description": "The selector to use to select the DOM element. The selector can be defined as string or an object with properties to select the element."
}
},
"required": [
"selector"
],
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"data-cy": {
"type": "string"
}
},
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"language": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "string"
}
],
"description": "The language(s) this selector is valid for. If the language of the application matches the language of the selector, the selector is used to select the element.\nIf language is not supported by the selector, the selector is ignored.",
"examples": [
"en",
"de",
[
"en",
"de"
]
]
}
},
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"localized": {
"additionalProperties": {
"type": "string"
},
"description": "Language key and localized selector mapping. Use for example to select elements based on the language of the application.",
"examples": [
{
"de": "span.label-info:not(:contains('Objekt'))",
"en": "span.label-info:not(:contains('Object'))"
}
],
"type": "object"
}
},
"type": "object"
},
{
"type": "string"
}
],
"description": "A focus action triggers a focus event on the selected DOM element."
},
"highlight": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"additionalProperties": false,
"properties": {
"border": {
"description": "The border style. Use any valid CSS border style. If provided an object, keys override the default border style.",
"examples": [
"1px solid red"
]
},
"clear": {
"default": false,
"description": "If true, existing highlights will be cleared before highlighting. The default is false.",
"type": "boolean"
},
"height": {
"description": "Overwrite the height of the highlighted element. If smaller than 1, the value is used as percentage of the element height.",
"type": "number"
},
"multiple": {
"default": false,
"description": "If true, the highlight is applied to all elements in the selection. The default is false.",
"type": "boolean"
},
"offset": {
"description": "The outline offset. The default is -2px.",
"type": "string"
},
"selector": {
"anyOf": [
{
"additionalProperties": false,
"properties": {
"data-cy": {