diff options
author | Phil Hughes <me@iamphill.com> | 2016-08-17 16:24:49 +0100 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2016-08-17 16:24:49 +0100 |
commit | 9fe885bc80942c764b0b703d3cb3e1b0fb7ca932 (patch) | |
tree | 0fc270af79fb2e100de0af83394a26f2758c6073 | |
parent | 82df6596b10de7439ff03fcad1636e09fd27797b (diff) | |
download | gitlab-ce-issue-boards-ui.tar.gz |
Test updateissue-boards-ui
It wasnt testing what it was saying it should be...
-rw-r--r-- | spec/features/boards/boards_spec.rb | 25 |
1 files changed, 5 insertions, 20 deletions
diff --git a/spec/features/boards/boards_spec.rb b/spec/features/boards/boards_spec.rb index cafd33f5b78..e4c5a10ce7e 100644 --- a/spec/features/boards/boards_spec.rb +++ b/spec/features/boards/boards_spec.rb @@ -508,18 +508,12 @@ describe 'Issue Boards', feature: true, js: true do end it 'filters by clicking label button on issue' do - page.within '.issues-filters' do - click_button('Label') - - page.within '.dropdown-menu-labels' do - click_link(bug.title) - wait_for_vue_resource(spinner: false) - find('.dropdown-menu-close').click - end + page.within(find('.board', match: :first)) do + expect(page).to have_selector('.card', count: 6) + click_button(bug.title) + wait_for_vue_resource(spinner: false) end - wait_for_vue_resource - page.within(find('.board', match: :first)) do expect(page.find('.board-header')).to have_content('1') expect(page).to have_selector('.card', count: 1) @@ -530,17 +524,8 @@ describe 'Issue Boards', feature: true, js: true do expect(page).to have_selector('.card', count: 0) end - wait_for_vue_resource - - page.within(find('.board', match: :first)) do - click_button(bug.title) - wait_for_vue_resource(spinner: false) - - expect(page).to have_selector('.card', count: 6) - end - page.within('.labels-filter') do - expect(find('.dropdown-toggle-text')).not_to have_content(bug.title) + expect(find('.dropdown-toggle-text')).to have_content(bug.title) end end |