Remove circular dependency.

This commit is contained in:
HarelM
2026-07-09 15:38:41 +03:00
parent dd04c14d96
commit b76d9cbe29
3 changed files with 11 additions and 8 deletions
+3 -3
View File
@@ -1,4 +1,4 @@
import { Assertable, PlaywrightHelper } from "./playwright-helper";
import { PlaywrightHelper } from "./playwright-helper";
import { ModalDriver } from "./modal-driver";
const baseUrl = "http://localhost:8888/";
@@ -12,9 +12,9 @@ const isMac = process.platform === "darwin";
*/
export class MaputnikDriver {
private readonly helper = new PlaywrightHelper();
private readonly modalDriver = new ModalDriver(this);
private readonly modalDriver = new ModalDriver();
then = <T>(target: T) => new Assertable(target);
then = this.helper.then;
/** Reads the maputnik style currently persisted in localStorage. */
private async readStoredStyle(): Promise<any> {