Commit 8cea4dbb authored by Alper Akgun's avatar Alper Akgun Committed by Mayra Cabrera

Trial copy for users who are logged in

Adjust skip trial copy in trial sign up flow for SaaS users who are
logged in
parent 7ecb0216
.my-5 .my-5
= link_to _('Skip Trial (Continue with Free Account)'), dashboard_projects_path, class: 'block center py-2' - if params[:glm_source] == 'gitlab.com'
= link_to s_('Trials|Go back to GitLab'), dashboard_projects_path, class: 'block center py-2'
.label .label
= _("You won't get a free trial right now but you can always resume this process by clicking on your avatar and choosing 'Start a free trial'.") = s_("Trials|You can always resume this process by selecting your avatar and choosing 'Start a Gold trial'")
- else
= link_to s_('Trials|Skip Trial (Continue with Free Account)'), dashboard_projects_path, class: 'block center py-2'
.label
= s_("Trials|You won't get a free trial right now but you can always resume this process by clicking on your avatar and choosing 'Start a free trial'")
---
title: Adjust skip trial copy in trial sign up flow for SaaS users who are logged
in
merge_request: 22923
author:
type: changed
# frozen_string_literal: true
require 'spec_helper'
describe 'trials/_skip_trial.html.haml' do
include ApplicationHelper
context 'without glm_source' do
it 'displays skip trial' do
render 'trials/skip_trial'
expect(rendered).to have_content("Skip Trial (Continue with Free Account)")
end
end
context 'with glm_source' do
it 'displays skip trial when using about.gitlab.com' do
params[:glm_source] = 'about.gitlab.com'
render 'trials/skip_trial'
expect(rendered).to have_content("Skip Trial (Continue with Free Account)")
end
it 'displays go back to GitLab when using GitLab.com' do
params[:glm_source] = 'gitlab.com'
render 'trials/skip_trial'
expect(rendered).to have_content("Go back to GitLab")
end
end
end
...@@ -17368,9 +17368,6 @@ msgstr "" ...@@ -17368,9 +17368,6 @@ msgstr ""
msgid "Size settings for static websites" msgid "Size settings for static websites"
msgstr "" msgstr ""
msgid "Skip Trial (Continue with Free Account)"
msgstr ""
msgid "Skip this for now" msgid "Skip this for now"
msgstr "" msgstr ""
...@@ -20016,6 +20013,18 @@ msgstr "" ...@@ -20016,6 +20013,18 @@ msgstr ""
msgid "Trending" msgid "Trending"
msgstr "" msgstr ""
msgid "Trials|Go back to GitLab"
msgstr ""
msgid "Trials|Skip Trial (Continue with Free Account)"
msgstr ""
msgid "Trials|You can always resume this process by selecting your avatar and choosing 'Start a Gold trial'"
msgstr ""
msgid "Trials|You won't get a free trial right now but you can always resume this process by clicking on your avatar and choosing 'Start a free trial'"
msgstr ""
msgid "Trigger" msgid "Trigger"
msgstr "" msgstr ""
...@@ -21811,9 +21820,6 @@ msgstr "" ...@@ -21811,9 +21820,6 @@ msgstr ""
msgid "You won't be able to pull or push project code via SSH until you add an SSH key to your profile" msgid "You won't be able to pull or push project code via SSH until you add an SSH key to your profile"
msgstr "" msgstr ""
msgid "You won't get a free trial right now but you can always resume this process by clicking on your avatar and choosing 'Start a free trial'."
msgstr ""
msgid "You'll be signed out from your current account automatically." msgid "You'll be signed out from your current account automatically."
msgstr "" msgstr ""
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment