Add tests to check projects badge count
This commit is contained in:
parent
cc9dc0259d
commit
25dcce0aa7
1 changed files with 3 additions and 0 deletions
|
@ -91,6 +91,7 @@ describe 'Dashboard Projects' do
|
|||
visit dashboard_projects_path
|
||||
|
||||
expect(page).to have_content(project.name)
|
||||
expect(find('.nav-links li:nth-child(1) .badge-pill')).to have_content(1)
|
||||
end
|
||||
|
||||
it 'shows personal projects on personal projects tab', :js do
|
||||
|
@ -121,6 +122,8 @@ describe 'Dashboard Projects' do
|
|||
|
||||
expect(page).not_to have_content(project.name)
|
||||
expect(page).to have_content(project2.name)
|
||||
expect(find('.nav-links li:nth-child(1) .badge-pill')).to have_content(1)
|
||||
expect(find('.nav-links li:nth-child(2) .badge-pill')).to have_content(1)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue