Skip to content

Commit c7ff077

Browse files
authored
[Playground] Component: Page component #246 (#249)
1 parent a7c25ca commit c7ff077

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
@page "/playground"
2+
3+
<PageTitle>Playground Page</PageTitle>
4+
5+
<h1>playground page!</h1>
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
using AzureOpenAIProxy.AppHost.Tests.Fixtures;
2+
3+
namespace AzureOpenAIProxy.AppHost.Tests.PlaygroundApp.Components.Pages;
4+
5+
public class PlaygroundPageTest(AspireAppHostFixture host) : IClassFixture<AspireAppHostFixture>
6+
{
7+
[Fact]
8+
public async Task Given_Resource_When_Invoked_Endpoint_Then_It_Should_Return_OK()
9+
{
10+
// Arrange
11+
var client = host.App!.CreateHttpClient("playgroundapp");
12+
13+
// Act
14+
var response = await client.GetAsync("/playground");
15+
16+
// Assert
17+
response.EnsureSuccessStatusCode(); // Status Code 200-299
18+
}
19+
}

0 commit comments

Comments
 (0)