summaryrefslogtreecommitdiff
path: root/web-ui/src/common/flat_button/flat_button.spec.js
diff options
context:
space:
mode:
authorSriram Viswanathan <sriramv@thoughtworks.com>2017-03-24 14:39:43 -0300
committerSriram Viswanathan <sriramv@thoughtworks.com>2017-03-24 14:39:43 -0300
commitccc31c1e1867c37335ee3fbdd4bc729ad6917883 (patch)
tree3b85bd81921e65ca86892139a7564a4df535b314 /web-ui/src/common/flat_button/flat_button.spec.js
parent4688646080ea8c7783f94371d2fe2f1dafb7b335 (diff)
|#973| Thais + Sriram | Adds title and aria label for the logout button on the header
Diffstat (limited to 'web-ui/src/common/flat_button/flat_button.spec.js')
-rw-r--r--web-ui/src/common/flat_button/flat_button.spec.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/web-ui/src/common/flat_button/flat_button.spec.js b/web-ui/src/common/flat_button/flat_button.spec.js
index 8939e3d9..16f03acb 100644
--- a/web-ui/src/common/flat_button/flat_button.spec.js
+++ b/web-ui/src/common/flat_button/flat_button.spec.js
@@ -18,6 +18,14 @@ describe('FlatButton', () => {
expect(flatButton.find('FlatButton').props().label).toEqual('Logout');
});
+ it('renders a FlatButton of type submit with title logout', () => {
+ expect(flatButton.find('FlatButton').props().title).toEqual('Logout');
+ });
+
+ it('renders a FlatButton of type submit with aria-label logout', () => {
+ expect(flatButton.find('FlatButton').props()['aria-label']).toEqual('Logout');
+ });
+
it('renders a FlatButton with given fontIcon class', () => {
expect(flatButton.find('FlatButton').props().icon.props.className).toEqual('fa fa-sign-out');
});