mirror of
https://github.com/lightpanda-io/browser.git
synced 2026-02-04 06:23:45 +00:00
Page.scheduleNavigation for location changes
This commit is contained in:
@@ -403,8 +403,8 @@ fn runWebApiTest(test_file: [:0]const u8) !void {
|
||||
try_catch.init(js_context);
|
||||
defer try_catch.deinit();
|
||||
|
||||
try page.navigate(url, .{}, .{ .push = null });
|
||||
test_session.fetchWait(2000);
|
||||
try page.navigate(url, .{});
|
||||
_ = test_session.wait(2000);
|
||||
|
||||
page._session.browser.runMicrotasks();
|
||||
|
||||
@@ -427,8 +427,8 @@ pub fn pageTest(comptime test_file: []const u8) !*Page {
|
||||
0,
|
||||
);
|
||||
|
||||
try page.navigate(url, .{}, .{ .push = null });
|
||||
test_session.fetchWait(2000);
|
||||
try page.navigate(url, .{});
|
||||
_ = test_session.wait(2000);
|
||||
return page;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user