You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
myTest('open'swebsite',async(context)=>{awaitcontext.page.goto(context.baseUrl);// Note this comes statically when I created the `suite`.assert.ok(/testforsomething/.test((awaitcontext.page.content())));});
but this seems to mutate the page object in someway—probably Playwright internals. And for this my console is littered with:
[WARN] Cannot modify context within tests!
My plan is to still echo that these objects should be immutable but perhaps only on key? Or a config to say "i know what im doing", as I assume these need to stay immutable so tests could be ran in parallel in the future? (but on that, with e2e's you'd want them in-series).
The text was updated successfully, but these errors were encountered:
There's some related discussion in #39 which steers me towards completely removing the "immutability guard" that uvu provides right now. Not doing anything is the simplest approach by far, and I trust users will be aware of what they're doing/modifying
Currently Im putting a
playwright
Browser and Page instances onto the context in a.before
into a context:and then later reading that like:
but this seems to mutate the
page
object in someway—probably Playwright internals. And for this my console is littered with:My plan is to still echo that these objects should be immutable but perhaps only on key? Or a config to say "i know what im doing", as I assume these need to stay immutable so tests could be ran in parallel in the future? (but on that, with e2e's you'd want them in-series).
The text was updated successfully, but these errors were encountered: