File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -15,28 +15,6 @@ test('navigation', async ({ page }) => {
1515 await expect ( page . getByText ( 'How is Etherlink governed?' ) ) . toBeVisible ( ) ;
1616} ) ;
1717
18- test ( 'code copy buttons' , async ( { page, context } ) => {
19- await context . grantPermissions ( [ 'clipboard-read' ] ) ;
20- await page . goto ( 'https://docs.etherlink.com/get-started/network-information' ) ;
21-
22- // Click copy button
23- const mainnetAddressButton = page . locator ( 'xpath=//a[@href="https://tzkt.io/sr1Ghq66tYK9y3r8CC1Tf8i8m5nxh8nTvZEf"]/following-sibling::button' ) ;
24- await mainnetAddressButton . click ( ) ;
25-
26- // Check clipboard contents
27- const clipboardContent = await page . evaluate ( ( ) => navigator . clipboard . readText ( ) ) ;
28- await expect ( clipboardContent ) . toEqual ( 'sr1Ghq66tYK9y3r8CC1Tf8i8m5nxh8nTvZEf' ) ;
29-
30- // Try a different button
31- const rpcButton = page . locator ( 'xpath=//code[text()="https://node.mainnet.etherlink.com"]/following-sibling::button' ) ;
32- await rpcButton . click ( ) ;
33-
34- // Check clipboard contents
35- const clipboardContent2 = await page . evaluate ( ( ) => navigator . clipboard . readText ( ) ) ;
36- await expect ( clipboardContent2 ) . toEqual ( 'https://node.mainnet.etherlink.com' ) ;
37-
38- } ) ;
39-
4018test ( 'search' , async ( { page } ) => {
4119 await page . goto ( 'https://docs.etherlink.com/' ) ;
4220 await page . getByText ( "Search" ) . click ( )
You can’t perform that action at this time.
0 commit comments