Commit 251d4f0e authored by Rajat Jain's avatar Rajat Jain

Fix rspec to account for redundant label

parent 3cb4b5a9
...@@ -329,13 +329,13 @@ describe 'Issue Boards', :js do ...@@ -329,13 +329,13 @@ describe 'Issue Boards', :js do
find('.dropdown-menu-close-icon').click find('.dropdown-menu-close-icon').click
page.within('.value') do page.within('.value') do
expect(page).to have_selector('.badge', count: 3) expect(page).to have_selector('.scoped-label-wrapper', count: 1)
expect(page).not_to have_content(scoped_label_1.title) expect(page).not_to have_content(scoped_label_1.title)
expect(page).to have_content(scoped_label_2.title) expect(page).to have_content(scoped_label_2.title)
end end
end end
expect(card).to have_selector('.badge', count: 3) expect(card).to have_selector('.scoped-label-wrapper', count: 1)
expect(card).not_to have_content(scoped_label_1.title) expect(card).not_to have_content(scoped_label_1.title)
expect(card).to have_content(scoped_label_2.title) expect(card).to have_content(scoped_label_2.title)
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment