-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
…41731) * hide top nav menu in full screen mode of maps and dashboard * Fixed dashboard full screen mode and added full screen mode test to maps
- Loading branch information
Liza Katz
authored
Jul 23, 2019
1 parent
3d04609
commit 8804085
Showing
8 changed files
with
88 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License; | ||
* you may not use this file except in compliance with the Elastic License. | ||
*/ | ||
|
||
import expect from '@kbn/expect'; | ||
|
||
export default function ({ getService, getPageObjects }) { | ||
const PageObjects = getPageObjects(['maps', 'common']); | ||
const browser = getService('browser'); | ||
const retry = getService('retry'); | ||
|
||
describe('full screen mode', () => { | ||
before(async () => { | ||
await PageObjects.maps.openNewMap(); | ||
}); | ||
|
||
it('full screen button should exist', async () => { | ||
const exists = await PageObjects.maps.fullScreenModeMenuItemExists(); | ||
expect(exists).to.be(true); | ||
}); | ||
|
||
it('hides the chrome', async () => { | ||
const isChromeVisible = await PageObjects.common.isChromeVisible(); | ||
expect(isChromeVisible).to.be(true); | ||
|
||
await PageObjects.maps.clickFullScreenMode(); | ||
|
||
await retry.try(async () => { | ||
const isChromeHidden = await PageObjects.common.isChromeHidden(); | ||
expect(isChromeHidden).to.be(true); | ||
}); | ||
}); | ||
|
||
it('displays exit full screen logo button', async () => { | ||
const exists = await PageObjects.maps.exitFullScreenLogoButtonExists(); | ||
expect(exists).to.be(true); | ||
}); | ||
|
||
it('exits when the text button is clicked on', async () => { | ||
const logoButton = await PageObjects.maps.getExitFullScreenLogoButton(); | ||
await browser.moveMouseTo(logoButton); | ||
await PageObjects.maps.clickExitFullScreenTextButton(); | ||
|
||
await retry.try(async () => { | ||
const isChromeVisible = await PageObjects.common.isChromeVisible(); | ||
expect(isChromeVisible).to.be(true); | ||
}); | ||
}); | ||
}); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters