fix(overlay): the Overlay menu page reloads with the menu, not as a full-screen window (1.89.5)
This commit is contained in:
1 parent
d5f81f4290
commit
39eaad64ed
6 files changed
+30
-7
No files matched your search
@@ -37,7 +37,7 @@ export async function runOverlayDriverLinkSmoke({ evaluate, navigate, savedState
|
||||
console.log("PASS a click on a driver in the Overlay opens that driver's training stats");
|
||||
|
||||
// The stand-alone overlay window stays up and opens a new tab.
|
||||
await navigate("overlay", "view");
|
||||
await navigate("overlay&overlayMode=leaderboard", "view");
|
||||
await waitFor(async () => evaluate(`Boolean(${row})`), "the driver row is a link in the overlay window");
|
||||
await evaluate(`window.__opened = []; window.open = (url, target) => { window.__opened.push([url, target]); return null; }; ${row}.click()`);
|
||||
const [openedUrl, target] = (await evaluate(`window.__opened`))[0];
|
||||
|
||||
Reference in new issue
Block a user