chore: Add data-test tag for deauthenticate dropdown button
This commit is contained in:
2 files changed
+5
-2
No files matched your search
@@ -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);
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user