You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
//expect (tabs[2], "Integration test report not found").to.equal(constants.FAILSAFE_REPORT_TITLE);
228
-
expect(tabs.indexOf(constants.FAILSAFE_REPORT_TITLE)>-1,"Integration test report not found").to.equal(true);
230
+
expect(tabs.indexOf(constants.FAILSAFE_REPORT_TITLE)>-1,"Integration test report not found");
231
+
awaitutils.closeEditor();// closing the tab after view Integration test report is successful
229
232
230
233
}).timeout(10000);
231
234
235
+
it('Run tests for sample maven project with surefire version 3.4.0',async()=>{
236
+
237
+
awaitutils.clearMavenPluginCache();// Clears the cache to ensure the specific surefire versions are downloaded for the next test
238
+
awaitutils.modifyFileContent(constants.MAVEN_TEST_WRAPPER_APP_POM_PATH,constants.COMMENT_REGEX,constants.SUREFIRE_3_4_0_PLUGIN_CONTENT);// Modifies pom.xml to inlcude surefire version 3.4.0
awaitutils.modifyFileContent(constants.MAVEN_TEST_WRAPPER_APP_POM_PATH,constants.PLUGIN_BLOCK_REGEX,constants.POM_COMMENT);// Removes specific verison of the surefire plugin added in pom file for testing
251
+
awaitutils.clearMavenPluginCache();// Clear the plugin cache to remove the current versions and ensure the latest plugins are used for the next tests.
252
+
if(!serverStopStatus){
253
+
console.error("Server stopped message not found in the terminal");
expect(tabs.indexOf(constants.FAILSAFE_REPORT_TITLE)>-1,"Integration test report not found");
305
+
awaitutils.closeEditor();// closing the tab after view Integration test report with surefire 3.4.0 is successful
306
+
307
+
}).timeout(10000);
308
+
232
309
/**
233
310
* All future test cases should be written before the test that attaches the debugger, as this will switch the UI to the debugger view.
234
311
* If, for any reason, a test case needs to be written after the debugger test, ensure that the UI is switched back to the explorer view before executing the subsequent tests.
0 commit comments