- assert_selector 'a', text: 'Add a new project'
- assert_selector 'a', text: 'Browse public projects'
- assert page.has_text?('Projects shared with me'), 'Not found text - Project shared with me'
+ within('.dropdown-menu') do
+ assert_selector 'a', text: 'Search all projects'
+ assert_selector "a[href=\"/projects/public\"]", text: 'Browse public projects'
+ assert_selector 'a', text: 'Add a new project'
+ assert_selector 'li[class="dropdown-header"]', text: 'My projects'
+ end