Skip to content

Commit 4ec4ccf

Browse files
committed
cherry-pick(#31401): chore: .NET generator fixes
1 parent 3b4d32e commit 4ec4ccf

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

tests/library/browsercontext-fetch.spec.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,7 @@ it('should return error with wrong credentials', async ({ context, server }) =>
435435
expect(response2.status()).toBe(401);
436436
});
437437

438-
it('should support HTTPCredentials.sendImmediately for newContext', async ({ contextFactory, server }) => {
438+
it('should support HTTPCredentials.send for newContext', async ({ contextFactory, server }) => {
439439
it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/30534' });
440440
const context = await contextFactory({
441441
httpCredentials: { username: 'user', password: 'pass', origin: server.PREFIX.toUpperCase(), send: 'always' }
@@ -459,7 +459,7 @@ it('should support HTTPCredentials.sendImmediately for newContext', async ({ con
459459
}
460460
});
461461

462-
it('should support HTTPCredentials.sendImmediately for browser.newPage', async ({ contextFactory, server, browser }) => {
462+
it('should support HTTPCredentials.send for browser.newPage', async ({ contextFactory, server, browser }) => {
463463
it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/30534' });
464464
const page = await browser.newPage({
465465
httpCredentials: { username: 'user', password: 'pass', origin: server.PREFIX.toUpperCase(), send: 'always' }

tests/library/global-fetch.spec.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ it('should support WWW-Authenticate: Basic', async ({ playwright, server }) => {
154154
expect(credentials).toBe('user:pass');
155155
});
156156

157-
it('should support HTTPCredentials.sendImmediately', async ({ playwright, server }) => {
157+
it('should support HTTPCredentials.send', async ({ playwright, server }) => {
158158
it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/30534' });
159159
const request = await playwright.request.newContext({
160160
httpCredentials: { username: 'user', password: 'pass', origin: server.PREFIX.toUpperCase(), send: 'always' }

utils/doclint/generateDotnetApi.js

+1
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ classNameMap.set('boolean', 'bool');
8282
classNameMap.set('any', 'object');
8383
classNameMap.set('Buffer', 'byte[]');
8484
classNameMap.set('path', 'string');
85+
classNameMap.set('Date', 'DateTime');
8586
classNameMap.set('URL', 'string');
8687
classNameMap.set('RegExp', 'Regex');
8788
classNameMap.set('Readable', 'Stream');

0 commit comments

Comments
 (0)