From 22237958201fd81b46b05d8f005ebe789db0822b Mon Sep 17 00:00:00 2001 From: Susmitha Girumala Date: Mon, 10 Aug 2020 16:00:39 -0400 Subject: [PATCH] chore: Add data-test tag for deauthenticate dropdown button --- ui/core/app/templates/application.hbs | 5 ++++- ui/core/tests/acceptance/authentication-test.js | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/ui/core/app/templates/application.hbs b/ui/core/app/templates/application.hbs index 0f0b66871..8a88d8271 100644 --- a/ui/core/app/templates/application.hbs +++ b/ui/core/app/templates/application.hbs @@ -26,7 +26,10 @@ @iconOnly={{true}} @icon="user-square-fill" as |dropdown| > - + {{t 'actions.deauthenticate'}} diff --git a/ui/core/tests/acceptance/authentication-test.js b/ui/core/tests/acceptance/authentication-test.js index 478e2f1dd..ca997453c 100644 --- a/ui/core/tests/acceptance/authentication-test.js +++ b/ui/core/tests/acceptance/authentication-test.js @@ -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); });