Skip to content

Commit a5c50a5

Browse files
committed
fix(e2e): distinguish WebKit viewport diagnostics from editor errors
1 parent a0aca94 commit a5c50a5

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

‎apps/sim/scripts/test-markdown-viewer-e2e.ts‎

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -590,7 +590,15 @@ async function proveWarmNavigation(page: Page, browserName: string) {
590590
const files: { id: string; name: string }[] = []
591591
const caughtErrors: string[] = []
592592
const captureError = (message: import('@playwright/test').ConsoleMessage) => {
593-
if (message.type() === 'error') caughtErrors.push(message.text())
593+
if (message.type() !== 'error') return
594+
const text = message.text()
595+
// Some WebKit builds log the existing viewport option at error severity.
596+
if (
597+
browserName === 'webkit' &&
598+
text === 'Viewport argument key "interactive-widget" not recognized and ignored.'
599+
)
600+
return
601+
caughtErrors.push(text)
594602
}
595603
page.on('console', captureError)
596604
try {

0 commit comments

Comments
 (0)