Skip to content

Commit 45c67c8

Browse files
author
Luca Forstner
committed
fix test
1 parent 12a8c09 commit 45c67c8

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

packages/e2e-tests/test-applications/standard-frontend-react/tests/fixtures/ReplayRecordingData.ts

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,11 @@ import { expect } from '@playwright/test';
22

33
export const ReplayRecordingData = [
44
[
5-
{ type: 4, data: { href: 'http://localhost:3000/', width: 1280, height: 720 }, timestamp: expect.any(Number) },
5+
{
6+
type: 4,
7+
data: { href: expect.stringMatching(/http:\/\/localhost:\d+\//), width: 1280, height: 720 },
8+
timestamp: expect.any(Number),
9+
},
610
{
711
type: 2,
812
data: {
@@ -105,7 +109,7 @@ export const ReplayRecordingData = [
105109
node: {
106110
type: 2,
107111
tagName: 'a',
108-
attributes: { id: 'navigation', href: 'http://localhost:3000/user/5' },
112+
attributes: { id: 'navigation', href: expect.stringMatching(/http:\/\/localhost:\d+\/user\/5/) },
109113
childNodes: [],
110114
id: 14,
111115
},
@@ -140,7 +144,7 @@ export const ReplayRecordingData = [
140144
tag: 'performanceSpan',
141145
payload: {
142146
op: 'navigation.navigate',
143-
description: 'http://localhost:3000/',
147+
description: expect.stringMatching(/http:\/\/localhost:\d+\//),
144148
startTimestamp: expect.any(Number),
145149
endTimestamp: expect.any(Number),
146150
data: {
@@ -166,7 +170,7 @@ export const ReplayRecordingData = [
166170
tag: 'performanceSpan',
167171
payload: {
168172
op: 'resource.script',
169-
description: expect.stringMatching(/http:\/\/localhost:3000\/static\/js\/main.(\w+).js/),
173+
description: expect.stringMatching(/http:\/\/localhost:\d+\/static\/js\/main.(\w+).js/),
170174
startTimestamp: expect.any(Number),
171175
endTimestamp: expect.any(Number),
172176
data: {

0 commit comments

Comments
 (0)