nearform / playwright-firebase

A plugin to handle Firebase authentication in Playwright tests
Other
19 stars 3 forks source link

Fix (Auth): Flaky Sign-In #234

Closed barelyhuman closed 10 months ago

barelyhuman commented 10 months ago

Adds a function to wait for the script to execute since in case of using content the promises resolves as soon as the content is injected, there might be a race condition between the execution of the content and the execution of page.evaluate

It's rare as the difference is very rare and was only able to reproduce it 2 times out of 20 executions.

Closes #180

References

https://playwright.dev/docs/api/class-page#page-add-script-tag