diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-08-14 00:10:04 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-08-14 00:10:04 +0300 |
commit | 3825437c53474e3d6f3a7d82ef4f26583212531e (patch) | |
tree | 1bb207713ff4e28c10a9a9e3f7c9d3e509001733 /spec/features/registrations | |
parent | c787c1559e9e558b83e78354823eb54b9fe8c718 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/features/registrations')
-rw-r--r-- | spec/features/registrations/experience_level_spec.rb | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/spec/features/registrations/experience_level_spec.rb b/spec/features/registrations/experience_level_spec.rb new file mode 100644 index 00000000000..d08bcc76ac8 --- /dev/null +++ b/spec/features/registrations/experience_level_spec.rb @@ -0,0 +1,35 @@ +# frozen_string_literal: true + +require 'spec_helper' + +RSpec.describe 'Experience level screen' do + let_it_be(:user) { create(:user) } + let_it_be(:group) { create(:group) } + + before do + group.add_owner(user) + gitlab_sign_in(user) + stub_experiment_for_user(onboarding_issues: true) + visit users_sign_up_experience_level_path(namespace_path: group.to_param) + end + + subject { page } + + it 'shows the intro content' do + is_expected.to have_content('Hello there') + is_expected.to have_content('Welcome to the guided GitLab tour') + is_expected.to have_content('What describes you best?') + end + + it 'shows the option for novice' do + is_expected.to have_content('Novice') + is_expected.to have_content('I’m not very familiar with the basics of project management and DevOps') + is_expected.to have_content('Show me everything') + end + + it 'shows the option for experienced' do + is_expected.to have_content('Experienced') + is_expected.to have_content('I’m familiar with the basics of project management and DevOps') + is_expected.to have_content('Show me more advanced stuff') + end +end |