Skip to content

Commit

Permalink
fix login by waiting a little
Browse files Browse the repository at this point in the history
* we need to reload the page, by navigating to the base url once more
  • Loading branch information
maurerle committed Dec 4, 2024
1 parent a002812 commit 4e0c5ee
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions grafanimate/grafana.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,9 @@ def login(self, username, password):
log.info("Logging in")
javascript = mkjscall("grafanaStudio.login", username, password)
self.run_javascript(javascript)
# the login works, but it is not shown even after reload
# self.navigate(self.baseurl)
# the login works, we need to wait a bit and reload the page
time.sleep(0.5)
self.navigate(self.baseurl)

def open_dashboard(self, uid, options=None):
"""
Expand Down

0 comments on commit 4e0c5ee

Please sign in to comment.