Skip to content

Commit

Permalink
pls dear god
Browse files Browse the repository at this point in the history
  • Loading branch information
andreiborza committed Aug 29, 2024
1 parent d67378e commit 8764f50
Showing 1 changed file with 4 additions and 2 deletions.
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.skip('captures an exception', async ({ page }) => {
test('captures an exception', async ({ page }) => {
const errorEventPromise = waitForError('solidstart', errorEvent => {
return (
!errorEvent.type &&
Expand All @@ -10,6 +10,7 @@ test.skip('captures an exception', async ({ page }) => {
);
});

await page.waitForTimeout(5000);
await page.goto('/error-boundary');
await page.locator('#caughtErrorBtn').click();
const errorEvent = await errorEventPromise;
Expand All @@ -31,7 +32,7 @@ test.skip('captures an exception', async ({ page }) => {
});
});

test.skip('captures a second exception after resetting the boundary', async ({ page }) => {
test('captures a second exception after resetting the boundary', async ({ page }) => {
const firstErrorEventPromise = waitForError('solidstart', errorEvent => {
return (
!errorEvent.type &&
Expand All @@ -40,6 +41,7 @@ test.skip('captures a second exception after resetting the boundary', async ({ p
);
});

await page.waitForTimeout(5000);
await page.goto('/error-boundary');
await page.locator('#caughtErrorBtn').click();
const firstErrorEvent = await firstErrorEventPromise;
Expand Down

0 comments on commit 8764f50

Please sign in to comment.