2
0
mirror of https://github.com/inventree/InvenTree.git synced 2026-06-12 11:38:47 +00:00

Fix for RenderInstance (#12058)

* Fix for RenderInstance

- Do not call useNavigate within RenderInstance
- This breaks any plugins which try to use RenderInstance
- Pass navigate func through to <RenderInstance />

* Add playwright test for hover in forms

* Add translated plugin test

* Improve playwright tests

* Further unit test fixes

* Update docstring
This commit is contained in:
Oliver
2026-06-01 21:44:02 +10:00
committed by GitHub
parent f912ba501d
commit 7f86384a03
11 changed files with 155 additions and 19 deletions
@@ -121,3 +121,7 @@ class TransitionTests(InvenTreeTestCase):
self.assertIn(
"ValueError('This is a broken transition plugin!')", str(cm.output[0])
)
# Ensure the plugin is now disabled
registry.set_plugin_state('sample-transition', False)
registry.set_plugin_state('sample-broken-transition', False)
@@ -60,7 +60,7 @@ class TransitionMethod:
**kwargs: Additional keyword arguments for custom logic.
Returns:
result: bool - True if the transition method was successful, False otherwise.
result: bool - True if the transition method was successful (and no further transitions are attempted), False otherwise.
Raises:
ValidationError: Alert the user that the transition failed