Repository navigation
Test fixes - #242
Closed
johnmay wants to merge 6 commits into
Closed
Test fixes#242johnmay wants to merge 6 commits into
johnmay wants to merge 6 commits into
Conversation
…All the menu tests are now together and all open/save tests are together.
|
Member
|
I gets stuck on drawing a reaction:
It gets to this but then hangs... update: @johnmay, I tried to fix it, but do not know how. The following did not work: iff --git a/core/src/test/java/org/openscience/jchempaint/DrawingTest.java b/core/src/test/java/org/openscience/jchempaint/DrawingTest.java
index 8ca42a8e..0a9acac4 100644
--- a/core/src/test/java/org/openscience/jchempaint/DrawingTest.java
+++ b/core/src/test/java/org/openscience/jchempaint/DrawingTest.java
@@ -428,7 +428,7 @@ public class DrawingTest extends AbstractUITest {
// we do target.doClick on the parent menu as otherwise FlatLAF gets stuck
frame.menuItem("reaction").target.doClick();
- frame.menuItem("addProductToExistingReaction").click();
+ frame.menuItem("addProductToExistingReaction").target.doClick();
Assert.assertEquals(1, panel.getChemModel().getReactionSet().getReactionCount());
Assert.assertEquals(1, panel.getChemModel().getReactionSet().getReaction(0).getReactantCount()); |
Contributor
Author
|
I think this is just the nature of UI tests and slightly different interactions. |
Contributor
Author
|
Maybe try... |
Contributor
Author
|
The issue is the way submenu's work, they are not visible until mouse overed |
Contributor
Author
|
Sorry... this. I am probably going to remove that functionality anyways. As soon as you have multiple arrows it's a bit wonky |
Member
That solved it. |
Contributor
Author
|
Why did you close without merging? What is needed? |
Member
|
Merged. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

This cleans up the test suite significantly to run more consistently and faster.