-
Notifications
You must be signed in to change notification settings - Fork 10.3k
[5.0.0-rc2] Backport Fix chrome/selenium tests (#25330) #25840
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
* Revert "Disable failing/hanging tests due to Chrome/Selenium issue (#25323)" This reverts commit 332f150. * Update Selenium to latest * Update API * Try specifying a version * Update Selenium to 4.0.0-beta5 * Disable browser log tests * Fix components e2e tests and disable blazor standalone template test
Approved but it appears different tests are failing on this branch |
I see one rc2 test that's affected by browser logs which I can disable. There's one blazor pwa template that seems fail to authenticate HTTPS and the rest look like setting cultures is broken. Not sure why that's the case. |
Taking a quick look, it does seem like there are some test issues, at least for the culture-related ones. For example:
|
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.
Changes look good to me. Thanks for pursuing this, @JunTaoLuo!
As for why certain culture-specific tests are failing, I'm unsure. @pranavkm, you recently did some work to set up culture-specific E2E tests. Do you have any insights into what's going on here?
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.
Seeking clarification on comment above
1bfe896
to
b3fd941
Compare
* Annotate BasicTestApp suggesting that it needs the all globalization data * Culture specific formatting relies on the ICU data carried by the OS. This causes issues in our tests if WebAssembly carries a different set than the OS. Instead updating these tests to use hardcoded strings. * Additionally fixing an issue where some projects in the solution were using tasks from the .dotnet SDK rather than the local copy of the SDK. This was causing issues building locally.
@@ -12,7 +12,12 @@ | |||
<PackageReference Include="MicroBuild.Core" Version="0.3.0" PrivateAssets="All" AllowExplicitReference="true" ExcludeAssets="All" /> | |||
</ItemGroup> | |||
|
|||
<ItemGroup Condition="'$(UsingMicrosoftNETSdkWeb)' == 'true' OR '$(UsingMicrosoftNETSdkBlazorWebAssembly)' == 'true' OR '$(RazorSdkCurrentVersionProps)' != ''"> | |||
<PropertyGroup> | |||
<_ReferenceLocalRazorSDK |
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.
@SteveSandersonMS this should fix the issue with you were seeing. I ran in to when debugging the tests in VS and really had to fix this to make any progression.
@@ -39,7 +36,7 @@ public void LoadingApp_FrenchLanguage_Works() | |||
Assert.Equal(culture.ToString(), cultureDisplay.Text); | |||
|
|||
var dateDisplay = Browser.Exists(By.Id("dateTime")); | |||
Assert.Equal(DisplayTime.ToString(culture), dateDisplay.Text); | |||
Assert.Equal("02/09/2020 00:00:00", dateDisplay.Text); |
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 ICU data on the server depends on the OS. On my machine, it's up to date with WASM but not so on the build machines. Using hardcoded strings seems like the best way to proceed: dotnet/runtime#42136
Thanks for the fix @pranavkm |
Back port of #25330 to rc2. Since it's only testing, I'm going to mark this as tell mode.