@@ -16,6 +16,7 @@ import * as path from 'path';
16
16
import { LeftBarItems } from '../enums/left-bar-items.enum' ;
17
17
import { expect } from '@playwright/test' ;
18
18
import { Application } from './application.pages' ;
19
+ import { SCREENSHOTS_FOLDER } from '../utilities/consts' ;
19
20
20
21
export class VSCode extends Application {
21
22
public static async open ( workspaceDir : string ) {
@@ -155,19 +156,22 @@ export class VSCode extends Application {
155
156
156
157
public async selectSourcesAndTargets ( sources : string [ ] , targets : string [ ] ) {
157
158
const window = this . window ;
159
+ await this . waitDefault ( ) ;
158
160
await this . executeQuickCommand ( 'sources and targets' ) ;
159
161
await this . waitDefault ( ) ;
162
+ await window . screenshot ( {
163
+ path : `${ SCREENSHOTS_FOLDER } /debug-target.png` ,
164
+ } ) ;
160
165
const targetInput = window . getByPlaceholder ( 'Choose one or more target' ) ;
161
166
await this . waitDefault ( ) ;
162
167
await expect ( targetInput ) . toBeVisible ( { timeout : 30000 } ) ;
163
168
for ( const target of targets ) {
164
169
await targetInput . fill ( target ) ;
165
- await this . waitDefault ( ) ;
170
+
166
171
await window
167
172
. getByRole ( 'checkbox' , { name : `${ target } ` } )
168
173
. nth ( 1 )
169
174
. click ( ) ;
170
- await this . waitDefault ( ) ;
171
175
}
172
176
await this . waitDefault ( ) ;
173
177
await targetInput . press ( 'Enter' ) ;
0 commit comments