Skip to content

Commit 4e0c5ee

Browse files
committed
fix login by waiting a little
* we need to reload the page, by navigating to the base url once more
1 parent a002812 commit 4e0c5ee

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

grafanimate/grafana.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,9 @@ def login(self, username, password):
7272
log.info("Logging in")
7373
javascript = mkjscall("grafanaStudio.login", username, password)
7474
self.run_javascript(javascript)
75-
# the login works, but it is not shown even after reload
76-
# self.navigate(self.baseurl)
75+
# the login works, we need to wait a bit and reload the page
76+
time.sleep(0.5)
77+
self.navigate(self.baseurl)
7778

7879
def open_dashboard(self, uid, options=None):
7980
"""

0 commit comments

Comments
 (0)