Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
024e7176
Commit
024e7176
authored
Mar 24, 2021
by
Tristan Read
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Run prettier command suggested by dangerbot
parent
73638455
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
6 deletions
+4
-6
app/assets/javascripts/error_tracking_settings/store/getters.js
...sets/javascripts/error_tracking_settings/store/getters.js
+1
-1
spec/frontend/error_tracking_settings/components/error_tracking_form_spec.js
..._tracking_settings/components/error_tracking_form_spec.js
+2
-4
spec/frontend/error_tracking_settings/store/getters_spec.js
spec/frontend/error_tracking_settings/store/getters_spec.js
+1
-1
No files found.
app/assets/javascripts/error_tracking_settings/store/getters.js
View file @
024e7176
...
@@ -34,7 +34,7 @@ export const invalidProjectLabel = (state) => {
...
@@ -34,7 +34,7 @@ export const invalidProjectLabel = (state) => {
export
const
projectSelectionLabel
=
(
state
)
=>
{
export
const
projectSelectionLabel
=
(
state
)
=>
{
if
(
state
.
token
)
{
if
(
state
.
token
)
{
return
s__
(
return
s__
(
"
ErrorTracking|Click Connect to reestablish the connection to Sentry and activate the dropdown.
"
,
'
ErrorTracking|Click Connect to reestablish the connection to Sentry and activate the dropdown.
'
,
);
);
}
}
return
s__
(
'
ErrorTracking|To enable project selection, enter a valid Auth Token.
'
);
return
s__
(
'
ErrorTracking|To enable project selection, enter a valid Auth Token.
'
);
...
...
spec/frontend/error_tracking_settings/components/error_tracking_form_spec.js
View file @
024e7176
...
@@ -47,7 +47,7 @@ describe('error tracking settings form', () => {
...
@@ -47,7 +47,7 @@ describe('error tracking settings form', () => {
"
If you self-host Sentry, enter your Sentry instance's full URL. If you use Sentry's hosted solution, enter https://sentry.io
"
,
"
If you self-host Sentry, enter your Sentry instance's full URL. If you use Sentry's hosted solution, enter https://sentry.io
"
,
);
);
expect
(
pageText
).
toContain
(
expect
(
pageText
).
toContain
(
"
After adding your Auth Token, select the Connect button to load projects.
"
,
'
After adding your Auth Token, select the Connect button to load projects.
'
,
);
);
expect
(
pageText
).
not
.
toContain
(
'
Connection failed. Check Auth Token and try again.
'
);
expect
(
pageText
).
not
.
toContain
(
'
Connection failed. Check Auth Token and try again.
'
);
...
@@ -80,9 +80,7 @@ describe('error tracking settings form', () => {
...
@@ -80,9 +80,7 @@ describe('error tracking settings form', () => {
});
});
it
(
'
does not show an error
'
,
()
=>
{
it
(
'
does not show an error
'
,
()
=>
{
expect
(
wrapper
.
text
()).
not
.
toContain
(
expect
(
wrapper
.
text
()).
not
.
toContain
(
'
Connection failed. Check Auth Token and try again.
'
);
'
Connection failed. Check Auth Token and try again.
'
,
);
});
});
});
});
...
...
spec/frontend/error_tracking_settings/store/getters_spec.js
View file @
024e7176
...
@@ -86,7 +86,7 @@ describe('Error Tracking Settings - Getters', () => {
...
@@ -86,7 +86,7 @@ describe('Error Tracking Settings - Getters', () => {
state
.
token
=
'
test-token
'
;
state
.
token
=
'
test-token
'
;
expect
(
getters
.
projectSelectionLabel
(
state
)).
toEqual
(
expect
(
getters
.
projectSelectionLabel
(
state
)).
toEqual
(
"
Click Connect to reestablish the connection to Sentry and activate the dropdown.
"
,
'
Click Connect to reestablish the connection to Sentry and activate the dropdown.
'
,
);
);
});
});
});
});
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment