From 1ebd20a47baa640b5e92afb2e1d5d46c408a1d8a Mon Sep 17 00:00:00 2001 From: Max Schmitt Date: Thu, 20 Jun 2024 23:33:46 +0200 Subject: [PATCH] chore: .NET generator fixes (#31401) --- tests/library/browsercontext-fetch.spec.ts | 4 ++-- tests/library/global-fetch.spec.ts | 2 +- utils/doclint/generateDotnetApi.js | 1 + 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/tests/library/browsercontext-fetch.spec.ts b/tests/library/browsercontext-fetch.spec.ts index a8aaeb389f..550cc56d74 100644 --- a/tests/library/browsercontext-fetch.spec.ts +++ b/tests/library/browsercontext-fetch.spec.ts @@ -435,7 +435,7 @@ it('should return error with wrong credentials', async ({ context, server }) => expect(response2.status()).toBe(401); }); -it('should support HTTPCredentials.sendImmediately for newContext', async ({ contextFactory, server }) => { +it('should support HTTPCredentials.send for newContext', async ({ contextFactory, server }) => { it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/30534' }); const context = await contextFactory({ httpCredentials: { username: 'user', password: 'pass', origin: server.PREFIX.toUpperCase(), send: 'always' } @@ -459,7 +459,7 @@ it('should support HTTPCredentials.sendImmediately for newContext', async ({ con } }); -it('should support HTTPCredentials.sendImmediately for browser.newPage', async ({ contextFactory, server, browser }) => { +it('should support HTTPCredentials.send for browser.newPage', async ({ contextFactory, server, browser }) => { it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/30534' }); const page = await browser.newPage({ httpCredentials: { username: 'user', password: 'pass', origin: server.PREFIX.toUpperCase(), send: 'always' } diff --git a/tests/library/global-fetch.spec.ts b/tests/library/global-fetch.spec.ts index 264df5c619..5915272621 100644 --- a/tests/library/global-fetch.spec.ts +++ b/tests/library/global-fetch.spec.ts @@ -154,7 +154,7 @@ it('should support WWW-Authenticate: Basic', async ({ playwright, server }) => { expect(credentials).toBe('user:pass'); }); -it('should support HTTPCredentials.sendImmediately', async ({ playwright, server }) => { +it('should support HTTPCredentials.send', async ({ playwright, server }) => { it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/30534' }); const request = await playwright.request.newContext({ httpCredentials: { username: 'user', password: 'pass', origin: server.PREFIX.toUpperCase(), send: 'always' } diff --git a/utils/doclint/generateDotnetApi.js b/utils/doclint/generateDotnetApi.js index db2204617b..9c094026f9 100644 --- a/utils/doclint/generateDotnetApi.js +++ b/utils/doclint/generateDotnetApi.js @@ -82,6 +82,7 @@ classNameMap.set('boolean', 'bool'); classNameMap.set('any', 'object'); classNameMap.set('Buffer', 'byte[]'); classNameMap.set('path', 'string'); +classNameMap.set('Date', 'DateTime'); classNameMap.set('URL', 'string'); classNameMap.set('RegExp', 'Regex'); classNameMap.set('Readable', 'Stream');