File tree Expand file tree Collapse file tree 4 files changed +37
-7
lines changed
smoke/src/areas/extensions Expand file tree Collapse file tree 4 files changed +37
-7
lines changed Original file line number Diff line number Diff line change 1- #! /usr/bin/env sh
2- ROOT=$( dirname $( dirname " $( dirname " $0 " ) " ) )
1+ #! /usr/bin/env bash
2+
3+ if [[ " $OSTYPE " == " darwin" * ]]; then
4+ realpath () { [[ $1 = /* ]] && echo " $1 " || echo " $PWD /${1# ./ } " ; }
5+ ROOT=$( dirname $( dirname $( dirname $( realpath " $0 " ) ) ) )
6+ else
7+ ROOT=$( dirname $( dirname $( dirname $( readlink -f $0 ) ) ) )
8+ fi
39
410SERVER_SCRIPT=" $ROOT /out/server.js"
5- node " $SERVER_SCRIPT " " $@ "
11+ exec /usr/bin/env node " $SERVER_SCRIPT " " $@ "
Original file line number Diff line number Diff line change @@ -27,6 +27,12 @@ export class Extensions extends Viewlet {
2727 async searchForExtension ( id : string ) : Promise < any > {
2828 await this . code . waitAndClick ( SEARCH_BOX ) ;
2929 await this . code . waitForActiveElement ( SEARCH_BOX ) ;
30+ if ( process . platform === 'darwin' ) {
31+ await this . code . dispatchKeybinding ( 'cmd+a' ) ;
32+ } else {
33+ await this . code . dispatchKeybinding ( 'ctrl+a' ) ;
34+ }
35+ await this . code . dispatchKeybinding ( 'delete' ) ;
3036 await this . code . waitForTypeInEditor ( SEARCH_BOX , `@id:${ id } ` ) ;
3137 await this . code . waitForElement ( `div.extensions-viewlet[id="workbench.view.extensions"] .monaco-list-row[data-extension-id="${ id } "]` ) ;
3238 }
Original file line number Diff line number Diff line change @@ -29,7 +29,8 @@ const vscodeToPlaywrightKey: { [key: string]: string } = {
2929 down : 'ArrowDown' ,
3030 left : 'ArrowLeft' ,
3131 home : 'Home' ,
32- esc : 'Escape'
32+ esc : 'Escape' ,
33+ delete : 'Delete'
3334} ;
3435
3536let traceCounter = 1 ;
Original file line number Diff line number Diff line change @@ -15,9 +15,9 @@ export function setup(opts: minimist.ParsedArgs) {
1515 it ( `install and enable vscode-smoketest-check extension` , async function ( ) {
1616 const app = this . app as Application ;
1717
18- if ( app . quality === Quality . Dev ) {
19- this . skip ( ) ;
20- }
18+ // if (app.quality === Quality.Dev) {
19+ // this.skip();
20+ // }
2121
2222 await app . workbench . extensions . openExtensionsViewlet ( ) ;
2323
@@ -30,5 +30,22 @@ export function setup(opts: minimist.ParsedArgs) {
3030 await app . workbench . quickaccess . runCommand ( 'Smoke Test Check' ) ;
3131 } ) ;
3232
33+ it ( `install and enable smoketest-check-web extension in web worker` , async function ( ) {
34+ const app = this . app as Application ;
35+
36+ // if (app.quality === Quality.Dev) {
37+ // this.skip();
38+ // }
39+
40+ await app . workbench . extensions . openExtensionsViewlet ( ) ;
41+
42+ await app . workbench . extensions . installExtension ( 'jeanp413.smoketest-check-web' , true ) ;
43+
44+ // Close extension editor because keybindings dispatch is not working when web views are opened and focused
45+ // https://github.com/microsoft/vscode/issues/110276
46+ await app . workbench . extensions . closeExtension ( 'smoketest-check-web' ) ;
47+
48+ await app . workbench . quickaccess . runCommand ( 'Smoke Test Check Web' ) ;
49+ } ) ;
3350 } ) ;
3451}
You can’t perform that action at this time.
0 commit comments