Behat bug: Behat gets confused by the 2 different Groups in navigation
Bug #1425392 reported by
Jinelle Foley-Barnes
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mahara |
Won't Fix
|
Low
|
Son Nguyen | ||
15.04 |
Won't Fix
|
Low
|
Unassigned | ||
15.10 |
Won't Fix
|
Low
|
Son Nguyen | ||
16.04 |
Won't Fix
|
Low
|
Unassigned | ||
16.10 |
Won't Fix
|
Low
|
Unassigned |
Bug Description
Hi,
I have a attached a broken Behat test. When it clicks on the first "Groups" heading in the navigation it works fine.
eg "Find friends" in "Groups"
Then it fails when it tries selecting "Archived submissions" in "Groups" .
It doesn’t like the fact that there are 2 of them. What way do we have to work around this?
Thanks,
Jinelle
Changed in mahara: | |
status: | New → In Progress |
importance: | Undecided → High |
assignee: | nobody → Son Nguyen (ngson2000) |
milestone: | none → 15.04.0 |
Changed in mahara: | |
milestone: | 15.04.0 → 15.04.1 |
Changed in mahara: | |
milestone: | 16.10.1 → 17.04.0 |
status: | Confirmed → In Progress |
Changed in mahara: | |
milestone: | 17.04.0 → none |
To post a comment you must log in.
The problem is the xpath of menu "Groups" is not consistent to other menu.
For example, the xpath of id='main- nav']/ul[ @id="nav" ]/li/span/ a[.="Users" ] id='main- nav']/ul[ @id="nav" ]/li/span/ a[.="Institutio ns"]
- "Users" is //div[@
- "Institutions" is //div[@
while "Groups" is //div[@ id='main- nav']/ul[ @id="nav" ]/li//span/ a/span[ .="Groups" ]