ui/e2e/pages/BalancesPage.js
// TODO: handling popup to be done outside of this page method
handling popup to be done outside of this page method
handling popup to be done outside of this page method
async export(asset, amount) {
    await page.click(`[data-handle='export-${asset.toLowerCase()}']`);
    await page.click('[data-handle="import-input"]');
    await page.fill('[data-handle="import-input"]', amount);
    await page.click('button:has-text("Export")');
    const [confirmPopup] = await Promise.all([
      context.waitForEvent("page"),
      page.click('button:has-text("Confirm Export")'),
    ]);
    await Promise.all([
      confirmPopup.waitForEvent("close"),
      confirmPopup.click('button:has-text("Approve")'),
    ]);
    await page.waitForSelector("text=Transaction Submitted");
    await this.closeSubmissionWindow();
    await page.waitForTimeout(10000); 
  }
async export ( asset , amount ) { await page . click ( ` ${ asset . toLowerCase ( ) } ` ) ; await page . click ( '[data-handle="import-input"]' ) ; await page . fill ( '[data-handle="import-input"]' , amount ) ; await page . click ( 'button:has-text("Export")' ) ; const [ confirmPopup ] = await Promise . all ( [ context . waitForEvent ( "page" ) , page . click ( 'button:has-text("Confirm Export")' ) , ] ) ; await Promise . all ( [ confirmPopup . waitForEvent ( "close" ) , confirmPopup . click ( 'button:has-text("Approve")' ) , ] ) ; await page . waitForSelector ( "text=Transaction Submitted" ) ; await this . closeSubmissionWindow ( ) ; await page . waitForTimeout ( 10000 ) ; }
TODO: handling popup to be done outside of this page method
TODO : handling popup to be done outside of this page method
// wait for sifnode to validate the tx TODO: replace this wait with some dynamic condition