Skip to content

Commit

Permalink
Ensure Debugger renders without error (#6423)
Browse files Browse the repository at this point in the history
  • Loading branch information
philippjfr committed Mar 3, 2024
1 parent 56cfc19 commit 93b8d95
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
4 changes: 3 additions & 1 deletion panel/models/terminal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,9 @@ export class TerminalView extends HTMLBoxView {

override after_layout(): void {
super.after_layout()
this.fit()
if (this.container != null) {
this.fit()
}
}
}

Expand Down
20 changes: 20 additions & 0 deletions panel/tests/ui/widgets/test_debugger.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
from __future__ import annotations

import pytest

from panel.tests.util import serve_component
from panel.widgets import Debugger

pytest.importorskip("playwright")

pytestmark = pytest.mark.ui


def test_tabulator_no_console_error(page):
widget = Debugger()

msgs, _ = serve_component(page, widget)

page.wait_for_timeout(1000)

assert [msg for msg in msgs if msg.type == 'error' and 'favicon' not in msg.location['url']] == []

0 comments on commit 93b8d95

Please sign in to comment.