chore: .NET generator fixes (#31401)
This commit is contained in:
parent
940d20ad0b
commit
1ebd20a47b
|
|
@ -435,7 +435,7 @@ it('should return error with wrong credentials', async ({ context, server }) =>
|
||||||
expect(response2.status()).toBe(401);
|
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' });
|
it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/30534' });
|
||||||
const context = await contextFactory({
|
const context = await contextFactory({
|
||||||
httpCredentials: { username: 'user', password: 'pass', origin: server.PREFIX.toUpperCase(), send: 'always' }
|
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' });
|
it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/30534' });
|
||||||
const page = await browser.newPage({
|
const page = await browser.newPage({
|
||||||
httpCredentials: { username: 'user', password: 'pass', origin: server.PREFIX.toUpperCase(), send: 'always' }
|
httpCredentials: { username: 'user', password: 'pass', origin: server.PREFIX.toUpperCase(), send: 'always' }
|
||||||
|
|
|
||||||
|
|
@ -154,7 +154,7 @@ it('should support WWW-Authenticate: Basic', async ({ playwright, server }) => {
|
||||||
expect(credentials).toBe('user:pass');
|
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' });
|
it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/30534' });
|
||||||
const request = await playwright.request.newContext({
|
const request = await playwright.request.newContext({
|
||||||
httpCredentials: { username: 'user', password: 'pass', origin: server.PREFIX.toUpperCase(), send: 'always' }
|
httpCredentials: { username: 'user', password: 'pass', origin: server.PREFIX.toUpperCase(), send: 'always' }
|
||||||
|
|
|
||||||
|
|
@ -82,6 +82,7 @@ classNameMap.set('boolean', 'bool');
|
||||||
classNameMap.set('any', 'object');
|
classNameMap.set('any', 'object');
|
||||||
classNameMap.set('Buffer', 'byte[]');
|
classNameMap.set('Buffer', 'byte[]');
|
||||||
classNameMap.set('path', 'string');
|
classNameMap.set('path', 'string');
|
||||||
|
classNameMap.set('Date', 'DateTime');
|
||||||
classNameMap.set('URL', 'string');
|
classNameMap.set('URL', 'string');
|
||||||
classNameMap.set('RegExp', 'Regex');
|
classNameMap.set('RegExp', 'Regex');
|
||||||
classNameMap.set('Readable', 'Stream');
|
classNameMap.set('Readable', 'Stream');
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue