Skip to content

Commit

Permalink
debug test...
Browse files Browse the repository at this point in the history
  • Loading branch information
mydea committed Jul 12, 2023
1 parent 7d4596c commit 79a3fa0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ Sentry.init({
// Always capture replays, so we can test this properly
replaysSessionSampleRate: 1.0,
replaysOnErrorSampleRate: 0.0,

debug: true,
});

Object.defineProperty(window, 'sentryReplayId', {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ const sentryTestOrgSlug = process.env.E2E_TEST_SENTRY_ORG_SLUG;
const sentryTestProject = process.env.E2E_TEST_SENTRY_TEST_PROJECT;

test('Sends an exception to Sentry', async ({ page }) => {
page.on('console', msg => console.log(msg.text()));

await page.goto('/');

const exceptionButton = page.locator('id=exception-button');
Expand All @@ -18,9 +20,6 @@ test('Sends an exception to Sentry', async ({ page }) => {
const exceptionEventId = await exceptionIdHandle.jsonValue();

console.log(`Polling for error eventId: ${exceptionEventId}`);
console.log(
`Fetching from URL https://sentry.io/api/0/projects/${sentryTestOrgSlug}/${sentryTestProject}/events/${exceptionEventId}/`,
);

await expect
.poll(
Expand Down

0 comments on commit 79a3fa0

Please sign in to comment.