Skip to content
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

Test infrastructure #3

Closed
dhilt opened this issue Oct 11, 2017 · 4 comments
Closed

Test infrastructure #3

dhilt opened this issue Oct 11, 2017 · 4 comments
Assignees

Comments

@dhilt
Copy link
Owner

dhilt commented Oct 11, 2017

Need to develop test infrastructure and provide first tests.

@dhilt dhilt mentioned this issue Oct 13, 2017
@dhilt
Copy link
Owner Author

dhilt commented Oct 13, 2017

@babsley Первый тест должен просто рендерить компоненту в заданном viewport и проверять, что было, скажем, 2 вызова datasource.get вниз и 1 вызов datasource.get наверх. Можно проверить итоговый html, что у нас нужное количество строк и их содержание соответствует ожидаемому.

@dhilt dhilt self-assigned this Oct 13, 2017
@ndovnar
Copy link
Collaborator

ndovnar commented Oct 15, 2017

@dhilt Решил сразу приступить к написанию тестов, но так как я их никогда не писал, нужно изучить материал и т.д. Решил держать тебя вкурсе, о том чем я занимаюсь и надеюсь обучение в процессе не будет сильно тормозить работу.

@dhilt
Copy link
Owner Author

dhilt commented Oct 15, 2017

@babsley Окей! я со времен первого ангуляра не занимался тестированием front end (недавно только начал получать опыт с Реактом) и я не могу подсказать "правильное" направление, но кроме прочего, нам обязательно надо иметь возможность отлаживать тест в реальном браузере, видеть DOM, шариться по callstack...

dhilt pushed a commit that referenced this issue Jan 13, 2018
@dhilt
Copy link
Owner Author

dhilt commented Feb 9, 2018

Done by PR #14.

@dhilt dhilt closed this as completed Feb 9, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants