Skip to content

Commit

Permalink
testing my other test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
Nishim12 committed Dec 27, 2024
1 parent 1a73b6f commit 2a8970d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: Cross-browser test automation

on:
push:
branches: [ "develop" ]
branches: [ "fix-automated-test-cases" ]
pull_request:
branches: [ "develop" ]
branches: [ "fix-automated-test-cases" ]


jobs:
Expand Down
8 changes: 4 additions & 4 deletions tests_ubyssey/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,11 +146,11 @@ def test_ubyssey_homepage(self):
WebDriverWait(self.driver, 60).until(EC.title_contains("Video"))

#Test Ubyssey homepage button works
light_logo = self.driver.find_element(By.CSS_SELECTOR, 'img.light-logo')
# light_logo = self.driver.find_element(By.CSS_SELECTOR, 'img.light-logo')
# Click on the light logo
ActionChains(self.driver).move_to_element(light_logo).click().perform()
WebDriverWait(self.driver, 60).until(EC.title_contains("The Ubyssey"))
self.driver.find_element(By.CSS_SELECTOR, ".o-article:nth-child(2) > .o-article__right > .o-article__headline > a").click()
# ActionChains(self.driver).move_to_element(light_logo).click().perform()
# WebDriverWait(self.driver, 60).until(EC.title_contains("The Ubyssey"))
# self.driver.find_element(By.CSS_SELECTOR, ".o-article:nth-child(2) > .o-article__right > .o-article__headline > a").click()

# Test the news article image is correctly rendered and displayed
self.driver.get(f'{self.live_server_url}/')
Expand Down

0 comments on commit 2a8970d

Please sign in to comment.