Skip to content

Commit

Permalink
fix: app reports ts (#2798)
Browse files Browse the repository at this point in the history
  • Loading branch information
HugoCasa committed Dec 6, 2023
1 parent c22afa3 commit 4f6a116
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,8 @@ export async function main(app_path: string, startup_duration = 5, kind: 'pdf' |
})
page
.on('console', msg =>
console.log(msg.type().substr(0, 3).toUpperCase() + " " + msg.text()))
.on('pageerror', ({ msg }) => console.log(msg));
console.log(dayjs().format("HH:mm:ss") + " " + msg.type().substr(0, 3).toUpperCase() + " " + msg.text()))
.on('pageerror', ({ msg }) => console.log(dayjs().format("HH:mm:ss") + " " + msg));
await page.setViewport({ width: 1200, height: 2000 });
await page.goto(Bun.env["WM_BASE_URL"] + '/apps/get/' + app_path + '?workspace=' + Bun.env["WM_WORKSPACE"] + "&hideRefreshBar=true&hideEditBtn=true");
await page.waitForSelector("#app-content", { timeout: 20000 })
Expand Down Expand Up @@ -474,7 +474,6 @@ export async function main(app_path: string, startup_duration = 5, kind: 'pdf' |
})
} catch (err) {
sendUserToast('Could not test reports flow: ' + err, true)
} finally {
testLoading = false
}
}
Expand Down

0 comments on commit 4f6a116

Please sign in to comment.