mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-20 02:02:21 +00:00
Merge branch 'main' into fix/shortcuts-modifier-keys
This commit is contained in:
1214 files changed
+37676
-9143
No files matched your search
@@ -429,6 +429,31 @@ test('destroying the chrome inside Cockpit puts back the panels its entry closed
|
||||
assert.equal(data.classList.contains('collapsed'), false);
|
||||
});
|
||||
|
||||
test('Cockpit entry folds the Space Missions panel away and exit brings it back', () => {
|
||||
document.body.innerHTML = `<div id="space-missions-panel"></div>`;
|
||||
const store = usePanelChromeStore(createPinia());
|
||||
const chrome = panelChrome(store);
|
||||
const missions = document.getElementById('space-missions-panel');
|
||||
followPanelState(store, 'space-missions-panel', missions);
|
||||
chrome.enterCockpit();
|
||||
assert.equal(missions.classList.contains('collapsed'), true);
|
||||
chrome.exitCockpit();
|
||||
assert.equal(missions.classList.contains('collapsed'), false);
|
||||
chrome.destroy();
|
||||
});
|
||||
|
||||
test('a share link records whether the Space Missions panel is open', () => {
|
||||
document.body.innerHTML = `<div id="space-missions-panel"></div>`;
|
||||
const store = usePanelChromeStore(createPinia());
|
||||
const chrome = panelChrome(store);
|
||||
const state = chrome._buildSharePanelState();
|
||||
assert.deepEqual(
|
||||
state.specs.filter((spec) => spec.id === 'space-missions-panel'),
|
||||
[{ id: 'space-missions-panel', collapsed: false }],
|
||||
);
|
||||
chrome.destroy();
|
||||
});
|
||||
|
||||
test('the accordion closes peers through the real store, and opens them again', () => {
|
||||
document.body.innerHTML = `
|
||||
<div id="data-panel" data-panel-id="data-panel"></div>
|
||||
|
||||
Reference in new issue
Block a user