test: use net8.0 for webview2 tests (#28665)
This commit is contained in:
parent
86ef7393ba
commit
35b61b7cdf
4
.github/workflows/tests_webview2.yml
vendored
4
.github/workflows/tests_webview2.yml
vendored
|
|
@ -29,9 +29,9 @@ jobs:
|
|||
- uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 18
|
||||
- uses: actions/setup-dotnet@v2
|
||||
- uses: actions/setup-dotnet@v3
|
||||
with:
|
||||
dotnet-version: '6.0.x'
|
||||
dotnet-version: '8.0.x'
|
||||
- run: npm ci
|
||||
env:
|
||||
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: 1
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ import playwright from 'playwright';
|
|||
|
||||
export default async () => {
|
||||
const cdpPort = 9876;
|
||||
const spawnedProcess = childProcess.spawn(path.join(__dirname, 'webview2-app/bin/Debug/net6.0-windows/webview2.exe'), {
|
||||
const spawnedProcess = childProcess.spawn(path.join(__dirname, 'webview2-app/bin/Debug/net8.0-windows/webview2.exe'), {
|
||||
shell: true,
|
||||
env: {
|
||||
...process.env,
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@ export const webView2Test = baseTest.extend<TraceViewerFixtures>(traceViewerFixt
|
|||
browser: [async ({ playwright }, use, testInfo) => {
|
||||
const cdpPort = 10000 + testInfo.workerIndex;
|
||||
const spawnedProcess = new TestChildProcess({
|
||||
command: [path.join(__dirname, 'webview2-app/bin/Debug/net6.0-windows/webview2.exe')],
|
||||
command: [path.join(__dirname, 'webview2-app/bin/Debug/net8.0-windows/webview2.exe')],
|
||||
shell: true,
|
||||
env: {
|
||||
...process.env,
|
||||
|
|
|
|||
|
|
@ -2,14 +2,14 @@
|
|||
|
||||
<PropertyGroup>
|
||||
<OutputType>WinExe</OutputType>
|
||||
<TargetFramework>net6.0-windows</TargetFramework>
|
||||
<TargetFramework>net8.0-windows</TargetFramework>
|
||||
<Nullable>enable</Nullable>
|
||||
<UseWindowsForms>true</UseWindowsForms>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Microsoft.Web.WebView2" Version="1.0.1293.44" />
|
||||
<PackageReference Include="Microsoft.Web.WebView2" Version="1.0.2210.55" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
Loading…
Reference in a new issue