Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
45 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
console.log("Started GUI test for alignment viewing"); | ||
require("./../req/main/main"); | ||
|
||
import {openProjectsView} from "./req/projectSelection/openProjectsView"; | ||
import {openFirstProject} from "./req/projectSelection/openFirstProject"; | ||
|
||
import {openCircularGenomeBuilderWindow} from "./req/circularGenomeBuilder/openCircularGenomeBuilderWindow"; | ||
|
||
import {closeToolBar} from "./req/closeToolBar"; | ||
|
||
async function runTest() : Promise<void> | ||
{ | ||
await openProjectsView(); | ||
await openFirstProject(); | ||
|
||
await openCircularGenomeBuilderWindow(); | ||
|
||
await closeToolBar(); | ||
} | ||
setTimeout(function(){ | ||
runTest(); | ||
},1000); |
23 changes: 23 additions & 0 deletions
23
src/guiTests/req/circularGenomeBuilder/openCircularGenomeBuilderWindow.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import * as winMgr from "./../../../req/main/winMgr"; | ||
|
||
/** | ||
* Opens a circularGenomeBuilder window | ||
* | ||
* @export | ||
* @returns {Promise<void>} | ||
*/ | ||
export async function openCircularGenomeBuilderWindow() : Promise<void> | ||
{ | ||
return new Promise<void>((resolve,reject) => { | ||
setTimeout(function(){ | ||
console.log("opening circularGenomeBuilder window"); | ||
setTimeout(function(){ | ||
let toolBar = winMgr.getWindowsByName("toolBar"); | ||
toolBar[0].webContents.executeJavaScript(` | ||
document.getElementById("circularGenomeBuilder").click(); | ||
`); | ||
resolve(); | ||
},500); | ||
},500); | ||
}); | ||
} |