-
Notifications
You must be signed in to change notification settings - Fork 232
Added test fixture for Browser.NewContextOptions #1788
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
|
||
@Override | ||
public boolean supportsParameter(ParameterContext parameterContext, ExtensionContext extensionContext) throws ParameterResolutionException { | ||
return isParameterSupported(parameterContext, extensionContext, Browser.NewContextOptions.class); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps we should support this for Browser.NewPageOptions
too as browser.newPage()
is essentially a shortcut for newContext followed by newPage.
Looks like the new tests are failing. |
yea i need to figure out what's going. they pass locally for me |
@yury-s can we re-run? looks like they're mostly failing to connect to the test server |
Restarted the jobs. |
@yury-s I'm trying to fix these tests and running into an odd issue. When the base url is set to public static class CustomOptions implements OptionsFactory {
@Override
public Options getOptions() {
System.out.println("Empty Page URL: " + serverMap.get(TestFixtureContextOptions.class).EMPTY_PAGE);
return new Options()
.setApiRequestOptions(new APIRequest.NewContextOptions()
.setBaseURL(serverMap.get(TestFixtureContextOptions.class).EMPTY_PAGE))
.setContextOptions(new Browser.NewContextOptions()
.setBaseURL(serverMap.get(TestFixtureContextOptions.class).EMPTY_PAGE));
}
} and I run I will get the error:
Is this not supported? |
Also this only happens when I'm running all tests together. I've verified via logging that the URL used in the options is the same as the url in the test. Might need to do more digging. Maybe some race condition with the httpserver |
Yeah, sounds like a race condition. I'd check with |
Resolves #1781