Skip to content

Commit

Permalink
will this work too?
Browse files Browse the repository at this point in the history
  • Loading branch information
jodyheavener committed Jul 20, 2021
1 parent 997648f commit 976b7f8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions app/tests/integration/nimbus/pages/home.py
Expand Up @@ -29,6 +29,12 @@ def tabs(self):
_tabs_locator = (By.CSS_SELECTOR, ".nav-item")
return self.find_elements(*_tabs_locator)

@property
def active_tab_text(self):
_active_tab_locator = (By.CSS_SELECTOR, ".nav-item.active")
el = self.find_element(*_active_tab_locator)
return el.text

def create_new_button(self):
el = self.find_element(*self._create_new_btn_locator)
el.click()
Expand All @@ -38,14 +44,8 @@ def create_new_button(self):

class Tables(Region):

# _table_name_locator = (By.CSS_SELECTOR, ".font-weight-bold")
_experiment_link_locator = (By.CSS_SELECTOR, "tr a")

# @property
# def table_name(self):
# el = self.find_element(*self._table_name_locator)
# return el.text

@property
def experiments(self):
self.wait.until(EC.presence_of_element_located(self._experiment_link_locator))
Expand Down
2 changes: 1 addition & 1 deletion app/tests/integration/nimbus/test_e2e_create_experiment.py
Expand Up @@ -124,7 +124,7 @@ def test_create_new_experiment_remote_settings(selenium, base_url):
# Check it's live
home = HomePage(selenium, base_url).wait_for_page_to_load()
live_experiments = home.tables[0]
# assert "live experiments" in live_experiments.table_name.lower()
assert home.active_tab_text(), "Live"
for item in live_experiments.experiments:
if experiment_name in item.text:
item.click()
Expand Down

0 comments on commit 976b7f8

Please sign in to comment.