Skip to content

Sprint_5_UI tests for Stellar_Burgers#1

Open
AGPerformance wants to merge 1 commit intomainfrom
develop
Open

Sprint_5_UI tests for Stellar_Burgers#1
AGPerformance wants to merge 1 commit intomainfrom
develop

Conversation

@AGPerformance
Copy link
Owner

UI tests for Stellar_Burgers

Comment on lines +27 to +28
wait.until(lambda d: d.find_element(*Locators.ACTIVE_TAB_TEXT).text.strip() == expected_name)
assert driver.find_element(*Locators.ACTIVE_TAB_TEXT).text.strip() == expected_name

Choose a reason for hiding this comment

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

Можно лучше: стоит объединить эти две проверки


WebDriverWait(driver,3).until(EC.visibility_of_element_located(Locators.PASSWORD_ERROR))

assert driver.find_element(*Locators.PASSWORD_ERROR).text == "Некорректный пароль"

Choose a reason for hiding this comment

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

Можно лучше: во всех тестах лучше выносить тестовые данные во внешний модуль (например, data). Это позволит облегчить их поддержку

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

Successfully merging this pull request may close these issues.

2 participants