speeded up tests
This commit is contained in:
Родитель
c19005aaed
Коммит
d77b1466b0
|
@ -70,14 +70,14 @@ class MozTrapCreateBulkCasesPage(MozTrapBasePage):
|
|||
@property
|
||||
def product_value(self):
|
||||
product_select = self.find_element(*self._product_select_locator)
|
||||
return Select(product_select).first_selected_option.text
|
||||
return product_select.find_element(By.CSS_SELECTOR, 'option:checked').text
|
||||
|
||||
@property
|
||||
def product_version_value(self):
|
||||
version_select = self.find_element(*self._version_select_locator)
|
||||
return Select(version_select).first_selected_option.text
|
||||
return version_select.find_element(By.CSS_SELECTOR, 'option:checked').text
|
||||
|
||||
@property
|
||||
def suite_value(self):
|
||||
suite_select = self.find_element(*self._suite_select_locator)
|
||||
return Select(suite_select).first_selected_option.text
|
||||
return suite_select.find_element(By.CSS_SELECTOR, 'option:checked').text
|
||||
|
|
|
@ -65,14 +65,14 @@ class MozTrapCreateCasePage(MozTrapBasePage):
|
|||
@property
|
||||
def product_value(self):
|
||||
product_select = self.find_element(*self._product_select_locator)
|
||||
return Select(product_select).first_selected_option.text
|
||||
return product_select.find_element(By.CSS_SELECTOR, 'option:checked').text
|
||||
|
||||
@property
|
||||
def product_version_value(self):
|
||||
version_select = self.find_element(*self._version_select_locator)
|
||||
return Select(version_select).first_selected_option.text
|
||||
return version_select.find_element(By.CSS_SELECTOR, 'option:checked').text
|
||||
|
||||
@property
|
||||
def suite_value(self):
|
||||
suite_select = self.find_element(*self._suite_select_locator)
|
||||
return Select(suite_select).first_selected_option.text
|
||||
return suite_select.find_element(By.CSS_SELECTOR, 'option:checked').text
|
||||
|
|
|
@ -74,5 +74,5 @@ class MozTrapCreateRunPage(MozTrapBasePage):
|
|||
|
||||
@property
|
||||
def product_version(self):
|
||||
product_version_select = Select(self.selenium.find_element(*self._product_version_select_locator))
|
||||
return product_version_select.first_selected_option.text
|
||||
product_version_select = self.find_element(*self._product_version_select_locator)
|
||||
return product_version_select.find_element(By.CSS_SELECTOR, 'option:checked').text
|
||||
|
|
Загрузка…
Ссылка в новой задаче