From 71c998c9091087542547f75b8a5a62ea5d9f82a2 Mon Sep 17 00:00:00 2001 From: Konstantin Aksenov Date: Thu, 3 Jun 2021 01:41:16 -0700 Subject: [PATCH 1/3] Ignore isPlatformPopup line --- .../kotlin/io/github/kakaocup/sample/AutoCompleteTest.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sample/src/androidTest/kotlin/io/github/kakaocup/sample/AutoCompleteTest.kt b/sample/src/androidTest/kotlin/io/github/kakaocup/sample/AutoCompleteTest.kt index c7ae5e13c..002ae4b85 100644 --- a/sample/src/androidTest/kotlin/io/github/kakaocup/sample/AutoCompleteTest.kt +++ b/sample/src/androidTest/kotlin/io/github/kakaocup/sample/AutoCompleteTest.kt @@ -24,7 +24,7 @@ class AutoCompleteTest { list { inRoot { - isPlatformPopup() + //isPlatformPopup() } isVisible() From 5340ae5268221b6a59df22324513a67ae464c63d Mon Sep 17 00:00:00 2001 From: Konstantin Aksenov Date: Thu, 3 Jun 2021 23:04:33 +1000 Subject: [PATCH 2/3] Update AutoCompleteTest.kt --- .../kotlin/io/github/kakaocup/sample/AutoCompleteTest.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sample/src/androidTest/kotlin/io/github/kakaocup/sample/AutoCompleteTest.kt b/sample/src/androidTest/kotlin/io/github/kakaocup/sample/AutoCompleteTest.kt index 002ae4b85..b773362a4 100644 --- a/sample/src/androidTest/kotlin/io/github/kakaocup/sample/AutoCompleteTest.kt +++ b/sample/src/androidTest/kotlin/io/github/kakaocup/sample/AutoCompleteTest.kt @@ -23,9 +23,11 @@ class AutoCompleteTest { } list { + /* inRoot { - //isPlatformPopup() + /isPlatformPopup() } + */ isVisible() hasSize(10) From 175e891fab52cc26b7e7b5f6bc3b7f272f7dbd29 Mon Sep 17 00:00:00 2001 From: Konstantin Aksenov Date: Thu, 3 Jun 2021 23:18:28 -0700 Subject: [PATCH 3/3] test with spinner matchet --- .../kotlin/io/github/kakaocup/sample/AutoCompleteTest.kt | 5 ++--- .../kotlin/io/github/kakaocup/sample/AutoCompleteActivity.kt | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/sample/src/androidTest/kotlin/io/github/kakaocup/sample/AutoCompleteTest.kt b/sample/src/androidTest/kotlin/io/github/kakaocup/sample/AutoCompleteTest.kt index b773362a4..04fe64bfd 100644 --- a/sample/src/androidTest/kotlin/io/github/kakaocup/sample/AutoCompleteTest.kt +++ b/sample/src/androidTest/kotlin/io/github/kakaocup/sample/AutoCompleteTest.kt @@ -2,6 +2,7 @@ package io.github.kakaocup.sample import androidx.test.ext.junit.rules.ActivityScenarioRule import androidx.test.internal.runner.junit4.AndroidJUnit4ClassRunner +import io.github.kakaocup.kakao.common.matchers.SpinnerPopupMatcher import io.github.kakaocup.kakao.screen.Screen.Companion.onScreen import io.github.kakaocup.sample.screen.AutoCompleteActivityScreen import org.junit.Rule @@ -23,11 +24,9 @@ class AutoCompleteTest { } list { - /* inRoot { - /isPlatformPopup() + withMatcher(SpinnerPopupMatcher()) } - */ isVisible() hasSize(10) diff --git a/sample/src/main/kotlin/io/github/kakaocup/sample/AutoCompleteActivity.kt b/sample/src/main/kotlin/io/github/kakaocup/sample/AutoCompleteActivity.kt index f0a0afd34..6647d78e4 100644 --- a/sample/src/main/kotlin/io/github/kakaocup/sample/AutoCompleteActivity.kt +++ b/sample/src/main/kotlin/io/github/kakaocup/sample/AutoCompleteActivity.kt @@ -11,7 +11,7 @@ class AutoCompleteActivity : AppCompatActivity() { super.onCreate(savedInstanceState) setContentView(R.layout.activity_auto_complete) - val adapter = ArrayAdapter( + val adapter = ArrayAdapter( this, R.layout.item_autocomplete, R.id.text, listOf( "Title 1", "Title 2", "Title 3", "Title 4", "Title 5",