Skip to content

Commit

Permalink
Await runScriptInSandbox.
Browse files Browse the repository at this point in the history
  • Loading branch information
onurtemizkan committed Apr 24, 2024
1 parent e5710bb commit 5460825
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
Expand Up @@ -18,7 +18,7 @@ sentryTest(

const errorEventPromise = getFirstSentryEnvelopeRequest<Event>(page);

runScriptInSandbox(page, {
await runScriptInSandbox(page, {
content: `
throw {
type: 'Error',
Expand Down
Expand Up @@ -18,7 +18,7 @@ sentryTest(

const errorEventsPromise = getMultipleSentryEnvelopeRequests<Event>(page, 2);

runScriptInSandbox(page, {
await runScriptInSandbox(page, {
content: `
try {
try {
Expand Down
Expand Up @@ -16,7 +16,7 @@ sentryTest('should catch syntax errors', async ({ getLocalTestPath, page, browse

const errorEventPromise = getFirstSentryEnvelopeRequest<Event>(page);

runScriptInSandbox(page, {
await runScriptInSandbox(page, {
content: `
foo{}; // SyntaxError
`,
Expand Down
Expand Up @@ -16,7 +16,7 @@ sentryTest('should catch thrown errors', async ({ getLocalTestPath, page, browse

const errorEventPromise = getFirstSentryEnvelopeRequest<Event>(page);

runScriptInSandbox(page, {
await runScriptInSandbox(page, {
content: `
throw new Error('realError');
`,
Expand Down
Expand Up @@ -16,7 +16,7 @@ sentryTest('should catch thrown strings', async ({ getLocalTestPath, page, brows

const errorEventPromise = getFirstSentryEnvelopeRequest<Event>(page);

runScriptInSandbox(page, {
await runScriptInSandbox(page, {
content: `
throw 'stringError';
`,
Expand Down
Expand Up @@ -26,7 +26,7 @@ sentryTest(

const errorEventsPromise = getMultipleSentryEnvelopeRequests<Event>(page, 2);

runScriptInSandbox(page, {
await runScriptInSandbox(page, {
content: `
function run() {
Sentry.startSpan({ name: 'parent_span' }, () => {
Expand Down
Expand Up @@ -25,7 +25,7 @@ sentryTest(

const errorEventsPromise = getMultipleSentryEnvelopeRequests<Event>(page, 2);

runScriptInSandbox(page, {
await runScriptInSandbox(page, {
content: `
throw new Error('Error during pageload');
`,
Expand Down

0 comments on commit 5460825

Please sign in to comment.