summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-03-20 06:09:38 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2020-03-20 06:09:38 +0000
commite380e59ef5d1aa03922df49626c302da5eb30699 (patch)
treef68a1c643813a3c0e44fc52c1040882ba4683f4b /spec
parentd2b53bd7227495c615c865825f01a7fd7b9df9e0 (diff)
downloadgitlab-ce-e380e59ef5d1aa03922df49626c302da5eb30699.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec')
-rw-r--r--spec/frontend/vue_shared/components/form/__snapshots__/title_spec.js.snap12
-rw-r--r--spec/frontend/vue_shared/components/form/title_spec.js22
2 files changed, 34 insertions, 0 deletions
diff --git a/spec/frontend/vue_shared/components/form/__snapshots__/title_spec.js.snap b/spec/frontend/vue_shared/components/form/__snapshots__/title_spec.js.snap
new file mode 100644
index 00000000000..980e9b517db
--- /dev/null
+++ b/spec/frontend/vue_shared/components/form/__snapshots__/title_spec.js.snap
@@ -0,0 +1,12 @@
+// Jest Snapshot v1, https://goo.gl/fbAQLP
+
+exports[`Title edit field matches the snapshot 1`] = `
+<gl-form-group-stub
+ label="Title"
+ label-for="title-field-edit"
+>
+ <gl-form-input-stub
+ id="title-field-edit"
+ />
+</gl-form-group-stub>
+`;
diff --git a/spec/frontend/vue_shared/components/form/title_spec.js b/spec/frontend/vue_shared/components/form/title_spec.js
new file mode 100644
index 00000000000..38ef1bb3aa7
--- /dev/null
+++ b/spec/frontend/vue_shared/components/form/title_spec.js
@@ -0,0 +1,22 @@
+import TitleField from '~/vue_shared/components/form/title.vue';
+import { shallowMount } from '@vue/test-utils';
+
+describe('Title edit field', () => {
+ let wrapper;
+
+ function createComponent() {
+ wrapper = shallowMount(TitleField);
+ }
+
+ beforeEach(() => {
+ createComponent();
+ });
+
+ afterEach(() => {
+ wrapper.destroy();
+ });
+
+ it('matches the snapshot', () => {
+ expect(wrapper.element).toMatchSnapshot();
+ });
+});