@@ -24,7 +24,18 @@ module.exports = {
2424 'Should clone the Vyper repo #group1' : function ( browser : NightwatchBrowser ) {
2525 browser . click ( 'button[data-id="add-repository"]' )
2626 . frameParent ( )
27- . waitForElementContainsText ( '*[data-shared="tooltipPopup"]' , 'Vyper repository cloned' , 60000 )
27+ . clickLaunchIcon ( 'filePanel' )
28+ . waitForElementVisible ( {
29+ selector : "//*[@data-id='workspacesSelect' and contains(.,'vyper-lang')]" ,
30+ locateStrategy : 'xpath' ,
31+ timeout : 60000
32+ } )
33+ . currentWorkspaceIs ( 'vyper-lang' )
34+ . waitForElementVisible ( {
35+ selector : "//*[@data-id='treeViewLitreeViewItemexamples' and contains(.,'examples')]" ,
36+ locateStrategy : 'xpath' ,
37+ timeout : 60000
38+ } )
2839 . openFile ( 'examples' )
2940 . openFile ( 'examples/auctions' )
3041 . openFile ( 'examples/auctions/blind_auction.vy' )
@@ -36,7 +47,21 @@ module.exports = {
3647 . frame ( 0 )
3748 . click ( '[data-id="remote-compiler"]' )
3849 . click ( '[data-id="compile"]' )
39- . waitForElementVisible ( '[data-id="copy-abi"]' )
50+ . isVisible ( {
51+ selector : '[data-id="copy-abi"]' ,
52+ timeout : 4000 ,
53+ abortOnFailure : false ,
54+ suppressNotFoundErrors : true
55+ } , ( okVisible ) => {
56+ if ( okVisible . value === null ) {
57+ console . log ( 'retrying compilation...' )
58+ browser . click ( '[data-id="compile"]' ) . waitForElementVisible ( '[data-id="copy-abi"]' )
59+ } else {
60+ browser . assert . ok ( okVisible . value === true , 'ABI should be visible' )
61+ }
62+ } )
63+
64+
4065 } ,
4166
4267 'Compile test contract and deploy to remix VM #group1' : function ( browser : NightwatchBrowser ) {
@@ -50,6 +75,19 @@ module.exports = {
5075 // @ts -ignore
5176 . frame ( 0 )
5277 . click ( '[data-id="compile"]' )
78+ . isVisible ( {
79+ selector : '[data-id="copy-abi"]' ,
80+ timeout : 4000 ,
81+ abortOnFailure : false ,
82+ suppressNotFoundErrors : true
83+ } , ( okVisible ) => {
84+ if ( okVisible . value === null ) {
85+ console . log ( 'retrying compilation...' )
86+ browser . click ( '[data-id="compile"]' ) . waitForElementVisible ( '[data-id="copy-abi"]' )
87+ } else {
88+ browser . assert . ok ( okVisible . value === true , 'ABI should be visible' )
89+ }
90+ } )
5391 . frameParent ( )
5492 . clickLaunchIcon ( 'udapp' )
5593 . createContract ( '' )
0 commit comments