Paste #264582

   
pasted on 30.08.2022 00:01
  • Edit to this paste
  • Print
  • Raw
  • The following pastes replied to this paste:  # 277414
  • Show paste tree
  • Compare with paste
    #  
  • Toggle line numbers
  • Syntax highlighting  
Text paste
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
const assert = require('assert')
const driverModule = require("../../wallets/libs/buildDriver");

const {profilePath, appPath} = require('../../configs/paths');
const {robot, teleport} = require('../../configs/urls');

const {txUrlId, fuckBtnId, continueBtnId } = require('../../wallets/keplr/pages/robot');

const {applyBtnId} = require('../../wallets/keplr/pages/keplr');
const { clickOnElement, ensureOneWindowsOpen, ensureElPresentDOM, closeWindow, checkWindowHandle,
  navigateToUrl, switchToNewWindow, switchToOriginalWindow2, setPassword, setTokenAmount,
  switchToOriginalWindow, chooseBuyToken, chooseSellToken, clearTokenAmount, chooseBtnClick
} = require('../../wallets/libs/webdriverRelated');

const {takeScreenshot} = require('../../wallets/libs/fsRelated');
let driver = new driverModule(profilePath, appPath);
let defaultWindow;

describe('add()', async()=>{
  let networks=[];
  let tokens=[];

  before(async () => {
    defaultWindow = await checkWindowHandle(driver.getDriver());
    await navigateToUrl(driver.getDriver(), robot);
    await switchToNewWindow(driver.getDriver(), defaultWindow);
    await setPassword(driver.getDriver());
    await switchToOriginalWindow(driver.getDriver(), defaultWindow, []);
    await navigateToUrl(driver.getDriver(), teleport);
  });


  tokens.forEach(function(token) {

    tokens.forEach(function(token2) {

      it('Baaaaaa!!! token from: ${token.name}, to: ${token2.name}', async function() {



      });
    });
  });
});
Add Comment
Author