Added test fixture for Browser.NewContextOptions#1788
Added test fixture for Browser.NewContextOptions#1788uchagani wants to merge 1 commit intomicrosoft:mainfrom
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.
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