Skip to content

Commit c030dab

Browse files
committed
Install google chrome and enable components tests
1 parent 373aba8 commit c030dab

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

.azure/pipelines/jobs/default-build.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,8 @@ jobs:
125125
displayName: Install JDK 11
126126
- powershell: Write-Host "##vso[task.prependpath]$env:JAVA_HOME\bin"
127127
displayName: Prepend JAVA bin folder to the PATH.
128+
- powershell: ./eng/scripts/InstallGoogleChrome.ps1
129+
displayName: Install chrome
128130
- ${{ if and(eq(variables['System.TeamProject'], 'internal'), eq(parameters.agentOs, 'Windows'), eq(parameters.codeSign, 'true')) }}:
129131
- task: MicroBuildSigningPlugin@1
130132
displayName: Install MicroBuild Signing plugin

eng/scripts/InstallGoogleChrome.ps1

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
$InstallerPath = "$env:Temp\chrome_installer.exe";
2+
Invoke-WebRequest "http://dl.google.com/chrome/install/375.126/chrome_installer.exe" -OutFile $InstallerPath;
3+
Start-Process -FilePath $InstallerPath -Args "/silent /install" -Verb RunAs -Wait;
4+
Remove-Item $InstallerPath

src/Components/test/E2ETest/Microsoft.AspNetCore.Components.E2ETests.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<!--
1010
Temporarily disabled until this runs on macOS
1111
-->
12-
<SkipTests Condition="'$(BlazorAllTests)' != 'true'">true</SkipTests>
12+
<SkipTests Condition="'$(SeleniumE2ETestsSupported)' != 'true'">true</SkipTests>
1313
<!-- https://github.com/aspnet/AspNetCore/issues/6857 -->
1414
<BuildHelixPayload>false</BuildHelixPayload>
1515
</PropertyGroup>

0 commit comments

Comments
 (0)