Skip to content

E2E: SDK reads wait and every second click is checked #1885

Backlog

Description

@vmillet-dev

Context — The review of #1883 found in the end-to-end SDK:

  • reads that do not wait: card_height, cards_apart and theme_offered answer 0 or nothing when the screen is not drawn yet;
  • leave_by_escape deciding on one read right after the key: a second Escape can reach the canvas;
  • tools().open("case") in journey 13, a piece of an author_id in a journey;
  • a step's name kept once it ends: a setup outside a step fails under the previous step's name, or none;
  • two-click deletions (a space, a folder, a selection, the trash's purge and emptying, Quit) made in one call, the first click never checked, and Trash::purge's check true whatever happened;
  • journey 11's reports checked on "" and "2";
  • dead code: Board::show_list, Code::flip_resolved, the server's /bytes, and a comment of crates/ui naming « scenario 34 ».

Change — Every read waits for what it reads; Escape is pressed as many times as the focus needs; a tool is opened by its name; a step's name lasts as long as the step and every setup is a step; a second click is made once the first one armed the button, which says so; journey 11 reads its reports in English; the dead code goes.

To do

  1. notes.rs, window.rs: the reads wait for their control.
  2. editor.rs: leave_by_escape reads where the keyboard is before pressing, then waits for the note to close.
  3. tools.rs: open by the name the catalogue gives, as expect_listed; journey 13 follows.
  4. lib.rs: step forgets its name when it ends; the setups of journeys 5, 7, 10 and 13 become steps.
  5. act.rs: click_twice reads the button's name, clicks, waits for the name to change, clicks again; used by every two-click act; purge checks the row is still there after the first click.
  6. Journey 11 chooses English first and reads « … notes imported », « Nothing to import ».
  7. Remove the dead code and fix the comment.

Tests

  • Journeys 2, 3, 5, 6, 7, 10, 11 and 13 green on Windows, Linux and macOS.

Activity

  1. added
    test
    on Dec 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    test

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions