@@ -289,19 +289,11 @@ describe('transaction-wizard-page', () => {
289289 target : { value : walletAccount . addr } ,
290290 } )
291291
292- const receiverInput = await component . findByLabelText ( / R e c e i v e r / )
293- fireEvent . input ( receiverInput , {
294- target : { value : walletAccount . addr } ,
295- } )
296-
297292 const closeToInput = await component . findByLabelText ( / C l o s e r e m a i n d e r t o / )
298293 fireEvent . input ( closeToInput , {
299294 target : { value : testAccount2 . addr } ,
300295 } )
301296
302- const amountInput = await component . findByLabelText ( / A m o u n t t o p a y / )
303- fireEvent . input ( amountInput , { target : { value : '0' } } )
304-
305297 const addButton = await waitFor ( ( ) => {
306298 const addButton = component . getByRole ( 'button' , { name : 'Add' } )
307299 expect ( addButton ) . not . toBeDisabled ( )
@@ -347,66 +339,6 @@ describe('transaction-wizard-page', () => {
347339 }
348340 )
349341 } )
350-
351- it ( 'can simulate a close account transaction without defining a sender address' , async ( ) => {
352- const testAccount2 = await localnet . context . generateAccount ( { initialFunds : algo ( 0 ) } )
353-
354- await executeComponentTest (
355- ( ) => {
356- return render ( < TransactionWizardPage /> )
357- } ,
358- async ( component , user ) => {
359- const addTransactionButton = await waitFor ( ( ) => {
360- const addTransactionButton = component . getByRole ( 'button' , { name : addTransactionLabel } )
361- expect ( addTransactionButton ) . not . toBeDisabled ( )
362- return addTransactionButton !
363- } )
364- await user . click ( addTransactionButton )
365-
366- await selectOption ( component . baseElement , user , transactionTypeLabel , 'Account Close (pay)' )
367-
368- const receiverInput = await component . findByLabelText ( / R e c e i v e r / )
369- fireEvent . input ( receiverInput , {
370- target : { value : walletAccount . addr } ,
371- } )
372-
373- const closeToInput = await component . findByLabelText ( / C l o s e r e m a i n d e r t o / )
374- fireEvent . input ( closeToInput , {
375- target : { value : testAccount2 . addr } ,
376- } )
377-
378- const amountInput = await component . findByLabelText ( / A m o u n t t o p a y / )
379- fireEvent . input ( amountInput , { target : { value : '0' } } )
380-
381- const addButton = await waitFor ( ( ) => {
382- const addButton = component . getByRole ( 'button' , { name : 'Add' } )
383- expect ( addButton ) . not . toBeDisabled ( )
384- return addButton !
385- } )
386- await user . click ( addButton )
387-
388- await waitFor ( ( ) => {
389- const table = component . getByLabelText ( 'transaction-group-table' )
390- expect ( table ) . toBeInTheDocument ( )
391- expect ( component . queryByText ( 'No transactions.' ) ) . not . toBeInTheDocument ( )
392- } )
393-
394- const simulateButton = await waitFor ( ( ) => {
395- const simulateButton = component . getByRole ( 'button' , { name : 'Simulate' } )
396- expect ( simulateButton ) . not . toBeDisabled ( )
397- return simulateButton !
398- } )
399-
400- await user . click ( simulateButton )
401- await waitFor (
402- ( ) => {
403- expect ( component . queryByText ( / e r r o r / i) ) . not . toBeInTheDocument ( )
404- } ,
405- { timeout : 5_000 }
406- )
407- }
408- )
409- } )
410342 } )
411343
412344 describe ( 'and an application create transaction is being sent' , ( ) => {
@@ -555,76 +487,6 @@ describe('transaction-wizard-page', () => {
555487 }
556488 )
557489 } )
558-
559- it ( 'succeeds when sending an op-up transaction' , async ( ) => {
560- await executeComponentTest (
561- ( ) => {
562- return render ( < TransactionWizardPage /> )
563- } ,
564- async ( component , user ) => {
565- const addTransactionButton = await waitFor ( ( ) => {
566- const addTransactionButton = component . getByRole ( 'button' , { name : addTransactionLabel } )
567- expect ( addTransactionButton ) . not . toBeDisabled ( )
568- return addTransactionButton !
569- } )
570- await user . click ( addTransactionButton )
571-
572- await selectOption ( component . baseElement , user , transactionTypeLabel , 'Application Create (appl)' )
573-
574- const senderInput = await component . findByLabelText ( / S e n d e r / )
575- fireEvent . input ( senderInput , {
576- target : { value : walletAccount . addr } ,
577- } )
578-
579- const approvalProgramInput = await component . findByLabelText ( / A p p r o v a l p r o g r a m / )
580- fireEvent . input ( approvalProgramInput , {
581- target : { value : 'CoEBQw==' } ,
582- } )
583-
584- const clearStateProgramInput = await component . findByLabelText ( / C l e a r s t a t e p r o g r a m / )
585- fireEvent . input ( clearStateProgramInput , {
586- target : { value : 'CoEBQw==' } ,
587- } )
588-
589- await selectOption ( component . baseElement , user , / O n c o m p l e t e / , 'Delete' )
590-
591- const addButton = await waitFor ( ( ) => {
592- const addButton = component . getByRole ( 'button' , { name : 'Add' } )
593- expect ( addButton ) . not . toBeDisabled ( )
594- return addButton !
595- } )
596- await user . click ( addButton )
597-
598- const sendButton = await waitFor ( ( ) => {
599- const sendButton = component . getByRole ( 'button' , { name : sendButtonLabel } )
600- expect ( sendButton ) . not . toBeDisabled ( )
601- return sendButton !
602- } )
603- await user . click ( sendButton )
604-
605- const resultsDiv = await waitFor (
606- ( ) => {
607- expect ( component . queryByText ( 'Required' ) ) . not . toBeInTheDocument ( )
608- return component . getByText ( groupSendResultsLabel ) . parentElement !
609- } ,
610- { timeout : 10_000 }
611- )
612-
613- const transactionId = await waitFor (
614- ( ) => {
615- const transactionLink = within ( resultsDiv )
616- . getAllByRole ( 'link' )
617- . find ( ( a ) => a . getAttribute ( 'href' ) ?. startsWith ( '/localnet/transaction' ) ) !
618- return transactionLink . getAttribute ( 'href' ) ! . split ( '/' ) . pop ( ) !
619- } ,
620- { timeout : 10_000 }
621- )
622-
623- const result = await localnet . context . waitForIndexerTransaction ( transactionId )
624- expect ( result . transaction . sender ) . toBe ( walletAccount . addr . toString ( ) )
625- }
626- )
627- } )
628490 } )
629491
630492 describe ( 'and an application update transaction is being sent' , ( ) => {
0 commit comments