@@ -2,7 +2,11 @@ import { expect } from '@playwright/test';
2
2
3
3
export const ReplayRecordingData = [
4
4
[
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 ( / h t t p : \/ \/ l o c a l h o s t : \d + \/ / ) , width : 1280 , height : 720 } ,
8
+ timestamp : expect . any ( Number ) ,
9
+ } ,
6
10
{
7
11
type : 2 ,
8
12
data : {
@@ -105,7 +109,7 @@ export const ReplayRecordingData = [
105
109
node : {
106
110
type : 2 ,
107
111
tagName : 'a' ,
108
- attributes : { id : 'navigation' , href : ' http:/ /localhost:3000 /user/5' } ,
112
+ attributes : { id : 'navigation' , href : expect . stringMatching ( / h t t p : \/ \ /l o c a l h o s t : \d + \ /u s e r \/ 5 / ) } ,
109
113
childNodes : [ ] ,
110
114
id : 14 ,
111
115
} ,
@@ -140,7 +144,7 @@ export const ReplayRecordingData = [
140
144
tag : 'performanceSpan' ,
141
145
payload : {
142
146
op : 'navigation.navigate' ,
143
- description : ' http:/ /localhost:3000/' ,
147
+ description : expect . stringMatching ( / h t t p : \/ \ /l o c a l h o s t : \d + \/ / ) ,
144
148
startTimestamp : expect . any ( Number ) ,
145
149
endTimestamp : expect . any ( Number ) ,
146
150
data : {
@@ -166,7 +170,7 @@ export const ReplayRecordingData = [
166
170
tag : 'performanceSpan' ,
167
171
payload : {
168
172
op : 'resource.script' ,
169
- description : expect . stringMatching ( / h t t p : \/ \/ l o c a l h o s t : 3 0 0 0 \/ s t a t i c \/ j s \/ m a i n .( \w + ) .j s / ) ,
173
+ description : expect . stringMatching ( / h t t p : \/ \/ l o c a l h o s t : \d + \/ s t a t i c \/ j s \/ m a i n .( \w + ) .j s / ) ,
170
174
startTimestamp : expect . any ( Number ) ,
171
175
endTimestamp : expect . any ( Number ) ,
172
176
data : {
0 commit comments