chore: Add data-test tag for deauthenticate dropdown button

This commit is contained in:
Susmitha Girumala committed 2020-08-11 10:00:30 -04:00
1 parent 2509b6a270
commit 2223795820
2 files changed
+5 -2

No files matched your search

+4 -1
View File
@@ -26,7 +26,10 @@
@iconOnly={{true}}
@icon="user-square-fill" as |dropdown|
>
<dropdown.button {{on "click" (route-action "invalidateSession")}}>
<dropdown.button
data-test-deauthenticate
{{on "click" (route-action "invalidateSession")}}
>
{{t 'actions.deauthenticate'}}
</dropdown.button>
</utilities.dropdown>
@@ -164,7 +164,7 @@ module('Acceptance | authentication', function (hooks) {
await fillIn('[name="password"]', 'test');
await click('[type="submit"]');
assert.ok(currentSession().isAuthenticated);
await click('.rose-button-header-dropdown');
await click('[data-test-deauthenticate]');
assert.notOk(currentSession().isAuthenticated);
assert.equal(currentURL(), authMethodAuthenticateURL);
});