mirror of
https://github.com/exogen/t2-mapper.git
synced 2026-07-16 08:55:52 +00:00
fix typecheck script, animations
This commit is contained in:
parent
642fce9c06
commit
ceb9fea9f4
120 changed files with 1308 additions and 911 deletions
|
|
@ -78,8 +78,8 @@ page.on("console", async (msg) => {
|
|||
console.log(`[browser ${prefix}] ${parts.join(" ")}`);
|
||||
});
|
||||
|
||||
page.on("pageerror", (err: Error) => {
|
||||
console.error(`[browser EXCEPTION] ${err.message}`);
|
||||
page.on("pageerror", (err: unknown) => {
|
||||
console.error(`[browser EXCEPTION] ${(err as Error).message}`);
|
||||
});
|
||||
|
||||
// Set up settings before navigating.
|
||||
|
|
@ -106,8 +106,8 @@ await page.keyboard.press("Escape");
|
|||
await sleep(100);
|
||||
|
||||
// Hide controls from screenshots.
|
||||
await page.$eval("#controls", (el: HTMLElement) => {
|
||||
el.style.visibility = "hidden";
|
||||
await page.$eval("#controls", (el) => {
|
||||
(el as HTMLElement).style.visibility = "hidden";
|
||||
});
|
||||
|
||||
// Upload the demo file via the hidden file input.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue