Skip to content

Commit

Permalink
Fix E2E tests on CI (#100)
Browse files Browse the repository at this point in the history
* Fix E2E tests on CI

* Filter for service name prior to locating
  • Loading branch information
Mpdreamz authored May 22, 2024
1 parent 419854e commit a50af77
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.");
}
};
}
Expand Down

0 comments on commit a50af77

Please sign in to comment.