Investigate flakey test: test_terraform_version_compatibility_retains_state
This failed in 62d5d966
=================================== FAILURES ===================================
_____ TestModuleSearch.test_terraform_version_compatibility_retains_state ______
self = <test.selenium.test_module_search.TestModuleSearch object at 0xffff85a0f130>
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('/modules/search?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('/modules/search?q='))
# Check terraform version is still present
> assert self.selenium_instance.find_element(By.ID, 'search-terraform-version').get_attribute("value") == "5.2.6-unittest"
E AssertionError: assert '' == '5.2.6-unittest'
E - 5.2.6-unittest
test/selenium/test_module_search.py:309: AssertionError
=============================== warnings summary ===============================