File tree Expand file tree Collapse file tree
webapp/tests/end2end-puppeteer Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+
2+ jest . setTimeout ( 300000 ) ;
3+ beforeAll ( async ( ) => {
4+
5+ } ) ;
6+
7+ describe ( 'Smoke test' , ( ) => {
8+ it ( "Tutorial #1 edit and simulate" , async ( ) => {
9+ const puppeteer = require ( 'puppeteer' ) ;
10+ await ( async ( ) => {
11+
12+ const browser = await puppeteer . launch ( { headless : true } )
13+ const page = await browser . newPage ( )
14+
15+ await page . goto ( 'http://localhost:8888' )
16+
17+ page . waitForSelector ( '.NetPyNE-root-1' )
18+
19+ await page . setViewport ( { width : 1300 , height : 1024 } )
20+
21+ await page . waitForSelector ( '.flexlayout__tab:nth-child(3) > div > .MuiGrid-root > .MuiGrid-root > .MuiPaper-root' )
22+ await page . click ( '.flexlayout__tab:nth-child(3) > div > .MuiGrid-root > .MuiGrid-root > .MuiPaper-root' )
23+
24+ await page . waitForSelector ( '.Topbar-topbar-6 > span > span > #Tutorials > .MuiButton-label' )
25+ await page . click ( '.Topbar-topbar-6 > span > span > #Tutorials > .MuiButton-label' )
26+
27+
28+ await page . waitForSelector ( 'div > .Topbar-topbar-6 > .SwitchPageButton-container-7 > .MuiButtonBase-root > .MuiButton-label' )
29+ await page . click ( 'div > .Topbar-topbar-6 > .SwitchPageButton-container-7 > .MuiButtonBase-root > .MuiButton-label' )
30+
31+ await browser . close ( )
32+ expect ( 1 ) . toBe ( 1 ) ;
33+ } ) ( )
34+ } ) ;
35+
36+
37+ } ) ;
You can’t perform that action at this time.
0 commit comments