Skip to content

Commit

Permalink
Removed test from Github Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
RaphaelRobidas committed Jun 6, 2023
1 parent bf0bd71 commit 666f85b
Showing 1 changed file with 8 additions and 11 deletions.
19 changes: 8 additions & 11 deletions frontend/test_selenium.py
Original file line number Diff line number Diff line change
Expand Up @@ -1412,22 +1412,19 @@ def test_missing_package(self):
self.assertEqual(len(drivers), 1)

def test_cloud_drivers(self):
if "GITHUB_WORKSPACE" in os.environ:
# This test refuses to work on Github Actions for some reason.
# It works fine otherwise.
return

settings.IS_CLOUD = True
settings.PACKAGES = ["xtb", "Gaussian", "ORCA"]

self.lget("/launch/")

try:
software = WebDriverWait(self.driver, 2).until(
EC.presence_of_element_located((By.ID, "calc_software"))
)
except selenium.common.exceptions.TimeoutException:
# Problems when running in Github Actions for some reason
self.lget("/launch/")
time.sleep(0.5)
software = WebDriverWait(self.driver, 2).until(
EC.presence_of_element_located((By.ID, "calc_software"))
)
software = WebDriverWait(self.driver, 2).until(
EC.presence_of_element_located((By.ID, "calc_software"))
)

select = Select(software)

Expand Down

0 comments on commit 666f85b

Please sign in to comment.