File tree 3 files changed +3
-23
lines changed
3 files changed +3
-23
lines changed Original file line number Diff line number Diff line change @@ -118,7 +118,6 @@ public async Task ShouldWorkWithNewContext()
118
118
{
119
119
var context = await Browser . NewContextAsync ( new ( )
120
120
{
121
- // TODO: Remove this once we can pass a custom CA.
122
121
IgnoreHTTPSErrors = true ,
123
122
ClientCertificates =
124
123
[
@@ -153,7 +152,6 @@ public async Task ShouldWorkWithNewPage()
153
152
{
154
153
var page = await Browser . NewPageAsync ( new ( )
155
154
{
156
- // TODO: Remove this once we can pass a custom CA.
157
155
IgnoreHTTPSErrors = true ,
158
156
ClientCertificates =
159
157
[
@@ -181,7 +179,6 @@ public async Task ShouldWorkWithLaunchPersistentContext()
181
179
{
182
180
var context = await BrowserType . LaunchPersistentContextAsync ( "" , new ( )
183
181
{
184
- // TODO: Remove this once we can pass a custom CA.
185
182
IgnoreHTTPSErrors = true ,
186
183
ClientCertificates =
187
184
[
@@ -210,7 +207,6 @@ public async Task ShouldWorkWithAPIRequestContext()
210
207
{
211
208
var request = await Playwright . APIRequest . NewContextAsync ( new ( )
212
209
{
213
- // TODO: Remove this once we can pass a custom CA.
214
210
IgnoreHTTPSErrors = true ,
215
211
ClientCertificates =
216
212
[
Original file line number Diff line number Diff line change @@ -513,13 +513,9 @@ await Page.RouteAsync("**/*", (route) =>
513
513
route . ContinueAsync ( ) ;
514
514
requests . Add ( route . Request ) ;
515
515
} ) ;
516
- var response = await Page . GotoAsync ( $ "data:text/html,<link rel=\" stylesheet\" href=\" { Server . EmptyPage } /fonts?helvetica|arial\" />") ;
516
+ var response = await Page . GotoAsync ( $ "data:text/html,<meta charset=utf-8>< link rel=\" stylesheet\" href=\" { Server . EmptyPage } /fonts?helvetica|arial\" />") ;
517
517
Assert . Null ( response ) ;
518
- // TODO: https://github.com/microsoft/playwright/issues/12789
519
- if ( TestConstants . IsFirefox )
520
- Assert . That ( requests , Has . Count . EqualTo ( 2 ) ) ;
521
- else
522
- Assert . That ( requests , Has . Count . EqualTo ( 1 ) ) ;
518
+ Assert . That ( requests , Has . Count . EqualTo ( 1 ) ) ;
523
519
Assert . AreEqual ( ( int ) HttpStatusCode . NotFound , ( await requests [ 0 ] . ResponseAsync ( ) ) . Status ) ;
524
520
}
525
521
Original file line number Diff line number Diff line change @@ -158,21 +158,9 @@ public async Task<IBrowserContext> LaunchPersistentContextAsync(string userDataD
158
158
159
159
var context = await SendMessageToServerAsync < BrowserContext > ( "launchPersistentContext" , channelArgs ) . ConfigureAwait ( false ) ;
160
160
161
- // TODO: unite with a single browser context options type which is derived from channels
162
161
DidCreateContext (
163
162
context ,
164
- new ( )
165
- {
166
- RecordVideoDir = options . RecordVideoDir ,
167
- RecordVideoSize = options . RecordVideoSize ,
168
- RecordHarContent = options . RecordHarContent ,
169
- RecordHarMode = options . RecordHarMode ,
170
- RecordHarOmitContent = options . RecordHarOmitContent ,
171
- RecordHarPath = options . RecordHarPath ,
172
- RecordHarUrlFilter = options . RecordHarUrlFilter ,
173
- RecordHarUrlFilterString = options . RecordHarUrlFilterString ,
174
- RecordHarUrlFilterRegex = options . RecordHarUrlFilterRegex ,
175
- } ,
163
+ ClassUtils . Clone < BrowserNewContextOptions > ( options ) ,
176
164
options ? . TracesDir ) ;
177
165
178
166
return context ;
You can’t perform that action at this time.
0 commit comments