This commit is contained in:
Nathan Bierema 2024-06-09 21:15:27 -04:00
parent d0f460f3ef
commit 8570230bec

View File

@ -53,12 +53,13 @@ describe('DevTools panel for Electron', function () {
return callback('Redux panel not found'); return callback('Redux panel not found');
} }
if (EUI.inspectorView) { if (EUI.inspectorView) {
const tabs = EUI.inspectorView.tabbedPane.tabs; const instance = EUI.InspectorView.InspectorView.instance();
const tabs = instance.tabbedPane.tabs;
const idList = tabs.map((tab) => tab.id); const idList = tabs.map((tab) => tab.id);
const reduxPanelId = const reduxPanelId =
'chrome-extension://lmhkpmbekcpmknklioeibfkpmmfibljdRedux'; 'chrome-extension://lmhkpmbekcpmknklioeibfkpmmfibljdRedux';
if (idList.indexOf(reduxPanelId) !== -1) { if (idList.indexOf(reduxPanelId) !== -1) {
EUI.inspectorView.showPanel(reduxPanelId); instance.showPanel(reduxPanelId);
return callback(reduxPanelId); return callback(reduxPanelId);
} }
} }