Page.scheduleNavigation for location changes

This commit is contained in:
Karl Seguin
2025-12-22 12:19:08 +08:00
parent da32440a14
commit d9c53a3def
15 changed files with 187 additions and 92 deletions

View File

@@ -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;
}