Skip to content

Commit

Permalink
Fix issue regarding un-interactive emulator when sample naming (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
Baraujo25 committed Jun 11, 2020
1 parent 1922bb1 commit ca03189
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<groupId>com.blazemeter.jmeter</groupId>
<artifactId>jmeter-bzm-rte</artifactId>
<packaging>jar</packaging>
<version>3.0</version>
<version>3.0.1</version>
<name>RTEPlugin Sampler as JMeter plugin</name>

<properties>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,7 @@ protected void processMouseEvent(MouseEvent e) {
isAreaSelected = false;
} else {
statusPanel.blinkBlockedCursor();
this.requestFocus();
}
} else if (e.getID() == MouseEvent.MOUSE_PRESSED) {
super.setIvMousePressed(true);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import static org.assertj.core.api.AssertionsForClassTypes.assertThat;
import static org.assertj.swing.timing.Pause.pause;
import static org.junit.Assert.assertTrue;
import static org.mockito.ArgumentMatchers.any;
import static org.mockito.ArgumentMatchers.anyList;
import static org.mockito.ArgumentMatchers.anyString;
Expand Down Expand Up @@ -1009,4 +1010,13 @@ public String toString() {
return value;
}
}

@Test
public void shouldRecoverFocusOnScreenWhenClickingBackFromSampleNameField() throws Exception {
updateCharacterBasedWelcomeScreen();
setupInteractiveCharacterEmulator();
frame.textBox(SAMPLE_NAME_FIELD).click();
frame.robot().click(characterBasedEmulator);
assertTrue(characterBasedEmulator.isFocusOwner());
}
}

0 comments on commit ca03189

Please sign in to comment.