Fix tests
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user