fix(e2e): derniers tests split-view + Forge - dropdown autocomplete, transferTab menu, drag natif
CI / lint (push) Successful in 29s
CI / security (push) Successful in 21s
CI / test (push) Successful in 33s
CI / build (push) Successful in 12s
CI / e2e (push) Failing after 6m35s
Desktop Build / build-windows (push) Canceled after 0s
Desktop Build / build-linux (push) Canceled after 0s
CI / lint (push) Successful in 29s
CI / security (push) Successful in 21s
CI / test (push) Successful in 33s
CI / build (push) Successful in 12s
CI / e2e (push) Failing after 6m35s
Desktop Build / build-windows (push) Canceled after 0s
Desktop Build / build-linux (push) Canceled after 0s
- search.js : le dropdown d autocomplete ne se rouvre plus 500ms apres un hide (la recherche le rouvrait et bloquait les clics toolbar - test Forge) - ui.js + pane-manager.js : le split via menu contextuel ne transfert plus l onglet en synchrone (vidait le pane source -> auto-collapse -> grid disparu) - split-view.spec.js : navigation clavier attend la copie asynchrone (setTimeout 150ms qui reactivait pane 0) - split-view.spec.js : drag depuis l arbre via dragTo (drag natif HTML5)
This commit is contained in:
@@ -542,17 +542,12 @@ function createPaneTabManager(paneId) {
|
||||
if (action === 'splitRight') {
|
||||
if (pm && pm._hasAnyTab()) {
|
||||
pm.splitRight();
|
||||
// Transfer this specific tab to the new pane
|
||||
const newPaneId = pm.panes.length - 1;
|
||||
pm.transferTab(this.paneId, tabId, newPaneId);
|
||||
menu.remove(); return;
|
||||
}
|
||||
}
|
||||
else if (action === 'splitDown') {
|
||||
if (pm && pm._hasAnyTab()) {
|
||||
pm.splitDown();
|
||||
const newPaneId = pm.panes.length - 1;
|
||||
pm.transferTab(this.paneId, tabId, newPaneId);
|
||||
menu.remove(); return;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -179,6 +179,9 @@ export const AutocompleteDropdown = {
|
||||
},
|
||||
|
||||
show() {
|
||||
// Après un hide() récent (ex: recherche lancée), on ignore le re-show
|
||||
// du fetch de suggestions en attente — sinon le dropdown recouvre l'UI.
|
||||
if (this._suppressShowUntil && Date.now() < this._suppressShowUntil) return;
|
||||
if (this._dropdown) this._dropdown.hidden = false;
|
||||
},
|
||||
|
||||
@@ -186,6 +189,7 @@ export const AutocompleteDropdown = {
|
||||
if (this._dropdown) this._dropdown.hidden = true;
|
||||
state.dropdownActiveIndex = -1;
|
||||
state.dropdownItems = [];
|
||||
this._suppressShowUntil = Date.now() + 500;
|
||||
},
|
||||
|
||||
isVisible() {
|
||||
|
||||
@@ -2355,16 +2355,12 @@ export const TabManager = {
|
||||
if (action === "splitRight") {
|
||||
if (window.PaneManager && window.PaneManager._hasAnyTab && window.PaneManager._hasAnyTab()) {
|
||||
window.PaneManager.splitRight();
|
||||
const newPaneId = window.PaneManager.panes.length - 1;
|
||||
window.PaneManager.transferTab(0, tabId, newPaneId);
|
||||
menu.remove(); return;
|
||||
}
|
||||
}
|
||||
else if (action === "splitDown") {
|
||||
if (window.PaneManager && window.PaneManager._hasAnyTab && window.PaneManager._hasAnyTab()) {
|
||||
window.PaneManager.splitDown();
|
||||
const newPaneId = window.PaneManager.panes.length - 1;
|
||||
window.PaneManager.transferTab(0, tabId, newPaneId);
|
||||
menu.remove(); return;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user