Page object methods that use test controller throw error when called in before
#2572
Labels
STATE: Auto-locked
An issue has been automatically locked by the Lock bot.
Are you requesting a feature or reporting a bug?
Either a bug with my brain or the app... or perhaps a feature request :)
What is the current behavior?
I'm calling a page object method
goto
that builds/alters an url and then usesawait t.navigateTo(url)
to goto the page. This works fine within atest
orbeforeEach
, but not in abefore
. It throws:What is the expected behavior?
I can kinda see why this might be, but I want this to work. Writing tests this way allows me to decouple tests from one another, especially ones with long, slow, setups. Ie. in my before, I'd login, setup any data I need, then run a number of tests. Calling this in one of the tests couples all tests to that test. I could use the
beforeOnce
hack as noted in #1345... but... hacky.How would you reproduce the current behavior (if this is a bug)?
myPageObject method
Test
The text was updated successfully, but these errors were encountered: