mirror of
https://github.com/lightpanda-io/browser.git
synced 2026-03-29 08:00:05 +00:00
Tweak wait_until option
Small tweaks to https://github.com/lightpanda-io/browser/pull/1896 Improve the wait ergonomics with an Option with default parameter. Revert page pointer logic to original (don't think that change was necessary).
This commit is contained in:
@@ -415,7 +415,7 @@ fn runWebApiTest(test_file: [:0]const u8) !void {
|
||||
defer try_catch.deinit();
|
||||
|
||||
try page.navigate(url, .{});
|
||||
_ = test_session.wait(2000, .load);
|
||||
_ = test_session.wait(.{});
|
||||
|
||||
test_browser.runMicrotasks();
|
||||
|
||||
@@ -439,7 +439,7 @@ pub fn pageTest(comptime test_file: []const u8) !*Page {
|
||||
);
|
||||
|
||||
try page.navigate(url, .{});
|
||||
_ = test_session.wait(2000, .load);
|
||||
_ = test_session.wait(.{});
|
||||
return page;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user