Shadow dom and e2e testing

Hi,
Anyone has good tips on how to running e2e tests when using shadow dom?