mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 05:23:35 +00:00
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:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user