germsvel / phoenix_test

MIT License
144 stars 20 forks source link

Refactor: Move assertions into 'Driver' protocol #88

Closed ftes closed 2 months ago

ftes commented 2 months ago

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:

germsvel commented 2 months ago

Thanks @ftes!