Skip to content
This repository was archived by the owner on Jul 29, 2024. It is now read-only.

feat(a11yPlugin): add support for Tenon.io #1867

Closed
wants to merge 1 commit into from

Conversation

marcysutton
Copy link
Contributor

As part of #1854, this change adds support for the Tenon accessibility testing framework. I removed my API key from the plugin config files, so the Protractor internal tests won't run against Tenon as-is. The Chrome Accessibility Dev Tools will still run, though.

One thing I noticed was that the accessibility-developer-tools package was missing from package.json. I added it back in along with the entities package for decoding HTML strings, which has no dependencies.

Console output for accessibility plugin

@marcysutton
Copy link
Contributor Author

One thing we will need to document: in Tenon, scripts have to be accessible from the page source as a string, for example loaded through a CDN. Otherwise Tenon won't be able to test expressions coming from Angular. I ran into this when supplying an alt attribute as an expression. To get around it for now, I just hard-coded a value.

* printAll: false, // whether the plugin should log API response
* },
* chromeA11YDevTools: false,
* path: 'node_modules/protractor.plugins/accessiblity'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo: .plugins instead of /plugins

@juliemr
Copy link
Member

juliemr commented Feb 27, 2015

Looks good overall, just a couple comments.

@marcysutton
Copy link
Contributor Author

@juliemr FYI I pushed all changes except for the duration thing, which I figured could come later. Let me know if there's anything else you'd like to see updated.

@juliemr juliemr added this to the 1.8.0 milestone Feb 27, 2015
@juliemr
Copy link
Member

juliemr commented Feb 27, 2015

Looks good. Merged as 13d34c9

@juliemr juliemr closed this Feb 27, 2015
@marcysutton
Copy link
Contributor Author

Woooot! 🎉 @karlgroves Tenon is merged into Protractor master!

@ginader
Copy link

ginader commented Feb 27, 2015

👍

@karlgroves
Copy link

w00t!

@marcysutton marcysutton deleted the a11y-tenon branch March 2, 2015 19:15
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants