-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f2bfa32
commit 15a71a5
Showing
5 changed files
with
57 additions
and
8 deletions.
There are no files selected for viewing
26 changes: 26 additions & 0 deletions
26
app-tests/src/test/scala/app/logorrr/usecases/search/SimpleSearchTest.scala
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package app.logorrr.usecases.search | ||
|
||
import app.logorrr.TestFiles | ||
import app.logorrr.io.FileId | ||
import app.logorrr.usecases.SingleFileApplicationTest | ||
import app.logorrr.views.search.{SearchButton, SearchTextField} | ||
import org.junit.jupiter.api.Test | ||
|
||
class SimpleSearchTest extends SingleFileApplicationTest(TestFiles.simpleLog0) { | ||
|
||
@Test def search(): Unit = { | ||
openFile(path) | ||
|
||
searchFor("1") | ||
searchFor("2") | ||
searchFor("3") | ||
searchFor("4") | ||
searchFor("0") | ||
|
||
} | ||
|
||
private def searchFor(needle: String) = { | ||
clickOn(SearchTextField.id(FileId(path)).ref).write(needle) | ||
clickOn(SearchButton.id(FileId(path)).ref) | ||
} | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,4 +31,5 @@ object LogoRRRNodes { | |
val LogFileHeaderTabCloseButton = ".tab-container > .tab-close-button" | ||
|
||
|
||
|
||
} |
This file contains 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
15 changes: 13 additions & 2 deletions
15
app/src/main/scala/app/logorrr/views/search/SearchButton.scala
This file contains 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
15 changes: 13 additions & 2 deletions
15
app/src/main/scala/app/logorrr/views/search/SearchTextField.scala
This file contains 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