mirror of
https://github.com/lightpanda-io/browser.git
synced 2025-12-23 22:58:00 -05:00
Merge pull request #1284 from lightpanda-io/fix-page-navigate
Fix page navigate with legacy_test
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user