diff options
author | Brandon Labuschagne <blabuschagne@gitlab.com> | 2019-02-19 18:01:58 +0300 |
---|---|---|
committer | Kushal Pandya <kushalspandya@gmail.com> | 2019-02-19 18:01:58 +0300 |
commit | 2fd0d6e29b8ed06c07354a6b3f2d81e938417489 (patch) | |
tree | f18907e4a41c32f47f29d14478f57e00f847af74 /spec | |
parent | 1aae24ce099c8683c9b212cceb1c1a71137c1c48 (diff) |
Improve empty state for starred projects
In this MR, a view for the empty state of projects has been added.
In addition, an svg for this has also been added.
Diffstat (limited to 'spec')
-rw-r--r-- | spec/features/dashboard/projects_spec.rb | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/spec/features/dashboard/projects_spec.rb b/spec/features/dashboard/projects_spec.rb index 6c4b04ab76b..9d1c1e3acc7 100644 --- a/spec/features/dashboard/projects_spec.rb +++ b/spec/features/dashboard/projects_spec.rb @@ -114,7 +114,16 @@ describe 'Dashboard Projects' do end end - context 'when on Starred projects tab' do + context 'when on Starred projects tab', :js do + it 'shows the empty state when there are no starred projects' do + visit(starred_dashboard_projects_path) + + element = page.find('.row.empty-state') + + expect(element).to have_content("You don't have starred projects yet.") + expect(element.find('.svg-content img')['src']).to have_content('illustrations/starred_empty') + end + it 'shows only starred projects' do user.toggle_star(project2) |