From d4518a0671a27b75d2bc326f09785fb671dae518 Mon Sep 17 00:00:00 2001 From: Disco DeDisco Date: Sun, 5 Apr 2026 01:52:30 -0400 Subject: [PATCH] fixed jasmine & RoleSelectTest FT methods that were failing due to the Role card reordering in previous pipeline push --- src/functional_tests/test_room_role_select.py | 8 ++++---- src/static/tests/RoleSelectSpec.js | 4 ++-- src/static_src/tests/RoleSelectSpec.js | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/functional_tests/test_room_role_select.py b/src/functional_tests/test_room_role_select.py index 8414910..b049d01 100644 --- a/src/functional_tests/test_room_role_select.py +++ b/src/functional_tests/test_room_role_select.py @@ -532,7 +532,7 @@ class RoleSelectTest(FunctionalTest): self.create_pre_authenticated_session("founder@test.io") self.browser.get(room_url) - # Open fan, pick first card (PC), confirm guard + # Open fan, pick first card (SC — Shepherd), confirm guard self.wait_for( lambda: self.browser.find_element( By.CSS_SELECTOR, ".card-stack[data-state='eligible']" @@ -550,15 +550,15 @@ class RoleSelectTest(FunctionalTest): ) ) - # The PC seat (slot 1) now shows check, no ban + # The SC seat (slot 1) now shows check, no ban self.wait_for( lambda: self.browser.find_element( - By.CSS_SELECTOR, ".table-seat[data-role='PC'] .fa-circle-check" + By.CSS_SELECTOR, ".table-seat[data-role='SC'] .fa-circle-check" ) ) self.assertEqual( len(self.browser.find_elements( - By.CSS_SELECTOR, ".table-seat[data-role='PC'] .fa-ban" + By.CSS_SELECTOR, ".table-seat[data-role='SC'] .fa-ban" )), 0, ) diff --git a/src/static/tests/RoleSelectSpec.js b/src/static/tests/RoleSelectSpec.js index 5861069..eae2db3 100644 --- a/src/static/tests/RoleSelectSpec.js +++ b/src/static/tests/RoleSelectSpec.js @@ -441,10 +441,10 @@ describe("RoleSelect", () => { }); it("adds role-confirmed class to the seated position after placeCard completes", async () => { - // Add a seat element matching the first available role (PC) + // Add a seat element matching the first available role (SC — Shepherd) const seat = document.createElement("div"); seat.className = "table-seat"; - seat.dataset.role = "PC"; + seat.dataset.role = "SC"; seat.innerHTML = ''; testDiv.appendChild(seat); diff --git a/src/static_src/tests/RoleSelectSpec.js b/src/static_src/tests/RoleSelectSpec.js index 5861069..eae2db3 100644 --- a/src/static_src/tests/RoleSelectSpec.js +++ b/src/static_src/tests/RoleSelectSpec.js @@ -441,10 +441,10 @@ describe("RoleSelect", () => { }); it("adds role-confirmed class to the seated position after placeCard completes", async () => { - // Add a seat element matching the first available role (PC) + // Add a seat element matching the first available role (SC — Shepherd) const seat = document.createElement("div"); seat.className = "table-seat"; - seat.dataset.role = "PC"; + seat.dataset.role = "SC"; seat.innerHTML = ''; testDiv.appendChild(seat);