Move operator UI into aquarium
This commit is contained in:
parent
c461d70817
commit
e504a0f6ad
4 changed files with 175 additions and 30 deletions
|
|
@ -77,7 +77,7 @@ async function smokeViewport(browser, viewport, screenshotPath, exerciseFluidPan
|
|||
|
||||
const operatorSurface = await page.evaluate(() => {
|
||||
return [".immersiveTopbar", ".deckRail", ".diegeticPanel"].every((selector) => {
|
||||
const element = document.querySelector(selector);
|
||||
const element = document.querySelector(`.agentStage ${selector}`);
|
||||
if (!element) return false;
|
||||
const style = window.getComputedStyle(element);
|
||||
const rect = element.getBoundingClientRect();
|
||||
|
|
@ -195,6 +195,12 @@ async function smokeViewport(browser, viewport, screenshotPath, exerciseFluidPan
|
|||
throw new Error(`aquarium audio did not wake correctly: ${JSON.stringify(audio)}`, { cause: error });
|
||||
}
|
||||
audioProbe = await page.evaluate(() => window.__epiphanyAquariumAudio ?? null);
|
||||
await page.locator(".deckRail button").nth(1).click();
|
||||
await page.waitForFunction(() => {
|
||||
const audio = window.__epiphanyAquariumAudio;
|
||||
return audio?.state === "running" && audio.interfaceHitCount >= 1;
|
||||
}, null, { timeout: 5000 });
|
||||
audioProbe = await page.evaluate(() => window.__epiphanyAquariumAudio ?? null);
|
||||
}
|
||||
|
||||
let persistedParams = null;
|
||||
|
|
|
|||
Reference in a new issue