Skip to content
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

Failing test Aspire.Dashboard.Tests.Integration.Playwright.AppBarTests.AppBar_Change_Theme #4851

Closed
radical opened this issue Jul 11, 2024 · 4 comments · Fixed by #5499 · May be fixed by #4894
Closed

Failing test Aspire.Dashboard.Tests.Integration.Playwright.AppBarTests.AppBar_Change_Theme #4851

radical opened this issue Jul 11, 2024 · 4 comments · Fixed by #5499 · May be fixed by #4894

Comments

@radical
Copy link
Member

radical commented Jul 11, 2024

Build: https://dev.azure.com/dnceng/internal/_build/results?buildId=2492446&view=ms.vss-test-web.build-test-results-tab&runId=53858631&resultId=100204&paneView=debug

  Failed Aspire.Dashboard.Tests.Integration.Playwright.AppBarTests.AppBar_Change_Theme [10 s]
  Error Message:
   Microsoft.Playwright.PlaywrightException : Locator expected to be visible 
Call log:
  - LocatorAssertions.ToBeVisibleAsync with timeout 5000ms
  - waiting for GetByText("TestResource")
  Stack Trace:
     at Microsoft.Playwright.Core.AssertionsBase.ExpectImplAsync(String expression, FrameExpectOptions expectOptions, Object expected, String message) in /_/src/Playwright/Core/AssertionsBase.cs:line 84
   at Microsoft.Playwright.Core.AssertionsBase.ExpectImplAsync(String expression, ExpectedTextValue[] expectedText, Object expected, String message, FrameExpectOptions options) in /_/src/Playwright/Core/AssertionsBase.cs:line 64
   at Aspire.Dashboard.Tests.Integration.Playwright.PlaywrightFixture.GoToHomeAndWaitForDataGridLoad(IPage page) in /_/tests/Aspire.Dashboard.Tests/Integration/Playwright/PlaywrightFixture.cs:line 28
   at Aspire.Dashboard.Tests.Integration.Playwright.AppBarTests.<AppBar_Change_Theme>b__1_0(IPage page) in /_/tests/Aspire.Dashboard.Tests/Integration/Playwright/AppBarTests.cs:line 25
   at Aspire.Dashboard.Tests.Integration.Playwright.PlaywrightTestsBase.RunTestAsync(Func`2 test) in /_/tests/Aspire.Dashboard.Tests/Integration/Playwright/PlaywrightTestsBase.cs:line 27
   at Aspire.Dashboard.Tests.Integration.Playwright.PlaywrightTestsBase.RunTestAsync(Func`2 test) in /_/tests/Aspire.Dashboard.Tests/Integration/Playwright/PlaywrightTestsBase.cs:line 31
   at Aspire.Dashboard.Tests.Integration.Playwright.AppBarTests.AppBar_Change_Theme() in /_/tests/Aspire.Dashboard.Tests/Integration/Playwright/AppBarTests.cs:line 23
--- End of stack trace from previous location ---

This failed earlier also - https://dev.azure.com/dnceng-public/public/_build/results?buildId=735297&view=results

Error Message

Fill the error message using step by step known issues guidance.

{
  "ErrorMessage": "waiting for GetByText(\"TestResource\")",
  "ErrorPattern": "",
  "BuildRetry": false,
  "ExcludeConsoleLog": false
}

Known issue validation

Build: 🔎 https://dev.azure.com/dnceng/internal/_build/results?buildId=2492446
Error message validated: [waiting for GetByText("TestResource")]
Result validation: ✅ Known issue matched with the provided build.
Validation performed at: 7/11/2024 1:42:31 AM UTC

Report

Build Definition Test Pull Request
771348 dotnet/aspire Aspire.Dashboard.Tests.Integration.Playwright.AppBarTests.AppBar_Change_Theme #5087
771310 dotnet/aspire Aspire.Dashboard.Tests.Integration.Playwright.AppBarTests.AppBar_Change_Theme #5168
771302 dotnet/aspire Aspire.Dashboard.Tests.Integration.Playwright.AppBarTests.AppBar_Change_Theme #5201
771281 dotnet/aspire Aspire.Dashboard.Tests.Integration.Playwright.AppBarTests.AppBar_Change_Theme #5240
770989 dotnet/aspire Aspire.Dashboard.Tests.Integration.Playwright.AppBarTests.AppBar_Change_Theme #5201
770585 dotnet/aspire Aspire.Dashboard.Tests.Integration.Playwright.AppBarTests.AppBar_Change_Theme #5236
2511721 dotnet-aspire Aspire.Dashboard.Tests.Integration.Playwright.AppBarTests.AppBar_Change_Theme
770078 dotnet/aspire Aspire.Dashboard.Tests.Integration.Playwright.AppBarTests.AppBar_Change_Theme #5018
2510728 dotnet-aspire Aspire.Dashboard.Tests.Integration.Playwright.AppBarTests.AppBar_Change_Theme
2507561 dotnet-aspire Aspire.Dashboard.Tests.Integration.Playwright.AppBarTests.AppBar_Change_Theme
2507219 dotnet-aspire Aspire.Dashboard.Tests.Integration.Playwright.AppBarTests.AppBar_Change_Theme
763318 dotnet/aspire Aspire.Dashboard.Tests.Integration.Playwright.AppBarTests.AppBar_Change_Theme #5123
2504407 dotnet-aspire Aspire.Dashboard.Tests.Integration.Playwright.AppBarTests.AppBar_Change_Theme
2504341 dotnet-aspire Aspire.Dashboard.Tests.Integration.Playwright.AppBarTests.AppBar_Change_Theme
2502563 dotnet-aspire Aspire.Dashboard.Tests.Integration.Playwright.AppBarTests.AppBar_Change_Theme
746566 dotnet/aspire Aspire.Dashboard.Tests.Integration.Playwright.AppBarTests.AppBar_Change_Theme #4925
2497429 dotnet-aspire Aspire.Dashboard.Tests.Integration.Playwright.AppBarTests.AppBar_Change_Theme

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
0 9 17
@radical
Copy link
Member Author

radical commented Jul 29, 2024

@adamint could you please disable this test till it is fixed?

@sebastienros
Copy link
Member

Multiple occurences today

  Failed Aspire.Dashboard.Tests.Integration.Playwright.AppBarTests.AppBar_Change_Theme [7 s]
  Error Message:
   Microsoft.Playwright.PlaywrightException : Locator expected to be visible 
Call log:
  - LocatorAssertions.ToBeVisibleAsync with timeout 5000ms
  - waiting for GetByText("TestResource")
  Stack Trace:
     at Microsoft.Playwright.Core.AssertionsBase.ExpectImplAsync(String expression, FrameExpectOptions expectOptions, Object expected, String message) in /_/src/Playwright/Core/AssertionsBase.cs:line 84
   at Microsoft.Playwright.Core.AssertionsBase.ExpectImplAsync(String expression, ExpectedTextValue[] expectedText, Object expected, String message, FrameExpectOptions options) in /_/src/Playwright/Core/AssertionsBase.cs:line 64
   at Aspire.Dashboard.Tests.Integration.Playwright.PlaywrightFixture.GoToHomeAndWaitForDataGridLoad(IPage page) in /_/tests/Aspire.Dashboard.Tests/Integration/Playwright/PlaywrightFixture.cs:line 28
   at Aspire.Dashboard.Tests.Integration.Playwright.AppBarTests.<AppBar_Change_Theme>b__1_0(IPage page) in /_/tests/Aspire.Dashboard.Tests/Integration/Playwright/AppBarTests.cs:line 25
   at Aspire.Dashboard.Tests.Integration.Playwright.PlaywrightTestsBase.RunTestAsync(Func`2 test) in /_/tests/Aspire.Dashboard.Tests/Integration/Playwright/PlaywrightTestsBase.cs:line 27
   at Aspire.Dashboard.Tests.Integration.Playwright.PlaywrightTestsBase.RunTestAsync(Func`2 test) in /_/tests/Aspire.Dashboard.Tests/Integration/Playwright/PlaywrightTestsBase.cs:line 31
   at Aspire.Dashboard.Tests.Integration.Playwright.AppBarTests.AppBar_Change_Theme() in /_/tests/Aspire.Dashboard.Tests/Integration/Playwright/AppBarTests.cs:line 23

I will disable it

@sebastienros
Copy link
Member

@radical there is [ActiveIssue("https://github.com/dotnet/aspire/issues/4623", typeof(PlaywrightProvider), nameof(PlaywrightProvider.DoesNotHavePlaywrightSupport))] on the class, should it still be running?

@radical
Copy link
Member Author

radical commented Aug 9, 2024

@radical there is [ActiveIssue("https://github.com/dotnet/aspire/issues/4623", typeof(PlaywrightProvider), nameof(PlaywrightProvider.DoesNotHavePlaywrightSupport))] on the class, should it still be running?

That one will only skip the tests on OSes where we don't have playwright support right now, which is Linux. But it looks like the test is still failing on Windows, so disabling it till it is fixed makes sense.

@radical radical added disabled-tests and removed blocking-clean-ci Blocking a green CI labels Aug 13, 2024
@JamesNK JamesNK assigned JamesNK and unassigned adamint Sep 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants