Skip to content

Commit

Permalink
Merge pull request #868 from gemini-testing/HERMIONE-1431.fix_cb_events
Browse files Browse the repository at this point in the history
fix: use WebdriverIO.Browser instead of webdriverio browser
  • Loading branch information
KuznetsovRoman authored Mar 12, 2024
2 parents 8e0b380 + fcd6c50 commit b6b4836
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/types/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import type { Browser } from "webdriverio";
import { Events } from "../events";
import { MainRunner } from "../runner";
import { TestCollection } from "../test-collection";
Expand Down Expand Up @@ -32,7 +31,10 @@ export interface BrowserInfo {
sessionId: string;
}

export type AsyncSessionEventCallback = (browser: Browser, browserInfo: BrowserInfo) => Promise<void> | void;
export type AsyncSessionEventCallback = (
browser: WebdriverIO.Browser,
browserInfo: BrowserInfo,
) => Promise<void> | void;

export interface ImageSize {
width: number;
Expand Down Expand Up @@ -150,7 +152,7 @@ export interface BeforeFileReadData extends AfterFileReadData {
}

export type SyncSessionEventCallback = (
browser: Browser,
browser: WebdriverIO.Browser,
browserInfo: { browserId: string; browserVersion: string },
) => void;

Expand Down

0 comments on commit b6b4836

Please sign in to comment.