Rayrun
← Back to Discord Forum

Inconsistent tests

annessence
annessence

Hi, so I am relatively new to Playwright, been following the docs and playing around but I can't seem to fix 1 big issue.

I now have written 2 tests and both results are always super inconsistent. There always seem to be different errors once I run them, once I get error about A, the other time A works, but I get errors at B... and so on. It also feels like debugging a specific error is useless now since all errors are so random. I suppose its by the behavior and speed of the test running? I can't really wrap my head around this.

Anyone who possibly know why this is happening? I can provide more info if needed. Thanks.

This thread is trying to answer question "Why are the test results inconsistent in Playwright?"

3 replies

Could be purely due to the speed and how fast things might be running, but that's not likely to be the reason in your case (it's more of the exception than the rule).

If you're doing things in an async language, one of the more usual reasons is forgetting to await for a promise to resolve or something similar. If there's more code you could share it might help pinpointing your issue better

annessence
annessence
@mookiept: would it be ok for you if I were to DM you my code? You don't really have to read all of it, perhaps there is or are some red flags to spot? I am pretty sure I'm not missing an await

would it be ok for you if I were to DM you my code? You don't really have to read all of it, perhaps there is or are some red flags to spot? I am pretty sure I'm not missing an await

sure

TwitterGitHubLinkedIn
AboutQuestionsDiscord ForumBrowser ExtensionTagsQA Jobs

Rayrun is a community for QA engineers. I am constantly looking for new ways to add value to people learning Playwright and other browser automation frameworks. If you have feedback, email luc@ray.run.