@uuv/runner-commons
Version:
A common lib for uuv
108 lines (106 loc) • 7.89 kB
JSON
{
"enriched": [
{
"key": "key.when.withinElement.roleAndName",
"description": "Selects the element whose [accessible role](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles#aria_role_types) and accessible [name](https://russmaxdesign.github.io/html-elements-names/) are specified <br />⚠ remember to deselect the element with <b>[I reset context](#i-reset-context)</b> if you're no longer acting on it",
"wording": "within $indefiniteArticle $roleName named {string}",
"section": "general"
},
{
"key": "key.then.element.withRoleAndName",
"description": "Checks that an Html element exists with the specified [accessible role](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles#aria_role_types) and [name](https://russmaxdesign.github.io/html-elements-names/)",
"wording": "I should see $indefiniteArticle $roleName named {string}",
"section": "general"
},
{
"key": "key.then.element.withRoleAndNameFocused",
"description": "Checks that the Html element with the specified [accessible role](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles#aria_role_types) and [name](https://russmaxdesign.github.io/html-elements-names/) is focused<br/><a target='_blank' href='https://github.com/e2e-test-quest/uuv/blob/main/example/en-keyboard.feature'>Examples</a>",
"wording": "I should see $indefiniteArticle $roleName named {string} keyboard focused",
"section": "keyboard"
},
{
"key": "key.then.element.nextWithRoleAndNameFocused",
"description": "Move to the next html element that can be reached with Tab and checks that the Html element with the specified [accessible role](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles#aria_role_types) and [name](https://russmaxdesign.github.io/html-elements-names/) is focused<br/><a target='_blank' href='https://github.com/e2e-test-quest/uuv/blob/main/example/en-keyboard.feature'>Examples</a>",
"wording": "the next keyboard element focused should be $indefiniteArticle $roleName named {string}",
"section": "keyboard"
},
{
"key": "key.then.element.previousWithRoleAndNameFocused",
"description": "Move to the previous html element that can be reached with Tab and checks that the Html element with the specified [accessible role](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles#aria_role_types) and [name](https://russmaxdesign.github.io/html-elements-names/) is focused<br/><a target='_blank' href='https://github.com/e2e-test-quest/uuv/blob/main/example/en-keyboard.feature'>Examples</a>",
"wording": "the previous keyboard element focused should be $indefiniteArticle $roleName named {string}",
"section": "keyboard"
},
{
"key": "key.then.element.not.withRoleAndName",
"description": "Checks that an Html element does not exists with the specified [accessible role](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles#aria_role_types) and [name](https://russmaxdesign.github.io/html-elements-names/)",
"wording": "I should not see $indefiniteArticle $roleName named {string}",
"section": "general"
},
{
"key": "key.then.element.withRoleAndNameAndContent",
"description": "Checks that an Html element exists with the specified [accessible role](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles#aria_role_types), [name](https://russmaxdesign.github.io/html-elements-names/) and content",
"wording": "I should see $indefiniteArticle $roleName named {string} and containing {string}",
"section": "contains"
},
{
"key": "key.then.element.withRoleAndNameAndValue",
"description": "Checks that an Form element(input) exists with the specified [accessible role](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles#aria_role_types), [name](https://russmaxdesign.github.io/html-elements-names/) and specified value",
"wording": "I should see $indefiniteArticle $roleName named {string} with value {string}",
"section": "contains"
},
{
"key": "key.then.element.withRoleAndNameAndContentDisabled",
"description": "Checks that an Html element exists with the specified [accessible role](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles#aria_role_types), [name](https://russmaxdesign.github.io/html-elements-names/) and content, and with the disabled attribute set to true",
"wording": "I should see $indefiniteArticle $roleName named {string} and containing {string} disabled",
"section": "contains"
},
{
"key": "key.then.element.withRoleAndNameAndContentEnabled",
"description": "Checks that an Html element exists with the specified [accessible role](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles#aria_role_types), [name](https://russmaxdesign.github.io/html-elements-names/) and content, and with the disabled attribute set to false",
"wording": "I should see $indefiniteArticle $roleName named {string} and containing {string} enabled",
"section": "contains"
},
{
"key": "key.then.element.withRoleAndNameDisabled",
"description": "Checks that an Html element exists with the specified [accessible role](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles#aria_role_types), [name](https://russmaxdesign.github.io/html-elements-names/), and with the disabled attribute set to true",
"wording": "I should see $indefiniteArticle $roleName named {string} disabled",
"section": "contains"
},
{
"key": "key.then.element.withRoleAndNameEnabled",
"description": "Checks that an Html element exists with the specified [accessible role](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles#aria_role_types), [name](https://russmaxdesign.github.io/html-elements-names/), and with the disabled attribute set to false",
"wording": "I should see $indefiniteArticle $roleName named {string} enabled",
"section": "contains"
},
{
"key": "key.when.type",
"description": "Writes the sentence given as a parameter inside the specified field (useful for example to fill in a form field)",
"wording": "I type the sentence {string} in $definiteArticle $roleName named {string}",
"section": "type"
},
{
"key": "key.then.element.withRoleAndNameAndChecked",
"description": "Checks that an Html element exists with the specified [accessible role](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles#aria_role_types) and [name](https://russmaxdesign.github.io/html-elements-names/) and is checked",
"wording": "I should see $indefiniteArticle $roleName named {string} checked",
"section": "checkable"
},
{
"key": "key.then.element.withRoleAndNameAndUnchecked",
"description": "Checks that an Html element exists with the specified [accessible role](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles#aria_role_types) and [name](https://russmaxdesign.github.io/html-elements-names/) and is unchecked",
"wording": "I should see $indefiniteArticle $roleName named {string} unchecked",
"section": "checkable"
},
{
"key": "key.when.enter",
"description": "Writes the sentence given as a parameter inside the specified field (useful for example to fill in a form field)",
"wording": "I enter the value {string} in $definiteArticle $roleName named {string}",
"section": "type"
},
{
"key": "key.when.click",
"description": "Triggers a click on the element with role $roleId and the specified name",
"wording": "I click on $roleName named {string}",
"section": "click"
}
]
}