assert page.has_text?('Save profile'), 'No text - Save profile'
add_profile user
else
- assert page.has_text?('Active pipelines'), 'Not found text - Active pipelines'
+ assert page.has_text?('Recent processes'), 'Not found text - Recent processes'
assert page.has_no_text?('Save profile'), 'Found text - Save profile'
end
elsif invited
assert page.has_no_link?('Not active'), 'Found link - Not active'
assert page.has_no_link?('Sign agreements'), 'Found link - Sign agreements'
- assert page.has_link?('Manage account'), 'No link - Manage account'
+ assert page.has_link?('Virtual machines'), 'No link - Virtual machines'
+ assert page.has_link?('Repositories'), 'No link - Repositories'
+ assert page.has_link?('Current token'), 'No link - Current token'
+ assert page.has_link?('SSH keys'), 'No link - SSH Keys'
if profile_config
assert page.has_link?('Manage profile'), 'No link - Manage profile'
end
# profile saved and in home page now
- assert page.has_text?('Active pipelines'), 'No text - Active pipelines'
+ assert page.has_text?('Recent processes'), 'No text - Recent processes'
end
[
test "visit home page when profile is configured for user #{token}" do
# Our test config enabled profile by default. So, no need to update config
+ Rails.configuration.enable_getting_started_popup = true
+
if !token
visit ('/')
else
test "visit home page when profile not configured for user #{token}" do
Rails.configuration.user_profile_form_fields = false
+ Rails.configuration.enable_getting_started_popup = true
if !token
visit ('/')