pa11y({
actions: [
'click element #tab-1',
'wait for element #tab-1-content to be visible',
'set field #fullname to John Doe',
'check field #terms-and-conditions',
'uncheck field #subscribe-to-marketing',
'wait for fragment to be #page-2',
'wait for path to not be /login',
'wait for url to be https://example.com/'
]
});
We could add in a UI for this feature. We should draw some mockups of how this could be implemented.
Actions support was added into Pa11y in version 4.4.0. Updating to this version may break Koa11y, so we'll need to proceed carefully when exploring adding this feature.
Koa11y 3.0.0 ships with Node 5.12.0 built in. So we need to ensure that the version of Pa11y we are using does not require a version of Node newer than that, or we will need to drop support for a lot of legacy OS's.
Action "scripts" could be up to as many as 80 actions long.
Individual actions should be duplicatable and draggable to reduce clicks and time to enter a redundant/common action, such as "wait for"
Way to document your script as you go for organization + communication (to other users)
[IDEA] Ways to group actions into smaller actions of a whole
Method/action to group actions should be demonstrated with a GIF in the example section
[IDEA] input at the end of the action input to merge up or down with above or below actions
A way to add comments for further explaining what an action may do, such as "we are now within a modal".
Inputs need a grabber.
Grabber should not be on the same side, or a tab away, from the element used to group actions. If a user accidentally tabs too far and hits enter, they could break a group or move actions unintentionally --> poor usability.
https://github.com/pa11y/pa11y/blob/master/example/actions/index.js
We could add in a UI for this feature. We should draw some mockups of how this could be implemented.
Actions support was added into Pa11y in version 4.4.0. Updating to this version may break Koa11y, so we'll need to proceed carefully when exploring adding this feature.
Koa11y 3.0.0 ships with Node 5.12.0 built in. So we need to ensure that the version of Pa11y we are using does not require a version of Node newer than that, or we will need to drop support for a lot of legacy OS's.