Skip to content

Commit 6d8af1f

Browse files
committed
Try adding failing tests.
1 parent 7597e64 commit 6d8af1f

File tree

4 files changed

+34
-0
lines changed
  • dev-packages/browser-integration-tests/suites/integrations/httpclient/fetch

4 files changed

+34
-0
lines changed

dev-packages/browser-integration-tests/suites/integrations/httpclient/fetch/simple/test.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,14 @@ sentryTest(
4242
type: 'http.client',
4343
handled: false,
4444
},
45+
stacktrace: {
46+
frames: expect.arrayContaining([
47+
{
48+
function: 'fetch',
49+
in_app: true,
50+
},
51+
]),
52+
}
4553
},
4654
],
4755
},

dev-packages/browser-integration-tests/suites/integrations/httpclient/fetch/withRequest/test.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,14 @@ sentryTest('works with a Request passed in', async ({ getLocalTestUrl, page }) =
3838
type: 'http.client',
3939
handled: false,
4040
},
41+
stacktrace: {
42+
frames: expect.arrayContaining([
43+
{
44+
function: 'fetch',
45+
in_app: true,
46+
},
47+
]),
48+
}
4149
},
4250
],
4351
},

dev-packages/browser-integration-tests/suites/integrations/httpclient/fetch/withRequestAndBodyAndOptions/test.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ sentryTest(
2727

2828
expect(eventData.exception?.values).toHaveLength(1);
2929

30+
console.debug(eventData.exception);
31+
3032
// Not able to get the cookies from the request/response because of Playwright bug
3133
// https://github.com/microsoft/playwright/issues/11035
3234
expect(eventData).toMatchObject({
@@ -40,6 +42,14 @@ sentryTest(
4042
type: 'http.client',
4143
handled: false,
4244
},
45+
stacktrace: {
46+
frames: expect.arrayContaining([
47+
{
48+
function: 'fetch',
49+
in_app: true,
50+
},
51+
]),
52+
},
4353
},
4454
],
4555
},

dev-packages/browser-integration-tests/suites/integrations/httpclient/fetch/withRequestAndOptions/test.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,14 @@ sentryTest('works with a Request (without body) & options passed in', async ({ g
3838
type: 'http.client',
3939
handled: false,
4040
},
41+
stacktrace: {
42+
frames: expect.arrayContaining([
43+
{
44+
function: 'fetch',
45+
in_app: true,
46+
},
47+
])
48+
},
4149
},
4250
],
4351
},

0 commit comments

Comments
 (0)