describe'for project features in general for .com',js: truedo
beforedo
beforedo
allow(Gitlab).toreceive(:com?).and_return(true)
end
it'should have the Upgrade your plan button'do
sign_in(user)
sign_in(user)
project.team<<[user,:master]
project.team<<[user,:master]
expect(find('#promote_service_desk')).tohave_content'Upgrade your plan'
end
it'should have the contact owner line'do
sign_in(developer)
project.team<<[developer,:developer]
expect(find('#promote_service_desk')).tohave_content'Upgrade your plan'
end
end
end
describe'for service desk',js: truedo
describe'for service desk',js: truedo
beforedo
sign_in(user)
project.team<<[user,:master]
end
it'should appear in project edit page'do
it'should appear in project edit page'do
visitedit_project_path(project)
visitedit_project_path(project)
expect(find('#promote_service_desk')).tohave_content'Improve customer support with GitLab Service Desk.'
expect(find('#promote_service_desk')).tohave_content'Improve customer support with GitLab Service Desk.'
expect(find('#promote_service_desk')).tohave_content'GitLab Service Desk is a simple way to allow people to create issues in your GitLab instance without needing their own user account.'