@@ -2,7 +2,11 @@ import { expect } from '@playwright/test';
22
33export 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 ( / h t t p : \/ \/ l o c a l h o s t : \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 ( / h t t p : \/ \ /l o c a l h o s t : \d + \ /u s e r \/ 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 ( / h t t p : \/ \ /l o c a l h o s t : \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 ( / 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 / ) ,
170174 startTimestamp : expect . any ( Number ) ,
171175 endTimestamp : expect . any ( Number ) ,
172176 data : {
0 commit comments