diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-06-18 11:18:50 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-06-18 11:18:50 +0000 |
commit | 8c7f4e9d5f36cff46365a7f8c4b9c21578c1e781 (patch) | |
tree | a77e7fe7a93de11213032ed4ab1f33a3db51b738 /spec/features/projects/wiki/user_views_wiki_empty_spec.rb | |
parent | 00b35af3db1abfe813a778f643dad221aad51fca (diff) | |
download | gitlab-ce-8c7f4e9d5f36cff46365a7f8c4b9c21578c1e781.tar.gz |
Add latest changes from gitlab-org/gitlab@13-1-stable-ee
Diffstat (limited to 'spec/features/projects/wiki/user_views_wiki_empty_spec.rb')
-rw-r--r-- | spec/features/projects/wiki/user_views_wiki_empty_spec.rb | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/spec/features/projects/wiki/user_views_wiki_empty_spec.rb b/spec/features/projects/wiki/user_views_wiki_empty_spec.rb index ab0f9b750d2..d9f79162c19 100644 --- a/spec/features/projects/wiki/user_views_wiki_empty_spec.rb +++ b/spec/features/projects/wiki/user_views_wiki_empty_spec.rb @@ -2,7 +2,7 @@ require 'spec_helper' -describe 'User views empty wiki' do +RSpec.describe 'User views empty wiki' do let(:user) { create(:user) } shared_examples 'empty wiki and accessible issues' do @@ -12,6 +12,8 @@ describe 'User views empty wiki' do element = page.find('.row.empty-state') expect(element).to have_content('This project has no wiki pages') + expect(element).to have_content('You must be a project member') + expect(element).to have_content('improve the wiki for this project') expect(element).to have_link("issue tracker", href: project_issues_path(project)) expect(element).to have_link("Suggest wiki improvement", href: new_project_issue_path(project)) end @@ -24,6 +26,7 @@ describe 'User views empty wiki' do element = page.find('.row.empty-state') expect(element).to have_content('This project has no wiki pages') + expect(element).to have_content('You must be a project member') expect(element).to have_no_link('Suggest wiki improvement') end end @@ -66,9 +69,10 @@ describe 'User views empty wiki' do it 'show "create first page" message' do visit(project_wikis_path(project)) - element = page.find('.row.empty-state') + expect(element).to have_content('your project', count: 2) + element.click_link 'Create your first page' expect(page).to have_button('Create page') |