Skip to content
This repository was archived by the owner on Mar 27, 2025. It is now read-only.

Commit 74da9a4

Browse files
committed
Added sleep to allow rendering error/warning on UI
1 parent c7b7a91 commit 74da9a4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/test/java/com/mathworks/ci/MatlabBuilderTest.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -391,6 +391,7 @@ public void verifyCoberturaWarning() throws Exception {
391391
HtmlPage page = jenkins.createWebClient().goTo("job/test0/configure");
392392
HtmlCheckBoxInput coberturaChkBx = page.getElementByName("taCoberturaChkBx");
393393
coberturaChkBx.setChecked(true);
394+
Thread.sleep(2000);
394395
WebAssert.assertTextPresent(page, TestMessage.getValue("Builder.matlab.cobertura.support.warning"));
395396
}
396397

@@ -406,6 +407,7 @@ public void verifyCoberturaError() throws Exception {
406407
HtmlPage page = jenkins.createWebClient().goTo("job/test0/configure");
407408
HtmlCheckBoxInput coberturaChkBx = page.getElementByName("taCoberturaChkBx");
408409
coberturaChkBx.setChecked(true);
410+
Thread.sleep(2000);
409411
String pageText = page.asText();
410412
String filteredPageText = pageText.replaceFirst(TestMessage.getValue("Builder.invalid.matlab.root.error"), "");
411413
Assert.assertTrue(filteredPageText.contains(TestMessage.getValue("Builder.invalid.matlab.root.error")));

0 commit comments

Comments
 (0)