Fix tests

This commit is contained in:
2025-06-16 22:41:32 -07:00
parent 9508fcf78d
commit 684072b577
4 changed files with 16 additions and 24 deletions

View File

@@ -26,7 +26,7 @@ beforeEach(async () => {
describe('a trooper', () => {
beforeEach(async () => {
await mockResponse(driver, `/assets/images/${scenario}`, fixture, (document) => {
placeCounter(document, createTroopCounter(), { x: 1, y: 1 });
placeCounter(document, createTroopCounter(), { q: 0, r: 0, s: 0 });
return svgDocument(document);
});
});
@@ -43,7 +43,7 @@ describe('a trooper', () => {
await page.expectNotSelected(counter);
await counter.click();
await takeScreenshot(driver);
await page.expectSelected(counter);
await driver.switchTo().defaultContent();
await page.expectSelected(await record);