From ae3d1347ba0a3b2add81c919ed1dfaa31f767f7a Mon Sep 17 00:00:00 2001 From: Bhavya RM Date: Wed, 4 Mar 2020 13:58:25 -0500 Subject: [PATCH] calling exitFullScreenMode in test (#59238) (#59317) exitFullScreenMode in fullscreen dashboard test --- test/functional/apps/dashboard/full_screen_mode.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/test/functional/apps/dashboard/full_screen_mode.js b/test/functional/apps/dashboard/full_screen_mode.js index 69c0a05b8413b..df00f64530ca0 100644 --- a/test/functional/apps/dashboard/full_screen_mode.js +++ b/test/functional/apps/dashboard/full_screen_mode.js @@ -75,9 +75,7 @@ export default function({ getService, getPageObjects }) { }); it('exits when the text button is clicked on', async () => { - const logoButton = await PageObjects.dashboard.getExitFullScreenLogoButton(); - await logoButton.moveMouseTo(); - await PageObjects.dashboard.clickExitFullScreenTextButton(); + await PageObjects.dashboard.exitFullScreenMode(); await retry.try(async () => { const isChromeVisible = await PageObjects.common.isChromeVisible(); expect(isChromeVisible).to.be(true);