Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Wortschack <mwortschack@gitlab.com>2018-12-19 22:37:08 +0300
committerMartin Wortschack <mwortschack@gitlab.com>2018-12-19 22:37:25 +0300
commit26c740715013a38629011df51e6cf07b3cf12f34 (patch)
treea4227a34b8d0155cd823b94300c9f22f0355314d /spec/features
parent9ead13b8ebb5ae05bd1dd6c656bb0d56bb680c3a (diff)
Add test for compact mode and for helpers
- add tests for merge_request_count - add tests for show_issue_count - add tests for explore_projects_tab - change interface for show_merge_request_count and show_issue_count
Diffstat (limited to 'spec/features')
-rw-r--r--spec/features/users/overview_spec.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/features/users/overview_spec.rb b/spec/features/users/overview_spec.rb
index 34ed771340f..873de85708a 100644
--- a/spec/features/users/overview_spec.rb
+++ b/spec/features/users/overview_spec.rb
@@ -119,6 +119,12 @@ describe 'Overview tab on a user profile', :js do
it 'shows a link to the project list' do
expect(find('#js-overview .projects-block')).to have_selector('.js-view-all', visible: true)
end
+
+ it 'shows projects in "compact mode"' do
+ page.within('#js-overview .projects-block') do
+ expect(find('.js-projects-list-holder')).to have_selector('.compact')
+ end
+ end
end
describe 'user has more than ten personal projects' do