Commit 25dcce0a authored by George Tsiolis's avatar George Tsiolis

Add tests to check projects badge count

parent cc9dc025
...@@ -91,6 +91,7 @@ describe 'Dashboard Projects' do ...@@ -91,6 +91,7 @@ describe 'Dashboard Projects' do
visit dashboard_projects_path visit dashboard_projects_path
expect(page).to have_content(project.name) expect(page).to have_content(project.name)
expect(find('.nav-links li:nth-child(1) .badge-pill')).to have_content(1)
end end
it 'shows personal projects on personal projects tab', :js do it 'shows personal projects on personal projects tab', :js do
...@@ -121,6 +122,8 @@ describe 'Dashboard Projects' do ...@@ -121,6 +122,8 @@ describe 'Dashboard Projects' do
expect(page).not_to have_content(project.name) expect(page).not_to have_content(project.name)
expect(page).to have_content(project2.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
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