Skip to content
This repository was archived by the owner on Apr 15, 2023. It is now read-only.

Commit 653e248

Browse files
Fix test
1 parent 9cd52c9 commit 653e248

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/test/java/acceptance/FrameworkAcceptanceTest.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88

99
import javax.swing.*;
1010

11-
import static org.junit.Assert.*;
11+
import static org.junit.Assert.assertFalse;
12+
import static org.junit.Assert.assertTrue;
1213
import static org.mockito.Mockito.*;
1314

1415
public class FrameworkAcceptanceTest extends AcceptanceTestBase {
@@ -71,11 +72,11 @@ public void selectASnippetAndSeeDetailsOnRightPanel() throws Exception {
7172
jFrame.pack();
7273

7374
JPanel snippetViewFormPane = framework.getMainWindow().getSnippetsPanel().getSnippetViewFormPane();
74-
assertEquals("welcome view", snippetViewFormPane.getComponent(0).getName());
75+
waitForTrue("welcome view".equals(snippetViewFormPane.getComponent(0).getName()));
7576

7677
framework.getMainWindow().getSnippetsPanel().getSnippetsTable().getJTable().setRowSelectionInterval(1, 1);
7778

78-
assertEquals("snippet view", snippetViewFormPane.getComponent(0).getName());
79+
waitForTrue("snippet view".equals(snippetViewFormPane.getComponent(0).getName()));
7980
}
8081

8182
@Test

0 commit comments

Comments
 (0)