feat(device): 단축키로만 되던 일에 터치 단추 — 시트 입력줄 단추 줄(찾기 · 모두 같은 값 · 줄바꿈 · 고침 취소 · 오늘 · $ 돌리기) · B05 자유지정 [점 빼기] [끝] · B06 상세 · M02 나무 [여럿] · 공용 .ui-touch-only (기기대응 4-3)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Ji4nuyLVHcxrXWHTdb5nRD
This commit is contained in:
2026-10-13 13:45:53 +09:00
co-authored by Claude Opus 5.5
parent f5e7c839d0
commit a7cc8a304e
8 changed files with 122 additions and 6 deletions
+19 -1
View File
@@ -3,7 +3,7 @@
sub1 화면 서버(5174)에 견본 통합문서를 붙여 CDP 터치를 넣음:
① 톡 = 칸 고름 · 화면 자판 안 뜸(inputMode none) ② 고른 칸에서 끌기 = 범위
③ 안 고른 칸에서 끌기 = 고름 그대로(화면 밀기) ④ 두 번 톡 = 고침 · 자판 뜸(inputMode text)
⑤ ⋯ 단추(터치 모드) = 칸 메뉴
⑤ ⋯ 단추(터치 모드) = 칸 메뉴 ⑥ 자판 없는 단추 줄 · 🔍 = 찾기
"""
import urllib.request
@@ -75,6 +75,23 @@ def test_spreadsheet_touch_select_range_edit():
_touch(cdp, "touchEnd", [])
page.wait_for_timeout(450)
# ⑥ 자판 없는 단추 줄(4-3) — 6개 보임 · 🔍 = 찾기 칸 열림
n = page.evaluate(
"[...document.querySelectorAll('.ss-touch-keys > button')].filter(b => b.getClientRects().length).length"
)
assert n == 6, n
page.evaluate("document.querySelector('.ss-touch-keys > button').click()")
page.wait_for_function( # 찾기 칸은 늦게 불러옴(크기 예산)
"() => [...document.querySelectorAll('.ss-find__input')].some(e => e.getClientRects().length)",
timeout=10000,
)
page.keyboard.press("Escape")
page.evaluate("document.activeElement.blur()")
gx, gy, gw, gh = page.evaluate( # 찾기 칸이 자리를 먹어 격자가 옮겨졌을 수 있음
"(() => { const g = document.querySelector('.aislo-grid').getBoundingClientRect();"
" return [g.left, g.top, g.width, g.height]; })()"
)
a = (gx + 90, gy + 60)
tap(*a) # ① 고름
first = sel()
@@ -105,4 +122,5 @@ def test_spreadsheet_touch_select_range_edit():
assert page.evaluate(
"[...document.querySelectorAll('.ui-ctx-menu')].some(m => !m.hidden && m.getClientRects().length)"
)
browser.close()