mirror of
https://github.com/lightpanda-io/browser.git
synced 2025-12-17 00:38:59 +00:00
fix test
This commit is contained in:
@@ -147,6 +147,7 @@ const TestContext = struct {
|
||||
|
||||
const BrowserContextOpts = struct {
|
||||
id: ?[]const u8 = null,
|
||||
target_id: ?[]const u8 = null,
|
||||
session_id: ?[]const u8 = null,
|
||||
};
|
||||
pub fn loadBrowserContext(self: *TestContext, opts: BrowserContextOpts) !*main.BrowserContext(TestCDP) {
|
||||
@@ -163,6 +164,10 @@ const TestContext = struct {
|
||||
bc.id = id;
|
||||
}
|
||||
|
||||
if (opts.target_id) |tid| {
|
||||
bc.target_id = tid;
|
||||
}
|
||||
|
||||
if (opts.session_id) |sid| {
|
||||
bc.session_id = sid;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user