import { test, expect, type Page } from './fixtures'; import { waitForPcbnew } from './utils/pcbnew-ready'; import { injectFileIntoMemfs } from './utils/fs-inject'; import { waitForBoardLoaded } from './utils/board-ready'; import { PROJECT_DIR_MEMFS } from './utils/threed-viewer'; import { clickMenuBarItem, clickMenuItemByText, waitUntil } from '../e2e/utils/element-tracker'; import * as fs from 'fs'; import * as os from 'os'; import * as path from 'path'; /** * Repro for findings O-3 (info bar close glyph / dismiss layout shift). * * Loads a board whose (version …) predates the current format so pcbnew shows * the "created by an older version" WX_INFOBAR (pcbnew/files.cpp), then: * (a) dispatches a SYNTHETIC click on #canvas at the close glyph's * coordinates — the way the demo-video probes drove the UI — and * records whether the bar dismissed (expected: no — on this port a * wxBitmapButton is a real wx-dom