replayio / playwright-tests

Playwright harness and tests used by replay CI
BSD 3-Clause "New" or "Revised" License
14 stars 7 forks source link

Fix recording failure when metadata file does not exist #105

Closed ryanjduffy closed 2 years ago

ryanjduffy commented 2 years ago

Issue

Our QA Wolf tests do not (currently) create a metadata file so this function throws when trying to read the non-existent file and causes the test to "fail" (exit with non-zero) even though the test itself ran correctly.

Resolution

Move the try up a bit so it catches this failure and logs the metadata access error but doesn't fail the test