(key: string)
| 2843 | on('prompt.submit', ($, e) => ({ text: e.text, context: e.context })) |
| 2844 | |
| 2845 | async function asked(key: string) { |
| 2846 | await world.clock.advance(Fixtures.SETTLE_MS) |
| 2847 | |
| 2848 | const text = Fixtures.textOf(await $.ui.render(Fixtures.PANE)) |
| 2849 | |
| 2850 | await $.ui.press({ plugin: 'diff', key }) |
| 2851 | await world.clock.settle() |
| 2852 | |
| 2853 | const sent = await $.prompt.submit(Fixtures.typedPromptOf('why?')) |
| 2854 | |
| 2855 | return { text, sent } |
| 2856 | } |
| 2857 | |
| 2858 | const toldAs = (name: string) => ({ |
| 2859 | context: [ |