aboutsummaryrefslogtreecommitdiff
path: root/tools/ui_flow.py
diff options
context:
space:
mode:
Diffstat (limited to 'tools/ui_flow.py')
-rw-r--r--tools/ui_flow.py9
1 files changed, 5 insertions, 4 deletions
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")