Browser plugin: successive Locator::dragTo ends before drop in WebKit
I maintainer di solito rispondono entro 5 giorni
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 48/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Tranquilla
- Stack tecnologico
- php, playwright
- Ambito
- testing-qa
Direzione di ricerca
Start with Pest\Browser\Playwright\Locator::dragTo() and the underlying AwaitableWebpage/Page mouse channel, then reproduce the two-drag WebKit sequence while recording the listed drag events. Compare the locator path with the bounded mouseMove/mouseDown/mouseUp path. Done means the second drag reaches the target and emits drop, or a supported public mouse API enables the successful path.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Description
In WebKit, a second HTML5 drag driven through Pest\Browser\Playwright\Locator::dragTo() can terminate before the
drop target receives any native drag event. The same product journey succeeds when driven through Playwright's Page mouse
channel with ordinary mouseMove / mouseDown / intermediate mouseMove / mouseUp events.
This appears after one successful drag, followed by opening a dialog and dragging a source from that dialog onto the same
canvas. The application uses Atlassian Pragmatic Drag and Drop, but its registrations remain live and the source/target
remain attached. Event telemetry for the failing second dragTo() shows dragstart followed by dragend, with no target
entry or drop. Replacing only the input driver with raw mouse events produces dragstart, drop, and dragend and the
unchanged product assertions pass.
Reproduction shape
- Drag a visible sidebar source onto a registered canvas target with
Locator::dragTo(). - Open a dialog containing another draggable source.
- Drag that dialog source onto the canvas with
Locator::dragTo(). - Record
dragstart, targetdragenter/dragover,drop, anddragend.
On WebKit, step 3 ends before target entry. A bounded sequence through the underlying Page mouse channel succeeds:
$send('mouseMove', ['x' => $sourceX, 'y' => $sourceY]);
$send('mouseDown', ['button' => 'left', 'clickCount' => 1]);
$send('mouseMove', ['x' => $sourceX + 5, 'y' => $sourceY + 5]);
foreach (range(1, 20) as $step) {
$progress = $step / 20;
$send('mouseMove', [
'x' => $sourceX + (($targetX - $sourceX) * $progress),
'y' => $sourceY + (($targetY - $sourceY) * $progress),
]);
}
$send('mouseUp', ['button' => 'left', 'clickCount' => 1]);
No force option is needed for the raw-mouse path. We fully consume the protocol generator after every command.
Expected behaviour
Locator::dragTo() should drive the same native drag lifecycle as a real pointer for successive WebKit drags, including
when the second source is inside a dialog.
If that cannot be guaranteed by the locator abstraction, a supported public mouse API on AwaitableWebpage/Page would
allow browser tests to express this journey without binding to Pest's internal Playwright client and Page GUID.
Environment
pestphp/pest-plugin-browser4.3.1- Playwright 1.61.1
- macOS 26.5.2
- Pest browser
--browser safari(Playwright WebKit)
The unchanged raw-mouse journey also passes in Chromium and Firefox, which we use as controls.
- Lingua principale
- PHP
- Stelle
- 11.8k
- Fork
- 559
- Merge medio
- 5g 23h
- PR unite (30g)
- 24
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di pestphp/pest
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 5 giorni
-
[Bug]: --mutate hides unreadable files, so mutants behind a failed read can never be killedForse di nuovo libera Una pull request per questa issue è stata chiusa senza essere unita. Apertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
I maintainer di solito rispondono entro 5 giorni
-
[Bug]: [mutate] Windows: @pest-mutate-ignore comments land on line 1 in files with LF line endingsForse già presa @webdevsamran l’ha presa 57 giorni fa. Apertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 5 giorni
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 80/100
I maintainer di solito rispondono entro 5 giorni
-
[pest-plugin-browser] Page::waitForLoadState() never sends its message — waitForEvent() is a silent no-opForse già presa @asllanmaciel l’ha presa 70 giorni fa. Apertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
pestphp/pest#1892 · 2 commenti ·
I maintainer di solito rispondono entro 5 giorni
Tutte le issue di pestphp/pest
Issue simili
-
Group 2 - Data Storage | Tripal DBX | Chado Group 5 - Search | ElasticSearch | Views Priority - Medium
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
-
nginx update required due to NGINX2RootForse già presa Una pull request collegata a questa issue è aperta o già unita. Aperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 65/100
mailcow/mailcow-dockerized#7668 · 5 commenti · 2 reazioni ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 77/100
lara-zeus/spatie-translatable#80 ·
I maintainer di solito rispondono entro 1 giorno
-
small
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
uiowa/uiowa#10296 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
asyncapi/modelina#2709 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno