-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AssertJ tests #65
AssertJ tests #65
Conversation
Can one of the admins verify this patch? Also need an authorization to run tests. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great start on the UI test.
Could you also look into running the UI tests on a headless box? It would be good to know if it's possible to run theses tests on a headless server, or if a graphical environment is required.
</dependency> | ||
<dependency> | ||
<groupId>org.assertj</groupId> | ||
<artifactId>assertj-swing-aut</artifactId> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you check if there's a typo? I can't find this dependency (assertj-swing-aut).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry I forgot to mention this. assertj/assertj-examples#41 (comment) .
I added this to my local maven repository using the same commands that we use for adding sync client https://github.com/odk-x/suitcase/blob/master/dependencies/mvn_local_installs.
ioPanelFixture.requireNotVisible(); // IOPanel should not be visible on starting the application | ||
frame.panel("main_panel").requireVisible(); // MainPanel should be visible on start of the application | ||
frame.button("login_button").click(); | ||
Pause.pause(15000); // Wait for 15 seconds for login to complete |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a way to check for login completion or listen for login completion instead of waiting a fixed amount of time?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One way is to get the sync wrapper and check weather it is initialized or not using the isinitialized() method which is already there.
should I implement that?
@Shubhamr837 can you fix the conflicts so I can merge? |
@wbrunette sure I will. |
@Shubhamr837 can you fix the conflicts so I can merge? |
@wbrunette Sorry for being late on this. I have resolved the conflicts and created a new pull request for test of the reset button as it was moved to a new tab. |
AssertJ test to test login, update, delete, reset and upload.