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-03-01 18:08:18 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2020-03-01 18:08:18 +0300
commit2412ddf03da787012161ea1e8a03787275f9cde9 (patch)
treede58c421afe40aa3d2c4c8a9e8fe906d8aca2605 /spec/support/shared_examples/features
parent9c1fa86a6aa0268eae2fafc7d90908502942b810 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/support/shared_examples/features')
-rw-r--r--spec/support/shared_examples/features/error_tracking_shared_example.rb22
1 files changed, 13 insertions, 9 deletions
diff --git a/spec/support/shared_examples/features/error_tracking_shared_example.rb b/spec/support/shared_examples/features/error_tracking_shared_example.rb
index edc1f42f646..922d2627bce 100644
--- a/spec/support/shared_examples/features/error_tracking_shared_example.rb
+++ b/spec/support/shared_examples/features/error_tracking_shared_example.rb
@@ -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