@@ -27,6 +27,7 @@ test.describe.serial('Plugin Settings - Analyze on Save', { tag: ['@tier1'] }, (
2727 const profileName = `plugins-settings-${ generateRandomString ( ) } ` ;
2828
2929 test . beforeAll ( async ( { testRepoData } ) => {
30+ test . setTimeout ( 600_000 ) ;
3031 if ( getDefaultProviderConfig ( ) === LLEMULATOR_PROVIDER ) {
3132 await loadLlemulatorResponses ( {
3233 reset : true ,
@@ -111,7 +112,7 @@ test.describe.serial('Plugin Settings - Analyze on Save', { tag: ['@tier1'] }, (
111112 } ) ;
112113
113114 test . beforeEach ( async function ( ) {
114- test . setTimeout ( 300000 ) ;
115+ test . setTimeout ( 600_000 ) ;
115116 const testName = test . info ( ) . title . replace ( / [ _ " ' \s ] / g, '' ) ;
116117 console . log ( `Starting ${ testName } at ${ new Date ( ) } ` ) ;
117118
@@ -198,14 +199,17 @@ test.describe.serial('Plugin Settings - Analyze on Save', { tag: ['@tier1'] }, (
198199 await tabManager . saveTabFile ( FILES_NAMES [ 1 ] ) ;
199200 const rejectChangesBtn = vscodeApp . getWindow ( ) . getByText ( 'Reject All Changes' ) ;
200201 // the diff should still be there when auto accept on save is disabled
202+ await vscodeApp . waitDefault ( ) ;
201203 await rejectChangesBtn . click ( ) ;
204+ await vscodeApp . assertNotification ( 'Changes rejected and document saved' , { timeout : 30_000 } ) ;
202205 await tabManager . saveTabFile ( FILES_NAMES [ 1 ] ) ;
203206 await tabManager . closeTabByName ( FILES_NAMES [ 1 ] ) ;
204207 await vscodeApp . executeTerminalCommand ( 'git status' , 'Changes not staged for commit' , false ) ;
205208 await vscodeApp . executeQuickCommand ( 'View: Close All Editors' ) ;
206209 } ) ;
207210
208211 test ( 'Exclude diagnostic sources in agent mode' , async ( { testRepoData } ) => {
212+ test . skip ( ! ! process . env . WEB_ENV , 'Skipping test that requires a VS Code restart in web mode.' ) ;
209213 test . setTimeout ( 600000 ) ;
210214 const repoInfo = testRepoData [ 'coolstore' ] ;
211215
0 commit comments