Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor: Move assertions into 'Driver' protocol #88

Merged

Conversation

ftes
Copy link
Contributor

@ftes ftes commented Jun 17, 2024

Extracted from #74

Goal

Allow more flexibility for Driver implementations.

Background

Browser-based testing is inherently decoupled, and usually involves some retry/await concept to ensure the rendered web UI is up to date with the server side state.

Wrapping the assertion functions in the Driver protocol allows flexibility for browser-based Drivers:

  • use built-in framework assertions (Wallaby, Playwright) that have an integrated retry
  • build custom retry wrapper around PhoenixTest.Assertions

@ftes ftes force-pushed the refactor/move-assertions-to-driver-protocol branch from d512153 to 1a52c98 Compare June 17, 2024 15:25
@ftes ftes mentioned this pull request Jun 21, 2024
@germsvel germsvel merged commit 5575eda into germsvel:main Jul 8, 2024
2 checks passed
@germsvel
Copy link
Owner

germsvel commented Jul 8, 2024

Thanks @ftes!

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.

2 participants