fix: add "xref buttons" tool panel for master view
also add `url` param for `MasterView.make_button()`
This commit is contained in:
parent
0631b8e16b
commit
170afe650b
3 changed files with 70 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue