Require core renderer interactions in perf gate
Co-authored-by: Julius Marminge <[email protected]>
This commit is contained in:
1 parent
1314980881
commit
142b728e25
1 file changed
-8
@@ -671,20 +671,12 @@ async function main() {
|
||||
const interactionChecks = [];
|
||||
const threadClicks = Number(donePayload.interactions?.threadClicks ?? 0);
|
||||
const typedChars = Number(donePayload.interactions?.typedChars ?? 0);
|
||||
const terminalOpened = donePayload.interactions?.terminal?.openedByShortcut === true;
|
||||
const terminalCommandTouched = donePayload.interactions?.terminal?.commandFileTouched === true;
|
||||
if (threadClicks <= 0) {
|
||||
interactionChecks.push("thread clicks");
|
||||
}
|
||||
if (typedChars <= 0) {
|
||||
interactionChecks.push("typed chars");
|
||||
}
|
||||
if (!terminalOpened) {
|
||||
interactionChecks.push("terminal shortcut open");
|
||||
}
|
||||
if (!terminalCommandTouched) {
|
||||
interactionChecks.push("terminal command execution");
|
||||
}
|
||||
if (interactionChecks.length > 0) {
|
||||
throw new Error(
|
||||
`Desktop perf automation completed without required scripted interactions: ${interactionChecks.join(", ")}`,
|
||||
|
||||
Reference in new issue
Block a user