From 1ebc828f30698c1661055e17483e8d50a139ed45 Mon Sep 17 00:00:00 2001 From: cirakg Date: Tue, 20 Oct 2026 12:16:59 +0200 Subject: test(codes): compare Aztec with aztec_code_generator, decode it and its screenshot Co-Authored-By: Claude Opus 5.5 --- tools/ui_flow.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'tools/ui_flow.py') diff --git a/tools/ui_flow.py b/tools/ui_flow.py index eea3e17..e54b530 100644 --- a/tools/ui_flow.py +++ b/tools/ui_flow.py @@ -65,6 +65,7 @@ MEMBER_QR = ( # source/app/Fixtures.mc: a version 6 QR ) PARCEL_DM = "PARCEL-FAKE-0042-7731" # source/app/Fixtures.mc: Data Matrix TICKET_PDF417 = "Boarding pass FAKE 0042 seat 12A" # source/app/Fixtures.mc: PDF417 +RAIL_AZTEC = "RAIL-FAKE-0042 Zone 1-3" # source/app/Fixtures.mc: Aztec QR_TIMEOUT_S = 30.0 # the QR is encoded in timer steps the first time @@ -432,8 +433,8 @@ def flow_lockout(f: Flow) -> None: def flow_code(f: Flow) -> None: - """The EAN-13 gym card (index 6), the QR (7), Data Matrix (8) and PDF417 (9) - cards: their screenshots must decode.""" + """The EAN-13 gym card (index 6), the QR (7), Data Matrix (8), PDF417 (9) + and Aztec (10) cards: their screenshots must decode.""" f.act() f.back() # leave the waiting PIN screen f.expect("list") @@ -455,8 +456,8 @@ def flow_code(f: Flow) -> None: if encoded is not None: print(f"[{f.sim.device_dir.name}] QR {encoded.group(1)} encoded in {encoded.group(2)} ms") f.shot("code_qr", expect_code=MEMBER_QR) - # Data Matrix (8) and PDF417 (9), also encoded as jobs the first time. - for name, expected in (("code_datamatrix", PARCEL_DM), ("code_pdf417", TICKET_PDF417)): + # Data Matrix (8), PDF417 (9) and Aztec (10), also encoded as jobs. + for name, expected in (("code_datamatrix", PARCEL_DM), ("code_pdf417", TICKET_PDF417), ("code_aztec", RAIL_AZTEC)): f.act() f.back() f.expect("list") -- cgit v1.2.3