Commit bbfd7f59 authored by Alper Akgun's avatar Alper Akgun

Rename learn gitlab A

Remove the A experiment variant suffix
parent 848932da
...@@ -39,7 +39,7 @@ export default { ...@@ -39,7 +39,7 @@ export default {
:href="value.url" :href="value.url"
data-track-action="click_link" data-track-action="click_link"
:data-track-label="$options.i18n.ACTION_LABELS[action].title" :data-track-label="$options.i18n.ACTION_LABELS[action].title"
data-track-property="Growth::Conversion::Experiment::LearnGitLabA" data-track-property="Growth::Conversion::Experiment::LearnGitLab"
> >
{{ $options.i18n.ACTION_LABELS[action].title }} {{ $options.i18n.ACTION_LABELS[action].title }}
</gl-link> </gl-link>
......
import Vue from 'vue'; import Vue from 'vue';
import { convertObjectPropsToCamelCase } from '~/lib/utils/common_utils'; import { convertObjectPropsToCamelCase } from '~/lib/utils/common_utils';
import LearnGitlabA from '../components/learn_gitlab_a.vue'; import LearnGitlab from '../components/learn_gitlab.vue';
function initLearnGitlab() { function initLearnGitlab() {
const el = document.getElementById('js-learn-gitlab-app'); const el = document.getElementById('js-learn-gitlab-app');
...@@ -15,7 +15,7 @@ function initLearnGitlab() { ...@@ -15,7 +15,7 @@ function initLearnGitlab() {
return new Vue({ return new Vue({
el, el,
render(createElement) { render(createElement) {
return createElement(LearnGitlabA, { return createElement(LearnGitlab, {
props: { actions, sections }, props: { actions, sections },
}); });
}, },
......
// Jest Snapshot v1, https://goo.gl/fbAQLP // Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`Learn GitLab Design A renders correctly 1`] = ` exports[`Learn GitLab renders correctly 1`] = `
<div> <div>
<div <div
class="row" class="row"
...@@ -136,7 +136,7 @@ exports[`Learn GitLab Design A renders correctly 1`] = ` ...@@ -136,7 +136,7 @@ exports[`Learn GitLab Design A renders correctly 1`] = `
class="gl-link" class="gl-link"
data-track-action="click_link" data-track-action="click_link"
data-track-label="Set up CI/CD" data-track-label="Set up CI/CD"
data-track-property="Growth::Conversion::Experiment::LearnGitLabA" data-track-property="Growth::Conversion::Experiment::LearnGitLab"
href="http://example.com/" href="http://example.com/"
rel="noopener noreferrer" rel="noopener noreferrer"
target="_blank" target="_blank"
...@@ -157,7 +157,7 @@ exports[`Learn GitLab Design A renders correctly 1`] = ` ...@@ -157,7 +157,7 @@ exports[`Learn GitLab Design A renders correctly 1`] = `
class="gl-link" class="gl-link"
data-track-action="click_link" data-track-action="click_link"
data-track-label="Start a free Ultimate trial" data-track-label="Start a free Ultimate trial"
data-track-property="Growth::Conversion::Experiment::LearnGitLabA" data-track-property="Growth::Conversion::Experiment::LearnGitLab"
href="http://example.com/" href="http://example.com/"
rel="noopener noreferrer" rel="noopener noreferrer"
target="_blank" target="_blank"
...@@ -178,7 +178,7 @@ exports[`Learn GitLab Design A renders correctly 1`] = ` ...@@ -178,7 +178,7 @@ exports[`Learn GitLab Design A renders correctly 1`] = `
class="gl-link" class="gl-link"
data-track-action="click_link" data-track-action="click_link"
data-track-label="Add code owners" data-track-label="Add code owners"
data-track-property="Growth::Conversion::Experiment::LearnGitLabA" data-track-property="Growth::Conversion::Experiment::LearnGitLab"
href="http://example.com/" href="http://example.com/"
rel="noopener noreferrer" rel="noopener noreferrer"
target="_blank" target="_blank"
...@@ -206,7 +206,7 @@ exports[`Learn GitLab Design A renders correctly 1`] = ` ...@@ -206,7 +206,7 @@ exports[`Learn GitLab Design A renders correctly 1`] = `
class="gl-link" class="gl-link"
data-track-action="click_link" data-track-action="click_link"
data-track-label="Add merge request approval" data-track-label="Add merge request approval"
data-track-property="Growth::Conversion::Experiment::LearnGitLabA" data-track-property="Growth::Conversion::Experiment::LearnGitLab"
href="http://example.com/" href="http://example.com/"
rel="noopener noreferrer" rel="noopener noreferrer"
target="_blank" target="_blank"
...@@ -270,7 +270,7 @@ exports[`Learn GitLab Design A renders correctly 1`] = ` ...@@ -270,7 +270,7 @@ exports[`Learn GitLab Design A renders correctly 1`] = `
class="gl-link" class="gl-link"
data-track-action="click_link" data-track-action="click_link"
data-track-label="Create an issue" data-track-label="Create an issue"
data-track-property="Growth::Conversion::Experiment::LearnGitLabA" data-track-property="Growth::Conversion::Experiment::LearnGitLab"
href="http://example.com/" href="http://example.com/"
rel="noopener noreferrer" rel="noopener noreferrer"
target="_blank" target="_blank"
...@@ -291,7 +291,7 @@ exports[`Learn GitLab Design A renders correctly 1`] = ` ...@@ -291,7 +291,7 @@ exports[`Learn GitLab Design A renders correctly 1`] = `
class="gl-link" class="gl-link"
data-track-action="click_link" data-track-action="click_link"
data-track-label="Submit a merge request" data-track-label="Submit a merge request"
data-track-property="Growth::Conversion::Experiment::LearnGitLabA" data-track-property="Growth::Conversion::Experiment::LearnGitLab"
href="http://example.com/" href="http://example.com/"
rel="noopener noreferrer" rel="noopener noreferrer"
target="_blank" target="_blank"
...@@ -348,7 +348,7 @@ exports[`Learn GitLab Design A renders correctly 1`] = ` ...@@ -348,7 +348,7 @@ exports[`Learn GitLab Design A renders correctly 1`] = `
class="gl-link" class="gl-link"
data-track-action="click_link" data-track-action="click_link"
data-track-label="Run a Security scan using CI/CD" data-track-label="Run a Security scan using CI/CD"
data-track-property="Growth::Conversion::Experiment::LearnGitLabA" data-track-property="Growth::Conversion::Experiment::LearnGitLab"
href="http://example.com/" href="http://example.com/"
rel="noopener noreferrer" rel="noopener noreferrer"
target="_blank" target="_blank"
......
import { GlProgressBar } from '@gitlab/ui'; import { GlProgressBar } from '@gitlab/ui';
import { mount } from '@vue/test-utils'; import { mount } from '@vue/test-utils';
import LearnGitlabA from '~/pages/projects/learn_gitlab/components/learn_gitlab_a.vue'; import LearnGitlab from '~/pages/projects/learn_gitlab/components/learn_gitlab.vue';
import { testActions, testSections } from './mock_data'; import { testActions, testSections } from './mock_data';
describe('Learn GitLab Design A', () => { describe('Learn GitLab', () => {
let wrapper; let wrapper;
const createWrapper = () => { const createWrapper = () => {
wrapper = mount(LearnGitlabA, { propsData: { actions: testActions, sections: testSections } }); wrapper = mount(LearnGitlab, { propsData: { actions: testActions, sections: testSections } });
}; };
beforeEach(() => { beforeEach(() => {
......
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