fixed jasmine & RoleSelectTest FT methods that were failing due to the Role card reordering in previous pipeline push
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
@@ -532,7 +532,7 @@ class RoleSelectTest(FunctionalTest):
|
|||||||
self.create_pre_authenticated_session("founder@test.io")
|
self.create_pre_authenticated_session("founder@test.io")
|
||||||
self.browser.get(room_url)
|
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(
|
self.wait_for(
|
||||||
lambda: self.browser.find_element(
|
lambda: self.browser.find_element(
|
||||||
By.CSS_SELECTOR, ".card-stack[data-state='eligible']"
|
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(
|
self.wait_for(
|
||||||
lambda: self.browser.find_element(
|
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(
|
self.assertEqual(
|
||||||
len(self.browser.find_elements(
|
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,
|
0,
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -441,10 +441,10 @@ describe("RoleSelect", () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
it("adds role-confirmed class to the seated position after placeCard completes", async () => {
|
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");
|
const seat = document.createElement("div");
|
||||||
seat.className = "table-seat";
|
seat.className = "table-seat";
|
||||||
seat.dataset.role = "PC";
|
seat.dataset.role = "SC";
|
||||||
seat.innerHTML = '<i class="position-status-icon fa-solid fa-ban"></i>';
|
seat.innerHTML = '<i class="position-status-icon fa-solid fa-ban"></i>';
|
||||||
testDiv.appendChild(seat);
|
testDiv.appendChild(seat);
|
||||||
|
|
||||||
|
|||||||
@@ -441,10 +441,10 @@ describe("RoleSelect", () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
it("adds role-confirmed class to the seated position after placeCard completes", async () => {
|
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");
|
const seat = document.createElement("div");
|
||||||
seat.className = "table-seat";
|
seat.className = "table-seat";
|
||||||
seat.dataset.role = "PC";
|
seat.dataset.role = "SC";
|
||||||
seat.innerHTML = '<i class="position-status-icon fa-solid fa-ban"></i>';
|
seat.innerHTML = '<i class="position-status-icon fa-solid fa-ban"></i>';
|
||||||
testDiv.appendChild(seat);
|
testDiv.appendChild(seat);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user