[maps] fix blank screen when switching to Full Screen (#170915)

Fixes https://github.com/elastic/kibana/issues/170467

### test instructions
1. create new map
2. Click "Full screen"
3. Verify map is displayed
This commit is contained in:
Nathan Reese 2023-11-14 09:30:08 -07:00 committed by GitHub
parent b7bdb58e7c
commit 0d5f83da2b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 0 deletions

View file

@ -10,6 +10,11 @@
overflow: hidden;
}
.mapFullScreen {
// sass-lint:disable no-important
height: 100vh !important;
}
#react-maps-root {
flex-grow: 1;
display: flex;

View file

@ -11,6 +11,7 @@ export default function ({ getService, getPageObjects }) {
const PageObjects = getPageObjects(['maps', 'common']);
const retry = getService('retry');
const security = getService('security');
const testSubjects = getService('testSubjects');
describe('maps full screen mode', () => {
before(async () => {
@ -38,6 +39,10 @@ export default function ({ getService, getPageObjects }) {
});
});
it('layer control is visible', async () => {
expect(await testSubjects.isDisplayed('addLayerButton')).to.be(true);
});
it('displays exit full screen logo button', async () => {
const exists = await PageObjects.maps.exitFullScreenLogoButtonExists();
expect(exists).to.be(true);