From 0eac7daddb480f78e5ebf348941d2ebc278d2400 Mon Sep 17 00:00:00 2001 From: Jennifer Richards Date: Wed, 1 Mar 2023 17:04:37 -0400 Subject: [PATCH] test: Use actual room pk instead of assuming keys start at 1 --- ietf/meeting/tests_js.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ietf/meeting/tests_js.py b/ietf/meeting/tests_js.py index 4881684a436..327d526cc8e 100644 --- a/ietf/meeting/tests_js.py +++ b/ietf/meeting/tests_js.py @@ -195,7 +195,7 @@ def test_edit_meeting_schedule(self): 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,