-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Kaspresso test #965
base: development
Are you sure you want to change the base?
Kaspresso test #965
Conversation
|
||
val passwordField = KEditText { | ||
withId(R.id.passwordField) | ||
isDisplayed() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Чтобы зафейлить тест, попробова скрыть эту вьюху в разметке, в итоге тест падает на моменте, когда не удается вызвать click()
. Видимо, тут лучше только писать withId(..
и прочие штуки, которые находят вьюху.
isDisplayed() | ||
} | ||
|
||
fun loginWithEmailAndPassword(email: String, password: String) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Мне это нравится, можно переиспользовать для разных кейсов с логином
SocialAuthScreen { | ||
moreButton { | ||
isVisible() | ||
hasText("More") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Чтобы избегать ошибок из-за локали, можно вместо "More"
написать R.string.social_recycler_show_more
, а вверху файла import org.stepic.droid.R
.
import org.junit.Rule | ||
import org.junit.Test | ||
|
||
class SocialAuthScreenTest : TestCase() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Стоит назвать файл так же как и класс.
YouTrack task: #
Description List: