QA: no way to test touch controls or mobile Safari (touch input, WebKit, iOS Simulator)
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 52/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- playwright, typescript
- Área
- testing
Línea de trabajo
Start at the $B browse commands and the /qa workflow, which today only resize a Chromium viewport via Emulation.setDeviceMetricsOverride. First slice: a device mode ($B device "iPhone 15") plus tap/swipe/pinch/touch built on Playwright device descriptors and CDP Input.dispatchTouchEvent. Then add Playwright WebKit as a browse/QA engine, and gate --mobile on Xcode presence by driving iOS Safari through safaridriver and xcrun simctl io with the listed quirks encoded. Done when the QA report gains a touch section listing devices, engines, gestures, emulated vs real, and flags iOS multi-touch as non-automatable.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Summary
gstack's QA and browse workflows can't test touch controls. responsive and the design-review captures only resize a Chromium viewport (Emulation.setDeviceMetricsOverride). Nothing in gstack can send touches, run Safari's engine (WebKit), or drive a real mobile browser. So for a phone or tablet feature, /qa can show what the page looks like at phone size, but not whether it works on a phone.
What happened
I was adding on-screen touch controls to a browser game (garrytan/bel-doom#4): a floating stick on the left half of the screen, plus FIRE, USE and strafe buttons, with multi-touch (run, turn and fire at once). gstack 1.91.27.0 had nothing for this, so I built three harnesses by hand:
- Playwright WebKit and Chromium with device descriptors (
devices['iPhone 15'],'iPad Pro 11','Pixel 7','Galaxy Tab S4', portrait and landscape):pointer: coarse,hasTouch, safe areas anddvhlayout, and a screenshot of each. - Multi-touch through CDP (
Input.dispatchTouchEventwith severaltouchPoints) on Chromium, to check that two fingers held at once give the union of their keys and that lifting one finger releases only its own keys. Playwright's WebKit has no multi-touch API, so there I had to dispatch syntheticPointerEvents. - Real iOS Safari in the Xcode iOS Simulator on the paired Mac, through
safaridriver(safari:useSimulator,safari:deviceUDID) and W3C actions withpointerType: 'touch', plusxcrun simctl io <udid> screenshot.
Number 3 was the only real-browser check, and it turned up several quirks that a skill should already know:
- Lifting a finger.
pointerUpis delivered only when the input state is released (DELETE /session/:id/actions). In an action chain that ends inpointerUp, the page seespointerdownand the moves; theuparrives at the release, at (0,0). - Gesture boundaries. A
pointerMovesent as a separate actions call after the finger is down shows up as anupthen adownat the new spot. So the reliable pattern is one action chain per gesture (down, moves, up), then read the page state, thenDELETE /actions. - One finger only. Two pointer sources in one actions call don't produce two simultaneous touches, so multi-touch on real iOS Safari can't be automated this way.
- Element clicks.
element/clickproduced a touch move but nopointerdown/clickon the button, so taps have to be coordinates fromgetBoundingClientRect. - Second simulator. With an iPhone simulator already booted, starting a session on an iPad simulator timed out ("Finding or launching a compatible remote Safari and waiting for its RWIApplication to appear"). It probably needs Safari launched on that device first, or the other simulator shut down.
- Fullscreen.
document.fullscreenEnabledwas true in iOS 18.7 Safari, andrequestFullscreen()from a touch worked: the viewport grew from 714 to 874 CSS px tall. The assumption that "iPhone Safari has no fullscreen" is out of date.
Proposal
- A touch-aware browse mode.
$B device "iPhone 15"(descriptor: viewport, DPR,hasTouch, mobile UA), plus$B tap x y | selector,$B swipe,$B pinch, and$B touchfor multi-finger sequences (CDPInput.dispatchTouchEventon Chromium). - WebKit as an engine choice for browse and QA, through Playwright WebKit (on Linux it needs
playwright install-deps webkit), so Safari layout and event bugs show up in cloud QA. /qa --mobile. When Xcode is present (on a paired Mac), run the flow in real iOS Safari viasafaridriverandsimctl, with the quirks above built in: one chain per gesture, release to lift, coordinate taps, and boot or launch Safari before creating a session. Report that multi-touch can't be automated there instead of skipping it silently. Use an Android emulator when the SDK is present.- A QA report section for touch. Devices and engines covered, gestures exercised, what's emulated versus a real browser, and what still needs a human on a physical device.
Environment
- Capy cloud machine (Ubuntu 24.04, Node 24, Playwright 1.63, WebKit 2359), plus a paired M4 Max Mac (Xcode, iOS 26.5 simulator runtime with Safari reporting iOS 18.7,
safaridriver). - gstack 1.91.27.0.
- Lenguaje dominante
- TypeScript
- Estrellas
- 143k
- Forks
- 21k
- Merge medio
- 5 h 25 min
- PR fusionados (30 d)
- 791
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de garrytan/gstack
-
Dificultad 3/5 1-2 días Aptitud para principiantes 72/100
garrytan/gstack#4971 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
enhancement S3
Dificultad 4/5 3-5 días Aptitud para principiantes 28/100
garrytan/gstack#4768 · 3 comentarios ·
Los mantenedores suelen responder en 1 día
-
enhancement S3
Dificultad 3/5 1-2 días Aptitud para principiantes 60/100
garrytan/gstack#4766 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
S3
Dificultad 3/5 1-2 días Aptitud para principiantes 35/100
garrytan/gstack#4765 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
enhancement S3
Dificultad 4/5 3-5 días Aptitud para principiantes 35/100
garrytan/gstack#4764 · 1 comentario ·
Los mantenedores suelen responder en 1 día
Todos los issues de garrytan/gstack
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 73/100
cloudhal-dev/podbay#235 ·
Los mantenedores suelen responder en 1 día
-
area: bio enhancement good first issue help wanted
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
Hilal-11/snaplnk.io#36 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 82/100
elecnix/bellwether#570 ·
Los mantenedores suelen responder en 1 día
-
enhancement good first issue help wanted
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
canblmz1/prefix-safe-json#135 ·
Los mantenedores suelen responder en 1 día
-
triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
ionic-team/capacitor#8759 ·
Los mantenedores suelen responder en 1 día