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
3
9
4
10
SERVER_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 {
27
27
async searchForExtension ( id : string ) : Promise < any > {
28
28
await this . code . waitAndClick ( SEARCH_BOX ) ;
29
29
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' ) ;
30
36
await this . code . waitForTypeInEditor ( SEARCH_BOX , `@id:${ id } ` ) ;
31
37
await this . code . waitForElement ( `div.extensions-viewlet[id="workbench.view.extensions"] .monaco-list-row[data-extension-id="${ id } "]` ) ;
32
38
}
Original file line number Diff line number Diff line change @@ -29,7 +29,8 @@ const vscodeToPlaywrightKey: { [key: string]: string } = {
29
29
down : 'ArrowDown' ,
30
30
left : 'ArrowLeft' ,
31
31
home : 'Home' ,
32
- esc : 'Escape'
32
+ esc : 'Escape' ,
33
+ delete : 'Delete'
33
34
} ;
34
35
35
36
let traceCounter = 1 ;
Original file line number Diff line number Diff line change @@ -15,9 +15,9 @@ export function setup(opts: minimist.ParsedArgs) {
15
15
it ( `install and enable vscode-smoketest-check extension` , async function ( ) {
16
16
const app = this . app as Application ;
17
17
18
- if ( app . quality === Quality . Dev ) {
19
- this . skip ( ) ;
20
- }
18
+ // if (app.quality === Quality.Dev) {
19
+ // this.skip();
20
+ // }
21
21
22
22
await app . workbench . extensions . openExtensionsViewlet ( ) ;
23
23
@@ -30,5 +30,22 @@ export function setup(opts: minimist.ParsedArgs) {
30
30
await app . workbench . quickaccess . runCommand ( 'Smoke Test Check' ) ;
31
31
} ) ;
32
32
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
+ } ) ;
33
50
} ) ;
34
51
}
You can’t perform that action at this time.
0 commit comments