Skip to content

test: add comprehensive e2e scenario integration tests#49

Open
freema wants to merge 2 commits intomainfrom
feat/e2e-scenario-tests
Open

test: add comprehensive e2e scenario integration tests#49
freema wants to merge 2 commits intomainfrom
feat/e2e-scenario-tests

Conversation

@freema
Copy link
Copy Markdown
Collaborator

@freema freema commented Mar 28, 2026

Summary

  • Add 24 end-to-end integration tests covering the full FirefoxClient API
  • Add self-contained HTML fixture app (tests/fixtures/e2e-app.html) with Todo, Search, and Registration pages
  • Update README with testing documentation and known Firefox 148 startup crash (Bug 2027228)

Test coverage

Scenario What it tests
Todo App Workflow takeSnapshot, fillByUid, clickByUid, evaluate
Click Interactions clickByUid (double-click), hoverByUid
Multi-Page Navigation SPA page switching via UID clicks
Browser History navigateBack, navigateForward
Viewport Resize setViewportSize + relative dimension verification
Search Workflow fill + click + result verification
Form Submission fillByUid, fillFormByUid (batch), form submit
Console Monitoring getConsoleMessages, clearConsoleMessages (with waitFor)
Network Monitoring startNetworkMonitoring, getNetworkRequests, clearNetworkRequests
Screenshot takeScreenshotPage (base64 output)
Tab Management createNewPage, selectTab, closeTab, getTabs, refreshTabs
Stale UID Detection navigation invalidates old UIDs, clearSnapshot
Error Handling invalid UID format, unknown UID, stale snapshot UID

All tests are self-contained (no ordering dependencies) and use active polling (waitFor) instead of fixed sleeps for async events.

Test plan

  • All 24 e2e tests pass locally (macOS ARM64, Firefox 148.0.2)
  • Prettier formatted
  • CI run on this PR
  • Verify on Linux CI runner

Add 24 end-to-end tests covering the full FirefoxClient API against a
realistic multi-page web app fixture: todo CRUD, search, form submission,
click/dblclick/hover, browser history, viewport resize, console & network
monitoring, screenshots, tab management, stale UID detection, and error
handling. All tests are self-contained with no ordering dependencies.

Also update README with testing docs and known Firefox 148 startup crash
on macOS ARM64 (Bug 2027228).
@freema freema requested a review from juliandescottes March 28, 2026 03:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant