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