Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-01-17 12:08:24 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2020-01-17 12:08:24 +0300
commit728a207ea6a99a4bddc16dbbe82294d3fdb60fe4 (patch)
tree4bc3b6a859681de3bbeabd7bf2ec5ffd756f3a0a /spec/frontend/error_tracking
parentea20020f71c7226d57b6449b1d9b6c6f1298223e (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/frontend/error_tracking')
-rw-r--r--spec/frontend/error_tracking/components/error_details_spec.js32
1 files changed, 32 insertions, 0 deletions
diff --git a/spec/frontend/error_tracking/components/error_details_spec.js b/spec/frontend/error_tracking/components/error_details_spec.js
index e876a6da922..e19cb1fd3c1 100644
--- a/spec/frontend/error_tracking/components/error_details_spec.js
+++ b/spec/frontend/error_tracking/components/error_details_spec.js
@@ -246,5 +246,37 @@ describe('ErrorDetails', () => {
});
});
});
+
+ describe('GitLab commit link', () => {
+ const gitlabCommit = '7975be0116940bf2ad4321f79d02a55c5f7779aa';
+ const gitlabCommitPath =
+ '/gitlab-org/gitlab-test/commit/7975be0116940bf2ad4321f79d02a55c5f7779aa';
+ const findGitLabCommitLink = () => wrapper.find(`[href$="${gitlabCommitPath}"]`);
+
+ it('should display a link', () => {
+ mocks.$apollo.queries.GQLerror.loading = false;
+ wrapper.setData({
+ GQLerror: {
+ gitlabCommit,
+ gitlabCommitPath,
+ },
+ });
+ return wrapper.vm.$nextTick().then(() => {
+ expect(findGitLabCommitLink().exists()).toBe(true);
+ });
+ });
+
+ it('should display a link', () => {
+ mocks.$apollo.queries.GQLerror.loading = false;
+ wrapper.setData({
+ GQLerror: {
+ gitlabCommit: null,
+ },
+ });
+ return wrapper.vm.$nextTick().then(() => {
+ expect(findGitLabCommitLink().exists()).toBe(false);
+ });
+ });
+ });
});
});