Add support for multi-page main menu
This commit is contained in:
@@ -63,7 +63,14 @@ async def cmd_appointments(proc, clinics='NPT-HEM/ONC ATTENDING', date='T', stor
|
||||
item['comment'] = '\r\n'.join(m.group(1) for m in re.finditer(r'^\s{15}(\w.*?)$', detail, re.MULTILINE))
|
||||
yield item
|
||||
proc.sendline('^Patient information AND OE/RR')
|
||||
assert await expect.endswith('\r\nSelect Patient Information and OE/RR Option: ', '\r\nSelect Patient Information and OE/RR <TEST ACCOUNT> Option: ')
|
||||
#assert await expect.endswith('\r\nSelect Patient Information and OE/RR Option: ', '\r\nSelect Patient Information and OE/RR <TEST ACCOUNT> Option: ')
|
||||
async for prompt, response in expect.promptmatches((
|
||||
(re.compile(r' Press \'RETURN\' to continue, \'\^\' to stop: $'), None),
|
||||
('Select Patient Information and OE/RR Option: ', None, True),
|
||||
('Select Patient Information and OE/RR <TEST ACCOUNT> Option: ', None, True),
|
||||
), throw=True):
|
||||
if prompt.index == 0:
|
||||
proc.sendline(response)
|
||||
expect.clear()
|
||||
|
||||
async def vista_appointment_clinics(proc, expect):
|
||||
|
Reference in New Issue
Block a user