Flaky test TestModuleSearch.test_terraform_version_compatibility_retains_state
_____ TestModuleSearch.test_terraform_version_compatibility_retains_state ______
self = <test.selenium.test_module_search.TestModuleSearch object at 0xffffaad2e750>
def test_terraform_version_compatibility_retains_state(self):
"""Test terraform compatiblity input is retained between page loads"""
self.selenium_instance.delete_all_cookies()
# Search for modules
self.selenium_instance.get(self.get_url('/search/modules?q='))
# Inspect and enter Terraform version into target Terraform input and update
terraform_input = self.selenium_instance.find_element(By.ID, 'search-terraform-version')
assert terraform_input.get_attribute("value") == ""
terraform_input.send_keys("5.2.6-unittest")
# Click update
self.selenium_instance.find_element(By.ID, 'search-options-update-button').click()
# Reload page
self.selenium_instance.get(self.get_url('/search/modules?q='))
# Check terraform version is still present
terraform_version_constraint = self.wait_for_element(By.ID, 'search-terraform-version')
> assert terraform_version_constraint.get_attribute("value") == "5.2.6-unittest"
E AssertionError: assert '' == '5.2.6-unittest'
E - 5.2.6-unittest