mirror of
https://github.com/Equicord/Equicord.git
synced 2025-01-31 03:33:36 -05:00
Testing
This commit is contained in:
parent
4d5511ff60
commit
f7b11b2b64
1 changed files with 10 additions and 2 deletions
|
@ -76,6 +76,8 @@ const IGNORED_DISCORD_ERRORS = [
|
||||||
"Attempting to set fast connect zstd when unsupported"
|
"Attempting to set fast connect zstd when unsupported"
|
||||||
] as Array<string | RegExp>;
|
] as Array<string | RegExp>;
|
||||||
|
|
||||||
|
let done: boolean = false;
|
||||||
|
|
||||||
function toCodeBlock(s: string, indentation = 0, isDiscord = false) {
|
function toCodeBlock(s: string, indentation = 0, isDiscord = false) {
|
||||||
s = s.replace(/```/g, "`\u200B`\u200B`");
|
s = s.replace(/```/g, "`\u200B`\u200B`");
|
||||||
|
|
||||||
|
@ -264,9 +266,8 @@ page.on("console", async e => {
|
||||||
report.badWebpackFinds.push(otherMessage);
|
report.badWebpackFinds.push(otherMessage);
|
||||||
break;
|
break;
|
||||||
case "Finished test":
|
case "Finished test":
|
||||||
await browser.close();
|
done = true;
|
||||||
await printReport();
|
await printReport();
|
||||||
process.exit();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -315,3 +316,10 @@ await page.evaluateOnNewDocument(`
|
||||||
(${reporterRuntime.toString()})(${JSON.stringify(process.env.DISCORD_TOKEN)});
|
(${reporterRuntime.toString()})(${JSON.stringify(process.env.DISCORD_TOKEN)});
|
||||||
}
|
}
|
||||||
`);
|
`);
|
||||||
|
|
||||||
|
await page.goto(CANARY ? "https://canary.discord.com/login" : "https://discord.com/login");
|
||||||
|
|
||||||
|
if (done) {
|
||||||
|
await browser.close();
|
||||||
|
process.exit();
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue