calling exitFullScreenMode in test (#59238) (#59317)

exitFullScreenMode in fullscreen dashboard test
This commit is contained in:
Bhavya RM 2020-03-04 13:58:25 -05:00 committed by GitHub
parent 77f023f36f
commit ae3d1347ba
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);