Commit 5982dcdd authored by Clement Ho's avatar Clement Ho

Fix sidebar spec

parent 5325b2fe
...@@ -179,7 +179,7 @@ gl.issueBoards.IssueCardInner = Vue.extend({ ...@@ -179,7 +179,7 @@ gl.issueBoards.IssueCardInner = Vue.extend({
v-if="showLabelFooter" v-if="showLabelFooter"
> >
<button <button
class="label color-label has-tooltip" class="badge color-label has-tooltip"
v-for="label in issue.labels" v-for="label in issue.labels"
type="button" type="button"
v-if="showLabel(label)" v-if="showLabel(label)"
......
...@@ -246,7 +246,7 @@ describe 'Issue Boards', :js do ...@@ -246,7 +246,7 @@ describe 'Issue Boards', :js do
wait_for_requests wait_for_requests
page.within('.value') do page.within('.value') do
expect(page).to have_selector('.label', count: 2) expect(page).to have_selector('.badge', count: 2)
expect(page).to have_content(development.title) expect(page).to have_content(development.title)
expect(page).to have_content(stretch.title) expect(page).to have_content(stretch.title)
end end
...@@ -268,12 +268,12 @@ describe 'Issue Boards', :js do ...@@ -268,12 +268,12 @@ 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('.label', count: 3) expect(page).to have_selector('.badge', count: 3)
expect(page).to have_content(bug.title) expect(page).to have_content(bug.title)
end end
end end
expect(card).to have_selector('.label', count: 3) expect(card).to have_selector('.badge', count: 3)
expect(card).to have_content(bug.title) expect(card).to have_content(bug.title)
end end
...@@ -293,13 +293,13 @@ describe 'Issue Boards', :js do ...@@ -293,13 +293,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('.label', count: 4) expect(page).to have_selector('.badge', count: 4)
expect(page).to have_content(bug.title) expect(page).to have_content(bug.title)
expect(page).to have_content(regression.title) expect(page).to have_content(regression.title)
end end
end end
expect(card).to have_selector('.label', count: 4) expect(card).to have_selector('.badge', count: 4)
expect(card).to have_content(bug.title) expect(card).to have_content(bug.title)
expect(card).to have_content(regression.title) expect(card).to have_content(regression.title)
end end
...@@ -321,12 +321,12 @@ describe 'Issue Boards', :js do ...@@ -321,12 +321,12 @@ 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('.label', count: 1) expect(page).to have_selector('.badge', count: 1)
expect(page).not_to have_content(stretch.title) expect(page).not_to have_content(stretch.title)
end end
end end
expect(card).to have_selector('.label', count: 1) expect(card).to have_selector('.badge', count: 1)
expect(card).not_to have_content(stretch.title) expect(card).not_to have_content(stretch.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