1818import org .eclipse .dirigible .tests .framework .logging .LogsAsserter ;
1919import org .junit .jupiter .api .BeforeEach ;
2020import org .junit .jupiter .api .Test ;
21+ import org .slf4j .Logger ;
22+ import org .slf4j .LoggerFactory ;
2123
2224import java .util .concurrent .TimeUnit ;
2325
2426import static org .awaitility .Awaitility .await ;
2527
2628public class BPMStarterTemplateIT extends UserInterfaceIntegrationTest {
2729
30+ private static final Logger LOGGER = LoggerFactory .getLogger (BPMStarterTemplateIT .class );
31+
2832 private static final String TEMPLATE_TITLE = "BPM Project Starter" ;
2933 private static final String TEST_PROJECT = "bpm-test-project" ;
3034 private static final String TEST_PROCESS = "bpm-test-process" ;
@@ -50,6 +54,7 @@ void setUp() {
5054
5155 @ Test
5256 void testCreateProjectFromTemplate () {
57+ LOGGER .debug ("Creating test project [{}] from template [{}]..." , TEST_PROJECT , TEMPLATE_TITLE );
5358 Workbench workbench = ide .openWorkbench ();
5459
5560 WelcomeView welcomeView = workbench .openWelcomeView ();
@@ -60,21 +65,30 @@ void testCreateProjectFromTemplate() {
6065 welcomeView .typeFileName (TEST_PROCESS );
6166 welcomeView .typeTemplateParamById (PROCESS_IDENTIFIER_ID , PROCESS_ID );
6267 welcomeView .confirmTemplate ();
68+ LOGGER .debug ("Created test project [{}] from template [{}]..." , TEST_PROJECT , TEMPLATE_TITLE );
6369
6470 workbench .expandProject (TEST_PROJECT );
6571 workbench .openFile (TRIGGER_PROCESS_FORM_FILENAME );
6672
6773 FormView formView = workbench .getFormView ();
74+ LOGGER .debug ("Regenerating form [{}]..." , TRIGGER_PROCESS_FORM_FILENAME );
75+
6876 formView .regenerateForm ();
6977 ide .assertStatusBarMessage ("Generated from model '" + TRIGGER_PROCESS_FORM_FILENAME + "'" );
78+ LOGGER .debug ("Form [{}] has been regenerated." , TRIGGER_PROCESS_FORM_FILENAME );
7079
80+ LOGGER .debug ("Publishing all projects..." , TRIGGER_PROCESS_FORM_FILENAME );
7181 workbench .publishAll (true );
82+ LOGGER .debug ("All projects have been published and the synchronization is completed." , TRIGGER_PROCESS_FORM_FILENAME );
7283
7384 browser .openPath (TRIGGER_PROCESS_FORM_PATH );
7485 browser .enterTextInElementById (PARAM_1_ID , PARAM_1_VALUE );
7586 browser .enterTextInElementById (PARAM_2_ID , PARAM_2_VALUE );
7687 browser .clickOnElementContainingText (HtmlElementType .BUTTON , TRIGGER_BUTTON_TEXT );
7788
89+ LOGGER .debug ("Asserting that a new process instance has been triggered..." );
90+ browser .assertAlertWithMessage ("A new process instance has been triggered" );
91+
7892 await ().atMost (30 , TimeUnit .SECONDS )
7993 .until (() -> consoleLogAsserter .containsMessage (EXPECTED_TASK_LOGGED_MESSAGE , Level .INFO ));
8094 }
0 commit comments