test: Use actual room pk instead of assuming keys start at 1 (#5255)

This commit is contained in:
Jennifer Richards 2023-03-01 17:08:40 -04:00 committed by GitHub
parent 82f23da2b3
commit 963b1bd197
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -195,7 +195,7 @@ class EditMeetingScheduleTests(IetfSeleniumTestCase):
self.assertTrue(self.driver.find_elements(By.CSS_SELECTOR, '#timeslot{}.would-violate-hint'.format(slot1.pk)))
# Find the timeslot label for slot1 - it's the first timeslot in the room group containing room 1
slot1_roomgroup_elt = self.driver.find_element(By.CSS_SELECTOR,
'.day-flow .day:first-child .room-group[data-rooms="1"]'
f'.day-flow .day:first-child .room-group[data-rooms="{room1.pk}"]'
)
self.assertTrue(
slot1_roomgroup_elt.find_elements(By.CSS_SELECTOR,