mirror of
https://github.com/simonw/datasette.git
synced 2026-06-12 03:57:00 +02:00
Prototype of new /-/jump menu plus plugin hook
This commit is contained in:
parent
d3330695fa
commit
fae847ac10
15 changed files with 1007 additions and 132 deletions
|
|
@ -1019,6 +1019,13 @@ async def test_navigation_menu_links(
|
|||
search_button.find("kbd")["title"]
|
||||
== "Keyboard shortcut: press / to open Jump to"
|
||||
)
|
||||
navigation_search_script = soup.find(
|
||||
"script", {"src": re.compile(r"navigation-search\.js")}
|
||||
)
|
||||
assert navigation_search_script["src"] == (
|
||||
"/-/static/navigation-search.js?"
|
||||
+ ds_client.ds.static_hash("navigation-search.js")
|
||||
)
|
||||
assert details.find("li").find("button") == search_button
|
||||
if not actor_id:
|
||||
# The app menu is always visible, but anonymous users do not see logout
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue