From b161cb831388bb4d0b385fa403f27cc6fab08f3c Mon Sep 17 00:00:00 2001 From: Chris Gibb Date: Fri, 16 Nov 2018 23:01:58 -0500 Subject: [PATCH] removed old smoke test step and fixed wait for nonexistent operation --- src/guiTests/2inputRefs.ts | 4 ---- src/guiTests/req/input/indexRefs.ts | 37 ----------------------------- 2 files changed, 41 deletions(-) delete mode 100644 src/guiTests/req/input/indexRefs.ts diff --git a/src/guiTests/2inputRefs.ts b/src/guiTests/2inputRefs.ts index 03d0922d4..dd799fa15 100644 --- a/src/guiTests/2inputRefs.ts +++ b/src/guiTests/2inputRefs.ts @@ -9,8 +9,6 @@ import {openFirstProject} from "./req/projectSelection/openFirstProject"; import {openInputWindow} from "./req/input/openInputWindow"; import {openRefSeqTab} from "./req/input/openRefSeqTab"; import {inputHPV16Ref} from "./req/input/inputHPV16Ref"; -import {indexRefs} from "./req/input/indexRefs"; -import {indexSuccess} from "./req/input/indexSuccess"; import {closeToolBar} from "./req/closeToolBar"; async function runTest() : Promise @@ -20,8 +18,6 @@ async function runTest() : Promise await openInputWindow(); await openRefSeqTab(); await inputHPV16Ref(); - await indexRefs(); - await indexSuccess(); await closeToolBar(); } setTimeout(function(){ diff --git a/src/guiTests/req/input/indexRefs.ts b/src/guiTests/req/input/indexRefs.ts deleted file mode 100644 index 3cb70b708..000000000 --- a/src/guiTests/req/input/indexRefs.ts +++ /dev/null @@ -1,37 +0,0 @@ -import * as winMgr from "./../../../req/main/winMgr"; - -/** - * Triggers indexing for every ref seq in the first input window - * - * @export - * @returns {Promise} - */ -export async function indexRefs() : Promise -{ - return new Promise(async (resolve,reject) => { - setTimeout(async function(){ - console.log("indexing ref seqs"); - let input = winMgr.getFreeWebContents(); - if(!input || input.length == 0) - { - console.log("Failed to open input window"); - process.exit(1); - } - await input[0].executeJavaScript(` - let els = document.getElementsByTagName("td"); - let isIndex = /Index/; - for(let i = 0; i != els.length; ++i) - { - console.log(els[i]); - if(els[i].id && isIndex.test(els[i].id)) - { - console.log("clicked "+els[i]); - els[i].click(); - break; - } - } - `); - resolve(); - },1500); - }); -} \ No newline at end of file