mirror of
https://github.com/GAM-team/GAM.git
synced 2026-07-03 20:31:35 +00:00
Refactor SSD run function for ARM64 handling
This commit is contained in:
@@ -87,19 +87,31 @@ function launchSSD() {
|
|||||||
async function runSSD() {
|
async function runSSD() {
|
||||||
const runner_arch = process.env.RUNNER_ARCH;
|
const runner_arch = process.env.RUNNER_ARCH;
|
||||||
if ( runner_arch === "ARM64" ) {
|
if ( runner_arch === "ARM64" ) {
|
||||||
console.log('Running on ARM64. Attempting to kill OOBE dialogs...');
|
console.log('Running on ARM64. Tabbing through OOBE...');
|
||||||
await takeScreenshot('oob_before.png');
|
await sleep(3000);
|
||||||
|
await takeScreenshot('oob1.png');
|
||||||
|
|
||||||
try {
|
// Page 1: Tab through the toggles to reach the "Next" button
|
||||||
// Force kill the Windows Out-Of-Box Experience host
|
for (let i = 0; i < 7; i++) {
|
||||||
execSync('taskkill /F /IM CloudExperienceHost.exe /T');
|
await driver.sendKeys([Key.Tab]);
|
||||||
console.log('Successfully terminated CloudExperienceHost.');
|
await sleep(200);
|
||||||
} catch (err) {
|
|
||||||
console.log('CloudExperienceHost was not running or could not be killed.');
|
|
||||||
}
|
}
|
||||||
|
await driver.sendKeys([Key.Enter]);
|
||||||
|
console.log('Clicked Next');
|
||||||
|
|
||||||
await sleep(3000); // Give the desktop a moment to settle
|
await sleep(3000);
|
||||||
await takeScreenshot('oob_after.png');
|
await takeScreenshot('ooob2.png');
|
||||||
|
|
||||||
|
// Page 2: Tab through the remaining toggles to reach the "Accept" button
|
||||||
|
for (let i = 0; i < 7; i++) {
|
||||||
|
await driver.sendKeys([Key.Tab]);
|
||||||
|
await sleep(200);
|
||||||
|
}
|
||||||
|
await driver.sendKeys([Key.Enter]);
|
||||||
|
console.log('Clicked Accept');
|
||||||
|
|
||||||
|
await sleep(3000);
|
||||||
|
await takeScreenshot('oob3.png');
|
||||||
} else {
|
} else {
|
||||||
console.log('NOT running on ARM64');
|
console.log('NOT running on ARM64');
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user