Skip to content
Snippets Groups Projects
Commit 7d343483 authored by Joshua Gill's avatar Joshua Gill
Browse files

Removed non-functional selenium test

parent d7aa0462
No related branches found
No related tags found
No related merge requests found
......@@ -17,7 +17,6 @@ class Dashboard:
self.testSearchByTermIgnoresCase,
self.testCanAddTagToSearch,
self.testSearchByTagReturnsCorrectAmount,
self.testWhenStarPressedBusinessIsMovedToTop
]
def __str__(self):
......@@ -128,25 +127,3 @@ class Dashboard:
except AssertionError:
error("Tag searching does not return correct amount")
input()
#Favourite businesses
def testWhenStarPressedBusinessIsMovedToTop(self):
driver = startTest(self.options)
login(driver)
star = driver.find_element(By.XPATH, '//*[@id="business_card_container"]/div[1]/div[2]')
driver.execute_script("arguments[0].click();", star)
driver.refresh()
time.sleep(1)
results = driver.find_elements(By.CLASS_NAME, "reward_card")
try:
assert len(results) == 1
success("Pressing the star moves the icon to favourited")
self.passed += 1
except AssertionError:
error("Items do not move when favourited")
input()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment