You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Step-based DSL for E2E Tests with structured summary and cross-platform logging #63
Our current E2E tests are long, imperative, and difficult to understand sequentially. We want to improve readability, debugability, and CI observability without adopting full Gherkin or managing separate .feature files.
Requirements
Step-Based DSL
• Implement a utility step(description, fn) that wraps test actions.
• Each step should:
• Increase a global or scoped step counter
• Execute the provided function
• Log start and end of the step
• Log failure with context
• Tests should read as a series of narrative steps, improving readability.
Automatic Step Summary Generation
• Before a test runs, generate a numbered list of all steps (e.g., “1. Accept TOS”, “2. Restore wallet”).
• The summary should be easily readable (multiline string or array).
• Print the full step summary at the start of each test.
Optional Inline Documentation
• Consider adding a block comment at the top of each test summarizing the steps.
• This should match the automatically generated summary to avoid divergence.
Refactor Existing E2E Tests to Use the New DSL
• Apply the DSL to all onboarding tests first.
• Ensure logs and summaries appear correctly in both Android and iOS runs.
Activity