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
2412ddf0
Commit
2412ddf0
authored
Mar 01, 2020
by
GitLab Bot
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add latest changes from gitlab-org/gitlab@master
parent
9c1fa86a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
10 deletions
+19
-10
changelogs/unreleased/208548-better-spec-test-for-error-tracking-web-ui.yml
...sed/208548-better-spec-test-for-error-tracking-web-ui.yml
+5
-0
spec/support/shared_contexts/features/error_tracking_shared_context.rb
...shared_contexts/features/error_tracking_shared_context.rb
+1
-1
spec/support/shared_examples/features/error_tracking_shared_example.rb
...shared_examples/features/error_tracking_shared_example.rb
+13
-9
No files found.
changelogs/unreleased/208548-better-spec-test-for-error-tracking-web-ui.yml
0 → 100644
View file @
2412ddf0
---
title
:
Fix fixtures for Error Tracking Web UI
merge_request
:
26233
author
:
Takuya Noguchi
type
:
other
spec/support/shared_contexts/features/error_tracking_shared_context.rb
View file @
2412ddf0
...
...
@@ -13,7 +13,7 @@ shared_context 'sentry error tracking context feature' do
let
(
:issue_id
)
{
issue_response
[
'id'
]
}
let
(
:issue_seen
)
{
1
.
year
.
ago
.
utc
}
let
(
:formatted_issue_seen
)
{
issue_seen
.
strftime
(
"%Y-%m-%d %-l:%M:%S%p %Z"
)
}
let
(
:date_received
)
{
1
.
month
.
ago
.
utc
}
let
(
:date_received
)
{
32
.
days
.
ago
.
utc
}
before
do
request_headers
=
{
'Authorization'
=>
'Bearer access_token_123'
,
'Content-Type'
=>
'application/json'
}
...
...
spec/support/shared_examples/features/error_tracking_shared_example.rb
View file @
2412ddf0
...
...
@@ -50,17 +50,21 @@ end
shared_examples
'error tracking show page'
do
it
'renders the error details'
do
content
=
page
.
find
(
".content"
)
nav
=
page
.
find
(
"nav.breadcrumbs"
)
header
=
page
.
find
(
".error-details-header"
)
release_short_version
=
issue_response
[
'firstRelease'
][
'shortVersion'
]
expect
(
page
).
to
have_content
(
'1 month ago by raven.scripts.runner in main'
)
expect
(
page
).
to
have_content
(
issue_response
[
'metadata'
][
'title'
])
expect
(
page
).
to
have_content
(
'level: error'
)
expect
(
page
).
to
have_content
(
'Error Details'
)
expect
(
page
).
to
have_content
(
'GitLab Issue: https://gitlab.com/gitlab-org/gitlab/issues/1'
)
expect
(
page
).
to
have_content
(
"Sentry event: https://sentrytest.gitlab.com/sentry-org/sentry-project/issues/
#{
issue_id
}
"
)
expect
(
page
).
to
have_content
(
"First seen: 1 year ago (
#{
formatted_issue_seen
}
) Release:
#{
release_short_version
}
"
)
expect
(
page
).
to
have_content
(
'Events: 1'
)
expect
(
page
).
to
have_content
(
'Users: 0'
)
expect
(
header
).
to
have_content
(
'1 month ago by raven.scripts.runner in main'
)
expect
(
content
).
to
have_content
(
issue_response
[
'metadata'
][
'title'
])
expect
(
content
).
to
have_content
(
'level: error'
)
expect
(
nav
).
to
have_content
(
'Error Details'
)
expect
(
content
).
to
have_content
(
'GitLab Issue: https://gitlab.com/gitlab-org/gitlab/issues/1'
)
expect
(
content
).
to
have_content
(
"Sentry event: https://sentrytest.gitlab.com/sentry-org/sentry-project/issues/
#{
issue_id
}
"
)
expect
(
content
).
to
have_content
(
"First seen: 1 year ago (
#{
formatted_issue_seen
}
) Release:
#{
release_short_version
}
"
)
expect
(
content
).
to
have_content
(
'Events: 1'
)
expect
(
content
).
to
have_content
(
'Users: 0'
)
end
it
'renders the stack trace heading'
do
...
...
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