Scheduled weekly dependency update for week 16 (#458)
* Update pypom from 1.3.0 to 2.0.0 * Use loaded property in pages instead of overriding wait_for_page_to_load
This commit is contained in:
Родитель
8d80b99203
Коммит
16eeed5582
2
Pipfile
2
Pipfile
|
@ -15,7 +15,7 @@ BeautifulSoup = "==3.2.1"
|
||||||
flake8 = "==3.5.0"
|
flake8 = "==3.5.0"
|
||||||
flake8-isort = "==2.5"
|
flake8-isort = "==2.5"
|
||||||
mozlog = "==3.7"
|
mozlog = "==3.7"
|
||||||
PyPOM = "==1.3.0"
|
PyPOM = "==2.0.0"
|
||||||
pytest = "==3.5.0"
|
pytest = "==3.5.0"
|
||||||
pytest-metadata = "==1.7.0"
|
pytest-metadata = "==1.7.0"
|
||||||
pytest-selenium = "==1.12.0"
|
pytest-selenium = "==1.12.0"
|
||||||
|
|
|
@ -17,9 +17,9 @@ class EditGroupPage(Base):
|
||||||
_invitations_button_locator = (By.ID, 'invitations-tab')
|
_invitations_button_locator = (By.ID, 'invitations-tab')
|
||||||
_invitations_tab_locator = (By.ID, 'invitations')
|
_invitations_tab_locator = (By.ID, 'invitations')
|
||||||
|
|
||||||
def wait_for_page_to_load(self):
|
@property
|
||||||
self.wait.until(lambda s: self.is_element_displayed(*self._description_button_locator))
|
def loaded(self):
|
||||||
return self
|
return self.is_element_displayed(*self._description_button_locator)
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def description(self):
|
def description(self):
|
||||||
|
|
|
@ -14,9 +14,10 @@ class GroupInfoPage(Base):
|
||||||
_description_locator = (By.CSS_SELECTOR, '.group-description')
|
_description_locator = (By.CSS_SELECTOR, '.group-description')
|
||||||
_irc_channel_locator = (By.ID, 'group-irc')
|
_irc_channel_locator = (By.ID, 'group-irc')
|
||||||
|
|
||||||
def wait_for_page_to_load(self):
|
@property
|
||||||
self.wait.until(lambda _: self.find_element(By.CSS_SELECTOR, 'html.js body#group-show'))
|
def loaded(self):
|
||||||
return self
|
return self.is_element_present(
|
||||||
|
By.CSS_SELECTOR, 'html.js body#group-show')
|
||||||
|
|
||||||
def delete_group(self):
|
def delete_group(self):
|
||||||
self.wait.until(expected.visibility_of_element_located(
|
self.wait.until(expected.visibility_of_element_located(
|
||||||
|
|
|
@ -28,9 +28,9 @@ class Profile(Base):
|
||||||
_profile_message_locator = (By.CSS_SELECTOR, '.alert')
|
_profile_message_locator = (By.CSS_SELECTOR, '.alert')
|
||||||
_view_as_locator = (By.ID, 'view-privacy-mode')
|
_view_as_locator = (By.ID, 'view-privacy-mode')
|
||||||
|
|
||||||
def wait_for_page_to_load(self):
|
@property
|
||||||
self.wait.until(lambda _: self.find_element(By.CSS_SELECTOR, 'html.js body#profile'))
|
def loaded(self):
|
||||||
return self
|
return self.is_element_present(By.CSS_SELECTOR, 'html.js body#profile')
|
||||||
|
|
||||||
def view_profile_as(self, view_as):
|
def view_profile_as(self, view_as):
|
||||||
element = self.find_element(*self._view_as_locator)
|
element = self.find_element(*self._view_as_locator)
|
||||||
|
|
|
@ -27,9 +27,10 @@ class Register(Base):
|
||||||
_city_results_list_locator = (By.CSS_SELECTOR, '#select2-id_city-results > li.select2-results__option--highlighted')
|
_city_results_list_locator = (By.CSS_SELECTOR, '#select2-id_city-results > li.select2-results__option--highlighted')
|
||||||
_first_city_search_result_locator = (By.CSS_SELECTOR, '#select2-id_city-results > li.select2-results__option--highlighted:first-child')
|
_first_city_search_result_locator = (By.CSS_SELECTOR, '#select2-id_city-results > li.select2-results__option--highlighted:first-child')
|
||||||
|
|
||||||
def wait_for_page_to_load(self):
|
@property
|
||||||
self.wait.until(lambda _: self.find_element(By.CSS_SELECTOR, 'html.js body#edit-profile'))
|
def loaded(self):
|
||||||
return self
|
return self.is_element_present(
|
||||||
|
By.CSS_SELECTOR, 'html.js body#edit-profile')
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def privacy_error_message(self):
|
def privacy_error_message(self):
|
||||||
|
|
|
@ -22,9 +22,9 @@ class Search(Base):
|
||||||
_last_page_number_locator = (By.CSS_SELECTOR, '#pagination-form select option:last-child')
|
_last_page_number_locator = (By.CSS_SELECTOR, '#pagination-form select option:last-child')
|
||||||
_group_name_locator = (By.CSS_SELECTOR, '.group-name')
|
_group_name_locator = (By.CSS_SELECTOR, '.group-name')
|
||||||
|
|
||||||
def wait_for_page_to_load(self):
|
@property
|
||||||
self.wait.until(lambda _: self.find_element(By.CSS_SELECTOR, 'html.js body#search'))
|
def loaded(self):
|
||||||
return self
|
return self.is_element_present(By.CSS_SELECTOR, 'html.js body#search')
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def results_count(self):
|
def results_count(self):
|
||||||
|
|
Загрузка…
Ссылка в новой задаче