File tree Expand file tree Collapse file tree 1 file changed +27
-0
lines changed
tests/cypress/component/loan Expand file tree Collapse file tree 1 file changed +27
-0
lines changed Original file line number Diff line number Diff line change 1+ import { ClientWrapper , type Config } from '@cy/support/helpers/ClientWrapper'
2+ import { createTestWagmiConfigFromVNet , forkVirtualTestnet } from '@cy/support/helpers/tenderly'
3+
4+ const getVirtualNetwork = forkVirtualTestnet ( ( uuid ) => ( {
5+ vnet_id : 'a967f212-c4a3-4d65-afb6-2e79055f7a6f' ,
6+ display_name : `Cypress Soft Liq Fork ${ uuid } ` ,
7+ } ) )
8+
9+ const TestComponent = ( { config } : { config : Config } ) => (
10+ < ClientWrapper config = { config } autoConnect = { false } >
11+ Yolo mag swagginton
12+ </ ClientWrapper >
13+ )
14+
15+ describe ( 'PegKeeper' , ( ) => {
16+ it ( `should work for loan app` , ( ) => {
17+ const vnet = getVirtualNetwork ( )
18+ if ( ! vnet ) {
19+ cy . log ( 'Could not fetch virtual testnet' )
20+ return
21+ }
22+
23+ const config = createTestWagmiConfigFromVNet ( vnet )
24+ cy . mount ( < TestComponent config = { config } /> )
25+ cy . log ( JSON . stringify ( vnet ) )
26+ } )
27+ } )
You can’t perform that action at this time.
0 commit comments