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

Flaky tests #95

Open
stsewd opened this issue Aug 19, 2021 · 0 comments
Open

Flaky tests #95

stsewd opened this issue Aug 19, 2021 · 0 comments

Comments

@stsewd
Copy link
Member

stsewd commented Aug 19, 2021

This test will fail sometimes

body = selenium.find_element_by_css_selector('body')
body.send_keys('/')
assert (
search_outer_wrapper.is_displayed() == True
), 'search__outer__wrapper should be displayed when forward slash button is pressed'

It probably needs to wait some time till the search popup is shown, maybe similar to

WebDriverWait(selenium, 10).until(
EC.text_to_be_present_in_element(
(By.CLASS_NAME, 'search__result__box'),
'No results found'
)
)

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

1 participant