@@ -90,19 +90,19 @@ test.describe('Profile', () => {
9090 } )
9191
9292 test ( 'should show a warning if name is not supported' , async ( { page } ) => {
93- await page . goto ( '/name.nottld' )
93+ await page . goto ( '/name.nottld?chain=holesky ' )
9494 await expect ( page . getByText ( 'This TLD is not supported' ) ) . toBeVisible ( { timeout : 25000 } )
9595 } )
9696
9797 test ( 'should load emoji domain pages' , async ( { page } ) => {
98- await page . goto ( '/%E2%9D%A4%EF%B8%8F%E2%9D%A4%EF%B8%8F%E2%9D%A4%EF%B8%8F.eth' )
98+ await page . goto ( '/%E2%9D%A4%EF%B8%8F%E2%9D%A4%EF%B8%8F%E2%9D%A4%EF%B8%8F.eth?chain=holesky ' )
9999 await expect ( page . getByTestId ( 'profile-snippet-name' ) ) . toContainText ( '❤️❤️❤️.eth' , {
100100 timeout : 25000 ,
101101 } )
102102 } )
103103
104104 test ( 'should allow searching for emoji domain' , async ( { page, login } ) => {
105- await page . goto ( '/' )
105+ await page . goto ( '/?chain=holesky ' )
106106 await login . connect ( )
107107
108108 await page . getByPlaceholder ( 'Search for a name' ) . fill ( '❤️❤️❤️❤️❤️❤️.eth' )
@@ -114,7 +114,7 @@ test.describe('Profile', () => {
114114
115115 for ( const profile of profiles ) {
116116 test ( `should load profile for: ${ profile . name } ` , async ( { page, login } ) => {
117- await page . goto ( '/' )
117+ await page . goto ( '/?chain=holesky ' )
118118 await login . connect ( )
119119
120120 await page . getByPlaceholder ( 'Search for a name' ) . fill ( profile . name )
@@ -233,20 +233,22 @@ test.describe('Profile', () => {
233233 }
234234
235235 test ( 'should decode an unknown label' , async ( { page, login } ) => {
236- await page . goto ( '/' )
236+ await page . goto ( '/?chain=holesky ' )
237237 await login . connect ( )
238- // eslint-disable-next-line no-restricted-syntax
239- await page . goto ( '/[8df9cfc425ad5e1853259e1cef0a8d1d44591fbec8e3feb6f930d9dfacd5eff2].eth' )
238+ await page . goto (
239+ // eslint-disable-next-line no-restricted-syntax
240+ '/[8df9cfc425ad5e1853259e1cef0a8d1d44591fbec8e3feb6f930d9dfacd5eff2].eth?chain=holesky' ,
241+ )
240242 await expect ( page . getByTestId ( 'profile-snippet' ) ) . toContainText ( 'wrapmebaby.eth' , {
241243 timeout : 25000 ,
242244 } )
243245 } )
244246
245247 test ( 'should show wrapped DNS name warning' , async ( { page, login } ) => {
246- await page . goto ( '/' )
248+ await page . goto ( '/?chain=holesky ' )
247249 await login . connect ( )
248250
249- await page . goto ( '/wrappeddnsname.com' )
251+ await page . goto ( '/wrappeddnsname.com?chain=holesky ' )
250252 await expect ( page . getByTestId ( 'profile-snippet' ) ) . toContainText ( 'wrappeddnsname.com' )
251253 } )
252254} )
0 commit comments