-
Notifications
You must be signed in to change notification settings - Fork 35
refactor ui tests #1148
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
refactor ui tests #1148
Conversation
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.
Ты не против, если бы я сделал shared файл между приложением и UI тестами, где были бы описаны все константы accessibility идентификаторов. Кажется так будет меньше шанс ошибиться и нужно будет указать строку идентификатора только в одном месте. Пример как будет выглядеть использование такого API:
в приложении
self.actionButton.accessibilityIdentifier = AccessibilityIdentifiers.loginButton
в UI тестах
app.buttons[AccessibilityIdentifiers.loginButton]
Ещё у нас имеется линтер и автоматические исправления в соответствии code style.
- Запусти автоматические исправления в командной строке
./autocorrect.sh StepicUITests
- Запусти линтер, чтобы увидеть замечания в командной строке
./lint.sh StepicUITests
. Если не удастся исправить все замечания, то я пофиксю. - Ознакомься с Code Style Stepik.
Stepic/Legacy/Controllers/Onboarding/OnboardingPageView/OnboardingPageView.xib
Outdated
Show resolved
Hide resolved
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.
@annafalileeva все ОК 👍
Я еще немножко причесал тесты c17d9e6 и весь код поместил в папку Sources
.
YouTrack task: #APPS-3640
Description:
refactor ui tests