diff --git a/test/behave/features/grafana.feature b/test/behave/features/grafana.feature
index cd4c0dbe5820df25dffc8e8f3d7835939cad28f2..418e12e77bfa498183b4c6c3cdab71f864aa91ca 100644
--- a/test/behave/features/grafana.feature
+++ b/test/behave/features/grafana.feature
@@ -14,6 +14,6 @@ Scenario: Login to grafana
   Given the element "//input[@name='user']" is visible
   When I enter the "grafana" "username" in the inputfield "//input[@name='user']"
   And I enter the "grafana" "password" in the inputfield "//input[@name='password']"
-  And I click on the button "//div[@id='login-view']//button[@aria-label='Login button']"
+  And I click on the button "//button[@aria-label='Login button']"
   Then I wait on element "sidemenu.sidemenu" for 60000ms to be visible
   And I expect that the path is "/"