1from agent import perceive, act, verify
2from devices import pixel_8, mbux
3
4@pytest.mark.vision
5def test_pay_button(device=pixel_8):
6 screen = perceive(device) # yolo-ui + moondream
7 pay = screen.find("pay_button", min_conf=0.9)
8 act.tap(pay)
9 assert verify(screen, "order summary is open")
10
11def test_climate_slider(device=mbux):
12 slider = perceive(device).find("climate")
13 act.drag(slider, to=22)
14 assert slider.value == 22
15
16
17def test_emotion(clip):
18 assert orukeet(clip).label in EMOTIONS # 77.4% unseen