Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions wafer/schedule/tests/test_schedule_editor.py
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ def test_drag_page(self):
self.assertTrue(found2)
self.assertEqual(tab_items, post_drag_tab_items)

def test_swicth_day(self):
def test_switch_day(self):
"""Test selecting different days"""
# Create a couple of schedule items on each day
item1 = ScheduleItem.objects.create(venue=self.venues[0],
Expand Down Expand Up @@ -351,8 +351,8 @@ def test_swicth_day(self):
self.driver.find_element(By.ID, f"scheduleItem{item3.pk}")
# Switch day
buttons = self.driver.find_elements(By.TAG_NAME, 'button')
self.assertIn('Sep', buttons[1].text)
buttons[1].click()
self.assertIn('Sep', buttons[2].text)
buttons[2].click()
WebDriverWait(self.driver, SELENIUM_WAIT_TIME).until(
expected_conditions.presence_of_element_located((By.CLASS_NAME, "show"))
)
Expand Down
Loading