refactor: Lift out log-out call from individual tests to common.ts.

We recently added the commit to add the log-out call
after each test (52706908b).

This commit cleans that approach by using
just one log-out call after the test is executed at
`common.ts`
This commit is contained in:
Riken Shah
2021-03-31 14:02:39 +05:30
committed by Steve Howell
parent f73d101854
commit e61f73c239
18 changed files with 1 additions and 21 deletions

View File

@@ -581,6 +581,7 @@ class CommonUtils {
try {
await test_function(page);
await this.log_out(page);
if (page_errored) {
throw new Error("Page threw an error");