web: keep empty composer on one line and verify touch sizing

This commit is contained in:
2026-10-20 18:54:45 +01:00
parent 7e9b6771ef
commit 9f5437b5b0
4 changed files with 30 additions and 5 deletions
+4
View File
@@ -186,6 +186,10 @@ export async function launchChrome({ width = 1440, height = 900, chromePath } =
const api = {
targetId,
/** Emulate pointer capability only; this is not an OS keyboard test. */
async emulateTouch(enabled = true) {
await session("Emulation.setTouchEmulationEnabled", { enabled, maxTouchPoints: 1 });
},
/** Resize the emulated viewport at the driver's fixed device scale. */
async resize(width, height) {
await session("Emulation.setDeviceMetricsOverride", {