From 390b751f8a0291053cc483005fe2f71c9fa43cd1 Mon Sep 17 00:00:00 2001 From: Lukas Hirt <lukashirt@mail.com> Date: Tue, 16 Jun 2020 10:38:02 +0200 Subject: [PATCH] Add id to logout item --- src/components/UserMenu.vue | 8 +++++++- tests/acceptance/pageObjects/phoenixPage.js | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/components/UserMenu.vue b/src/components/UserMenu.vue index f6d1fa2f871..4de2e3186e6 100644 --- a/src/components/UserMenu.vue +++ b/src/components/UserMenu.vue @@ -32,7 +32,13 @@ > </li> <li> - <router-link v-translate to="/" @click.native.prevent="logout">Log out</router-link> + <router-link + id="oc-topbar-account-logout" + v-translate + to="/" + @click.native.prevent="logout" + >Log out</router-link + > </li> </ul> </oc-drop> diff --git a/tests/acceptance/pageObjects/phoenixPage.js b/tests/acceptance/pageObjects/phoenixPage.js index 7901777910b..ae2bb7eabb9 100644 --- a/tests/acceptance/pageObjects/phoenixPage.js +++ b/tests/acceptance/pageObjects/phoenixPage.js @@ -229,7 +229,7 @@ module.exports = { locateStrategy: 'xpath' }, logoutMenuItem: { - selector: '#logoutMenuItem' + selector: '#oc-topbar-account-logout' }, messageCloseIcon: { selector: '.oc-alert-close-icon'