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

Feature/system testing monaco editor #25

Merged
merged 6 commits into from Jun 20, 2020
Merged

Feature/system testing monaco editor #25

merged 6 commits into from Jun 20, 2020

Conversation

morphizm
Copy link
Contributor

Снимок экрана 2020-06-20 в 18 26 14


visit language_module_lesson_url(language.slug, language_module.slug, language_module_lesson.slug)

assert { page.has_selector?('#basics-lesson-container') }
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Правильно завязываться на data-testid https://testing-library.com/ Посмотри хорошие практики тут.

visit language_module_lesson_url(language.slug, language_module.slug, language_module_lesson.slug)

assert { page.has_selector?('#basics-lesson-container') }
assert { page.driver.browser.manage.logs.get(:browser).empty? }
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ошибки и так должны выбрасываться, это не нужно явно проверять, тем более таким способом.

@mokevnin mokevnin merged commit db5366e into hexlet-basics:master Jun 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants