Fix "data-title" attribute in map embeddable (#88337)
This commit is contained in:
parent
d080128cde
commit
f33225d34d
|
@ -112,14 +112,20 @@ export class MapEmbeddable
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
this._initializeStore();
|
this._initializeStore();
|
||||||
this._initializeOutput();
|
try {
|
||||||
|
await this._initializeOutput();
|
||||||
|
} catch (e) {
|
||||||
|
this.onFatalError(e);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
this._isInitialized = true;
|
this._isInitialized = true;
|
||||||
if (this._domNode) {
|
if (this._domNode) {
|
||||||
this.render(this._domNode);
|
this.render(this._domNode);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private async _initializeStore() {
|
private _initializeStore() {
|
||||||
const store = this._savedMap.getStore();
|
const store = this._savedMap.getStore();
|
||||||
store.dispatch(setReadOnly(true));
|
store.dispatch(setReadOnly(true));
|
||||||
store.dispatch(disableScrollZoom());
|
store.dispatch(disableScrollZoom());
|
||||||
|
|
|
@ -55,6 +55,11 @@ export default function ({ getPageObjects, getService }) {
|
||||||
return requestTimestamp;
|
return requestTimestamp;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
it('should set "data-title" attribute', async () => {
|
||||||
|
const [{ title }] = await PageObjects.dashboard.getPanelSharedItemData();
|
||||||
|
expect(title).to.be('join example');
|
||||||
|
});
|
||||||
|
|
||||||
it('should pass index patterns to container', async () => {
|
it('should pass index patterns to container', async () => {
|
||||||
const indexPatterns = await filterBar.getIndexPatterns();
|
const indexPatterns = await filterBar.getIndexPatterns();
|
||||||
expect(indexPatterns).to.equal('meta_for_geo_shapes*,logstash-*');
|
expect(indexPatterns).to.equal('meta_for_geo_shapes*,logstash-*');
|
||||||
|
|
Loading…
Reference in a new issue