Skip to content

Commit fb9a0ae

Browse files
committed
fix regex
1 parent a7b4f40 commit fb9a0ae

File tree

1 file changed

+2
-2
lines changed
  • dev-packages/browser-integration-tests/suites/span-first/web-vitals/web-vitals-ttfb

1 file changed

+2
-2
lines changed

dev-packages/browser-integration-tests/suites/span-first/web-vitals/web-vitals-ttfb/test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@ sentryTest('captures TTFB web vital', async ({ getLocalTestUrl, page }) => {
2222
const responseStart = await page.evaluate("performance.getEntriesByType('navigation')[0].responseStart;");
2323
if (responseStart !== 0) {
2424
expect(pageloadSpan!.attributes?.['ui.web_vital.ttfb']).toEqual({
25-
type: expect.stringMatching(/^(integer|double)$/),
25+
type: expect.stringMatching(/^(integer)|(double)$/),
2626
value: expect.any(Number),
2727
});
2828
}
2929

3030
expect(pageloadSpan!.attributes?.['ui.web_vital.ttfb.requestTime']).toEqual({
31-
type: expect.stringMatching(/^(integer|double)$/),
31+
type: expect.stringMatching(/^(integer)|(double)$/),
3232
value: expect.any(Number),
3333
});
3434
});

0 commit comments

Comments
 (0)