diff --git a/tests/Elastic.OpenTelemetry.EndToEndTests/DistributedFixture/ApmUIBrowserContext.cs b/tests/Elastic.OpenTelemetry.EndToEndTests/DistributedFixture/ApmUIBrowserContext.cs index a66bb01..0158088 100644 --- a/tests/Elastic.OpenTelemetry.EndToEndTests/DistributedFixture/ApmUIBrowserContext.cs +++ b/tests/Elastic.OpenTelemetry.EndToEndTests/DistributedFixture/ApmUIBrowserContext.cs @@ -94,6 +94,13 @@ public async Task WaitForServiceOnOverview(IPage page) var servicesHeader = page.GetByRole(AriaRole.Heading, new() { Name = "Services" }); await servicesHeader.WaitForAsync(new() { State = WaitForSelectorState.Visible, Timeout = timeout }); + //service.name : dotnet-e2e-* + var queryBar = page.GetByRole(AriaRole.Textbox, new() { Name = "Start typing to search and filter the APM page" }); + await queryBar.WaitForAsync(new() { State = WaitForSelectorState.Visible, Timeout = timeout }); + + await queryBar.FillAsync(_serviceName); + await queryBar.PressAsync("Enter"); + Exception? observed = null; var refreshTimeout = (float)TimeSpan.FromSeconds(5).TotalMilliseconds; diff --git a/tests/Elastic.OpenTelemetry.EndToEndTests/DistributedFixture/DotNetRunApplication.cs b/tests/Elastic.OpenTelemetry.EndToEndTests/DistributedFixture/DotNetRunApplication.cs index 5f77b92..59a6f28 100644 --- a/tests/Elastic.OpenTelemetry.EndToEndTests/DistributedFixture/DotNetRunApplication.cs +++ b/tests/Elastic.OpenTelemetry.EndToEndTests/DistributedFixture/DotNetRunApplication.cs @@ -83,7 +83,7 @@ private LongRunningArguments CreateStartArgs() if (processIdMatch.Success) ProcessId = int.Parse(processIdMatch.Groups["processid"].Value); - return l.Line.StartsWith(" Application started."); + return l.Line.Contains("Application started."); } }; }