Skip to content

Commit

Permalink
some fixes
Browse files Browse the repository at this point in the history
- tracesSampleRate: 1
- environment: 'qa'
- add to CI
  • Loading branch information
Lms24 committed Aug 7, 2024
1 parent 859ec81 commit b6dcb74
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -859,6 +859,7 @@ jobs:
'create-remix-app-express',
'create-remix-app-express-legacy',
'create-remix-app-express-vite-dev',
'default-browser',
'node-express-esm-loader',
'node-express-esm-preload',
'node-express-esm-without-loader',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
import * as Sentry from '@sentry/react';
import * as Sentry from '@sentry/browser';

Sentry.init({
release: 'e2e-test',
dsn: process.env.E2E_TEST_DSN,
tunnel: 'http://localhost:3031',
integrations: [Sentry.browserTracingIntegration()],
tracesSampleRate: 1.0,
release: 'e2e-test',
environment: 'qa',
tunnel: 'http://localhost:3031',
});

document.getElementById('exception-button').addEventListener('click', () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { expect, test } from '@playwright/test';
import { waitForError } from '@sentry-internal/test-utils';

test('Should send correct error event', async ({ page }) => {
test('captures an error', async ({ page }) => {
const errorEventPromise = waitForError('default-browser', event => {
return !event.type && event.exception?.values?.[0]?.value === 'I am an error!';
});
Expand Down

0 comments on commit b6dcb74

Please sign in to comment.