[Question] testing navigation issue #767
Labels
pkg:bloc_test
This issue is related to the bloc_test package
question
Further information is requested
Projects
First of all, thanks for the effort in creating and maintaining such a great package.
My question is this, suppose i have the following widget (the code is just to give an idea, i writed fast, just want to give an idea)
I want to unit test this line
Navigator.of(context).push(MaterialPageRoute(builder: (_) => NextPage()))
So i made this test case:
What i would expect is to have the navigator line executed since i mocked the state of the bloc to the exact state i'm checking on BlocListener.
Am i messing something up? Or i just misunderstood some concepts?
Thanks!
The text was updated successfully, but these errors were encountered: