Skip to content
Snippets Groups Projects
Verified Commit 4768a4e0 authored by Arie Peterson's avatar Arie Peterson
Browse files

Make xpath selectors in Grafana behave test more specific

parent 32d6b137
No related branches found
No related tags found
No related merge requests found
......@@ -5,13 +5,13 @@ Feature: Test grafana admin login
Scenario: Open grafana
When I open the grafana URL
Then I wait on element "//form/div[1]/input" for 25000ms to be visible
Then I wait on element "//input[@name='username']" for 25000ms to be visible
And I expect that element "#inputPassword" is visible
Scenario: Login to grafana
Given the element "//form/div[1]/input" is visible
When I enter the "grafana" "username" in the inputfield "//form/div[1]/input"
Given the element "//input[@name='username']" is visible
When I enter the "grafana" "username" in the inputfield "//input[@name='username']"
And I enter the "grafana" "password" in the inputfield "#inputPassword"
And I click on the button "//form/div[3]/button"
And I click on the button "//div[@id='login-view']//button[@type='submit']"
Then I wait on element "/html/body/grafana-app/sidemenu/a" for 25000ms to be visible
And I expect that the title is "Home - Grafana"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment