Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.
TypeScript automationchromechromiume2e-testingelectronend-to-end-testingfirefoxjavascriptplaywrighttesttest-automationtestingtesting-toolswebwebkit
chore(dotnet): allow nullable channels (#36114)
Max Schmitta6f71a67406e
diff --git a/utils/generate_dotnet_channels.js b/utils/generate_dotnet_channels.jsindex 979604faf8..b6f0b7716e 100644--- a/utils/generate_dotnet_channels.js+++ b/utils/generate_dotnet_channels.js@@ -144,7 +144,10 @@ function properties(properties, indent, onlyOptional, parentName, level) {continue;ts.push('');ts.push(`${indent}[JsonPropertyName("${name}")]`);- ts.push(`${indent}public ${inner.ts}${nullableSuffix(inner)} ${toTitleCase(name)} { get; set; }`);+ let suffix = ''+ if (!['bool', 'int', 'System.Text.Json.JsonElement'].includes(inner.ts))+ suffix = ' = null!;'+ ts.push(`${indent}public ${inner.ts}${nullableSuffix(inner)} ${toTitleCase(name)} { get; set; }${suffix}`);const wrapped = inner.optional ? `tOptional(${inner.scheme})` : inner.scheme;scheme.push(`${indent}${name}: ${wrapped},`);}