-
Notifications
You must be signed in to change notification settings - Fork 19
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
Бородин Георгий #16
base: master
Are you sure you want to change the base?
Бородин Георгий #16
Conversation
.url('/'); | ||
}); | ||
|
||
it('should show 0 product for ""', () => { |
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.
for ""
-> for empty string
А то я сначала подумал что это какой-то шаблонный тест
В интеграционных тестах принято проверять успешные сценарии
Проверь что по заданному слову будут искаться товары
let allComments = browser.getText('div.col-lg-12>div'); | ||
const date = browser.getText('.media-heading small')[allComments.length - 1]; | ||
|
||
assert(moment(date, 'MMMM Do YYYY, h:m:s a').isValid()); |
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.
В этом тесте не хватает проверки на время
assert.equal(crumbs[0], 'Home'); | ||
assert.equal(crumbs[1], 'Stickers'); | ||
assert.equal(crumbs[2], 'Leaf Sticker'); | ||
}); |
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.
Хлебные крошки есть на нескольких страницах: главная, поиск, корзина и т.д.
Надо проверить все
No description provided.