File tree Expand file tree Collapse file tree
features/step_definitions Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2929 < li class ="nav-item dropdown ">
3030 < a class ="nav-link dropdown-toggle testid-username " href ="# " data-bs-toggle ="dropdown "
3131 aria-expanded ="false " aria-label ="User menu for <%= session [ :username ] %> "> <%= session [ :username ] %> </ a >
32- < ul class ="dropdown-menu ">
32+ < ul class ="dropdown-menu " id =" user-dropdown-menu " >
3333 <% if current_user . admin? %>
3434 < li > < h6 class ="dropdown-header "> Admin Tools</ h6 > </ li >
3535 < li > < a class ="dropdown-item " href ="/admin/blazer "> Dashboards</ a > </ li >
Original file line number Diff line number Diff line change 1515end
1616
1717Then ( /^I should see "(.*?)" in the navbar dropdown$/ ) do |text |
18- within ( 'nav . dropdown-menu' ) do
18+ within ( '#user- dropdown-menu' ) do
1919 expect ( page ) . to have_content ( text )
2020 end
2121end
2222
2323Then ( /^I should not see "(.*?)" in the navbar dropdown$/ ) do |text |
24- within ( 'nav . dropdown-menu' ) do
24+ within ( '#user- dropdown-menu' ) do
2525 expect ( page ) . not_to have_content ( text )
2626 end
2727end
You can’t perform that action at this time.
0 commit comments