Implement Simulator::simulate and polish naming

This commit is contained in:
Héctor Ramón Jiménez 2024-12-17 01:37:00 +01:00
parent bfa722c662
commit 869b44db4e
No known key found for this signature in database
GPG key ID: 7CC46565708259A7
2 changed files with 61 additions and 47 deletions

View file

@ -611,8 +611,8 @@ mod tests {
let mut ui = simulator(&todos);
let _input = ui.click("new-task")?;
ui.typewrite("Create the universe");
ui.press_key(keyboard::key::Named::Enter);
let _ = ui.typewrite("Create the universe");
let _ = ui.tap_key(keyboard::key::Named::Enter);
for message in ui.into_messages() {
let _command = todos.update(message);