Skip to content

Commit

Permalink
Expect 6 errors, Wait for rosterSection to load instead of waiting fo…
Browse files Browse the repository at this point in the history
…r titreRoster
  • Loading branch information
nstephenh committed Sep 4, 2024
1 parent 2ec1610 commit f72fddf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def load_list(self, roster_name: str):
# Wait until the list has loaded
print("Waiting for the list to load...")
self.wait.until(lambda drv:
drv.find_element(By.CLASS_NAME, 'titreRoster'))
drv.find_element(By.CLASS_NAME, 'rosterSection'))

def tearDown(self):
if self.debug:
Expand Down Expand Up @@ -120,10 +120,10 @@ def test_verify_no_ros_files(self):
"There is a .ros file in the tests directory, which will break appspot."
" Rename the file to .test")

def test_LA_5_errors(self):
def test_crusade_6_errors(self):
self.load_list('Empty Validation Test')
errors = self.get_error_list()
self.assertEqual(5, len(errors), "There should be 5 errors in an empty space marine list")
self.assertEqual(6, len(errors), "There should be 6 errors in an empty crusade force org marine list")

def test_dt_does_not_affect_squad_cost(self):
self.load_list('Dedicated Transport Squad Costs')
Expand Down

0 comments on commit f72fddf

Please sign in to comment.