3
0
Fork 0

fix: add "xref buttons" tool panel for master view

also add `url` param for `MasterView.make_button()`
This commit is contained in:
Lance Edgar 2025-01-02 22:35:43 -06:00
parent 0631b8e16b
commit 170afe650b
3 changed files with 70 additions and 1 deletions

View file

@ -441,6 +441,12 @@ class TestMasterView(WebTestCase):
self.assertIn('click me', html)
self.assertIn('is-primary', html)
# with url
html = view.make_button('click me', url='http://example.com')
self.assertIn('<b-button tag="a"', html)
self.assertIn('click me', html)
self.assertIn('href="http://example.com"', html)
def test_make_progress(self):
# basic