germsvel / phoenix_test

MIT License
144 stars 20 forks source link

Refactor: Add current_path to 'Driver' protocol #89

Closed ftes closed 2 months ago

ftes commented 2 months ago

Extracted from #74

Goal

Support assert_path implementations for browser-based Driver implementations

Background

Browser-based tests have a decoupled state. It may be necessary to retry/await until the path is updated in the browser. To support this, the Driver implementation should be allowed to choose how to fetch the current_path and not be forced to store it as a struct entry.

germsvel commented 2 months ago

Thanks @ftes!