This is not an exhaustive test. It tests the fundamental behaviour of the app in its two modes; accordion and tabs.
It aims to test that the jQuery tabs plugin:
The lack of a unit test meant we missed an error produced when jQuery was upgraded:
When upgrading jQuery again, this test will fail with the error:
Error: Syntax error, unrecognized expression: a[href$=#]
cc @nickcolley @gpeng
Add unit test for jQuery tabs plugin
This is not an exhaustive test. It tests the fundamental behaviour of
the app in its two modes; accordion and tabs.
* Runs set up code without error
* Configures tab links and panes
* Hides and shows panes when clicking links
When writing this test I noticed that the aria attributes it generates eg aria-controls and aria-labelledby don't appear to take into account that the plugin itself is altering the ID of tab pane elements (it appends -enhanced). I believe this means the aria attributes on tabs will be pointing at an element ID that does not exist on the page, making the tabs inaccessible.
@cfq can we test this?