mechanical-orchard / playwright-elixir

An Elixir library for Playwright web automation
MIT License
107 stars 21 forks source link

API redesign: support pipelines #53

Open coreyti opened 3 months ago

coreyti commented 3 months ago

The aim here is to return what we're calling subject(), instead of :ok, for those functions that would not otherwise return some other resource. The result should provide better support for Elixir pipe operations.

ry4n1m3 commented 1 month ago

With this redesign, we should make functions that must return error tuples have a corresponding pipeable version with a! in their name, rather than having a pipeable version that sometimes causes the next step in the pipe to fail having been provided an error tuple.