playwright-test icon indicating copy to clipboard operation
playwright-test copied to clipboard

iframe mode

Open lorenzofox3 opened this issue 4 years ago • 1 comments

AFAIK there are two running modes so far:

  • main window
  • worker

It could be interesting to run different test files in different iframes to have sandboxed/isolated environment. An example I have in mind: it would give the ability to have a different customRegistry (for web components) for each test file.

That would probably be less performent and would bring a new set of challenges (synchronising reporting streams, etc) yet I believe it is worth some investigations.

What are your thoughts ?

lorenzofox3 avatar Apr 03 '20 10:04 lorenzofox3

interesting i will research a bit and report back.

hugomrdias avatar Apr 13 '20 18:04 hugomrdias