rcbops-qe / horizon-selenium

Horizon test framework for the testing of integration scenarios.
Apache License 2.0
0 stars 0 forks source link

Tests fail to find href tags due to recent upstream changes #1

Open Rydor opened 7 years ago

Rydor commented 7 years ago

====================================================================== ERROR: test_project_panel (testrepo.horizon.test_primary_nav_bars.NavBarTest)

NoSuchElementException: Message: {"errorMessage":"Unable to find element with css selector 'a[href=\"#sidebar-accordion-project\"]'","request":{"headers":{"Accept":"application/json","Accept-Encoding":"identity","Connection":"close","Content-Length":"129","Content-Type":"application/json;charset=UTF-8","Host":"127.0.0.1:58704","User-Agent":"Python-urllib/2.7"},"httpVersion":"1.1","method":"POST","post":"{\"using\": \"css selector\", \"sessionId\": \"bb6699a0-e260-11e6-8982-937a580a8d53\", \"value\": \"a[href=\\"#sidebar-accordion-project\\"]\"}","url":"/element","urlParsed":{"anchor":"","query":"","file":"element","directory":"/","path":"/element","relative":"/element","port":"","host":"","password":"","user":"","userInfo":"","authority":"","protocol":"","source":"/element","queryKey":{},"chunks":["element"]},"urlOriginal":"/session/bb6699a0-e260-11e6-8982-937a580a8d53/element"}} Screenshot: available via screen

Rydor commented 7 years ago

After investigating the issue I have discovered that the new css selector is a new tag; "a[data-target=......]". I will submit a PR once I have fixes for the page objects.

There are also issues with the asserts in the tests. Same issue with the removal of href tags. Due to the change the url will no longer contains the values we were checking for. A new game plan for the asserts will be needed. I will want to bounce some ideas off of the team.

Rydor commented 7 years ago

The initial commit to start a newton branch and to get the initial set of code changes in is tracked as part of PR https://github.com/rcbops-qe/horizon-selenium/pull/2

Rydor commented 7 years ago

The nav bar definitions are now updated. To resolve this issue we still need to update the test cases or create new test cases.