[gui-test] fix assertion order of actual and expected texts

This commit is contained in:
Sergey Karashevich
2018-03-23 16:26:15 +03:00
parent 8510a628b5
commit c8d5d1e4fe
3 changed files with 3 additions and 3 deletions
@@ -86,7 +86,7 @@ class GoToClassFocusTest : GuiTestCase() {
}
with(guiTestCase) {
val textfield = textfield("", searchWindow, guiTestCase.defaultTimeout)
Assert.assertEquals(textfield.target().text, typedString)
Assert.assertEquals(typedString, textfield.target().text)
}
}
@@ -91,7 +91,7 @@ class GoToClassTwiceFocusTest : GuiTestCase() {
}
with(guiTestCase) {
val textfield = textfield("", searchWindow, guiTestCase.defaultTimeout)
Assert.assertEquals(textfield.target().text, typedString)
Assert.assertEquals(typedString, textfield.target().text)
}
}
@@ -55,7 +55,7 @@ class SearchEverywhereFocusTest : GuiTestCase() {
private fun GuiTestCase.checkTextInSearchWindow(searchWindow: Container, expectedText: String) {
with(this) {
val textfield = textfield("", searchWindow, this.defaultTimeout)
Assert.assertEquals(textfield.target().text, expectedText)
Assert.assertEquals(expectedText, textfield.target().text)
}
}