Merge pull request #1284 from lightpanda-io/fix-page-navigate

Fix page navigate with legacy_test
This commit is contained in:
Karl Seguin
2025-12-22 22:58:41 +08:00
committed by GitHub
2 changed files with 3 additions and 3 deletions

View File

@@ -85,8 +85,8 @@ pub fn run(allocator: Allocator, file: []const u8, session: *lp.Session) !void {
try_catch.init(js_context);
defer try_catch.deinit();
try page.navigate(url, .{}, .{ .push = null });
session.wait(2000);
try page.navigate(url, .{});
_ = session.wait(2000);
page._session.browser.runMicrotasks();
page._session.browser.runMessageLoop();

View File

@@ -114,7 +114,7 @@ fn run(
defer session.removePage();
const url = try std.fmt.allocPrintSentinel(arena, "http://localhost:9582/{s}", .{test_file}, 0);
try page.navigate(url, .{}, .{ .push = null });
try page.navigate(url, .{});
_ = page.wait(2000);