Skip to content
This repository has been archived by the owner on Jan 9, 2024. It is now read-only.

Add action collectors to scoped component browser instances #51

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

nie7321
Copy link
Contributor

@nie7321 nie7321 commented Jun 13, 2019

This fixes the error from #50 by wrapping the scoped callback with another callback to inject the action collector.

It is an imperfect solution -- since onComponent is called before the callback is evaluated in Laravel\Dusk\Browser, I cannot think of a nice way to get the correct action collector instance in place for a component's assert() method.

I could copy-paste the method definition, but that seems kinda gross and brittle. Does anyone have any ideas?

@nie7321 nie7321 force-pushed the component-scoped-browser-has-collector branch from ba2062c to 5451a7d Compare June 13, 2019 21:19
@nie7321 nie7321 force-pushed the component-scoped-browser-has-collector branch from 5451a7d to c05100a Compare June 13, 2019 21:20
@doroshenkoss
Copy link

Have almost same problem. I'd appreciate all the help I can get.
Thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants