-
Notifications
You must be signed in to change notification settings - Fork 10.3k
Enable components tests on helix #21280
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@@ -98,7 +100,7 @@ private static async Task InitializeInstance(ITestOutputHelper output) | |||
|
|||
var psi = new ProcessStartInfo | |||
{ | |||
FileName = "npm", | |||
FileName = (string.IsNullOrEmpty(Environment.GetEnvironmentVariable("helix"))) ? "npm" : "yarn", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a particular reason we use yarn only in Helix environments and not everywhere?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can view this PR as more of a prototype trying to get things working, there were weird issues with using both yarn and npm (one blows away the other), on azdo builds, packages are restored as part of build, but on helix we run it as part of the test job, so this PR is sorta just trying to get things working. If you have any ideas or things you want to try, feel free to just push directly in to this PR as its really just meant to be a play ground to try and figure out how to get selenium working on helix.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Got it -- no worries. I'll see if I have time to poke into this.
@@ -40,6 +40,16 @@ public ServerFixture() | |||
|
|||
protected static string FindSampleOrTestSitePath(string projectName) | |||
{ | |||
if (!string.IsNullOrEmpty(Environment.GetEnvironmentVariable("helix"))) | |||
{ | |||
var dir = Path.Combine(AppContext.BaseDirectory, projectName); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@captainsafia this line used to be hardcoded to basictestapp which maybe was the issue with not resolving files properly...fingers crossed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The CI gods will let us know soon! fingers crossed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Track record would say prepare to be smitten then 😭
Ok I think we are down to just blazor configuration of the test apps now, @captainsafia any ideas on what might be causing the bootstrap/blazor stuff to not resolve? I don't see these assets in any of the test files so what normally pulls these in?
|
edadaf3
to
af56edc
Compare
a6493e7
to
6f727eb
Compare
Update Helix.targets Include more test assets Update Microsoft.AspNetCore.Components.E2ETests.csproj Switch to npm from yarn Cleanup Update InstallNode.ps1 Update ServerFixture.cs Fix test site path Update ServerFixture.cs Update ServerFixture.cs Update ServerFixture.cs Make directory match project name Deal with commas Update ServerFixture.cs Fix ref Rename back Remove copy Update package.json Fix files Update BasicTestApp.csproj
Rebased version of #18636