File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -3,11 +3,10 @@ const puppeteer = require('puppeteer');
3
3
const inspect = require ( 'util' ) . inspect ;
4
4
const URL = process . argv [ 2 ] ;
5
5
6
- function testGitExtension ( html ) {
7
- // Test git icons are present
8
- assert ( html . includes ( '--jp-icon-git-clone' ) , 'Could not find git clone icon.' ) ;
9
- assert ( html . includes ( '--jp-icon-git-pull' ) , 'Could not find git pull icon.' ) ;
10
- assert ( html . includes ( '--jp-icon-git-push' ) , 'Could not find git push icon.' ) ;
6
+ async function testGitExtension ( page ) {
7
+ // Test tabbar entry
8
+ const gitTabbar = await page . waitForSelector ( '.lm-TabBar-tab[data-id="jp-git-sessions"]' )
9
+ assert . ok ( gitTabbar , 'Could not find Git Tab entry' ) ;
11
10
}
12
11
13
12
async function main ( ) {
@@ -46,7 +45,7 @@ async function main() {
46
45
console . error ( `Parsed an error from text content: ${ error . message } ` , error ) ;
47
46
}
48
47
49
- testGitExtension ( html ) ;
48
+ await testGitExtension ( page ) ;
50
49
51
50
await browser . close ( ) ;
52
51
You can’t perform that action at this time.
0 commit comments