diff options
| author | Clement Ho <ClemMakesApps@gmail.com> | 2016-11-11 11:56:47 -0600 |
|---|---|---|
| committer | Clement Ho <ClemMakesApps@gmail.com> | 2017-01-09 16:00:53 -0600 |
| commit | f20875ec4557b23d6df810bd49e1955f5fbbd6e0 (patch) | |
| tree | 44a0292e6bc7da825897a5e8ecf07a87c0fc0866 /spec/features | |
| parent | 9c8a86f60d2d36b628c5275004e4c17aa07aeeeb (diff) | |
| download | gitlab-ce-f20875ec4557b23d6df810bd49e1955f5fbbd6e0.tar.gz | |
Add username to gon
Diffstat (limited to 'spec/features')
| -rw-r--r-- | spec/features/search_spec.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/features/search_spec.rb b/spec/features/search_spec.rb index caecd027aaa..9a7079848a5 100644 --- a/spec/features/search_spec.rb +++ b/spec/features/search_spec.rb @@ -169,16 +169,16 @@ describe "Search", feature: true do find('.dropdown-menu').click_link 'Issues assigned to me' sleep 2 - expect(page).to have_selector('.issues-holder') - expect(find('.js-assignee-search .dropdown-toggle-text')).to have_content(user.name) + expect(page).to have_selector('.filtered-search') + expect(find('.filtered-search').value).to eq("assignee:#{user.username}") end it 'takes user to her issues page when issues authored is clicked' do find('.dropdown-menu').click_link "Issues I've created" sleep 2 - expect(page).to have_selector('.issues-holder') - expect(find('.js-author-search .dropdown-toggle-text')).to have_content(user.name) + expect(page).to have_selector('.filtered-search') + expect(find('.filtered-search').value).to eq("author:#{user.username}") end it 'takes user to her MR page when MR assigned is clicked' do |
