Closed Ding-Fan closed 3 years ago
Hey @Ding-Fan 👋
This is indeed a big gotcha, and something I'm hoping could be changed in a future major version, but sadly don't have the time right now!
We do briefly note on this issue in the second bullet point of the README.md notes section (https://github.com/asos-craigmorten/superoak#notes), though isn't perhaps all that clear!
Would you be open to raising a pull request and starting an FAQs section (and / or updating the existing notes section) to try and make this clearer? Welcome any suggestions 😄
I don't know the logic under the hood so I didn't change the second bullet point of Notes.
I've read the Notes before
you cannot re-use a SuperOak instance once the chained .end() method has been called.
However, in my case, there isn't any explicit .end()
call.
Issue
Setup:
Details
Use the same
superoak
instance multiple times in a same testleads to vague error message like below:
I'm not sure is this a bug or not. Maybe add this to a FAQ section in README.md would save people's time. 🙂