tests: setup initial infra for end to end tests

This commit is contained in:
Stevan Freeborn
2024-04-03 16:21:38 -05:00
parent c7c24965b3
commit 1f5d45f003
10 changed files with 98 additions and 3 deletions
+13
View File
@@ -0,0 +1,13 @@
namespace Blog.Tests.EndToEnd;
[TestFixture]
public class IndexTests : BlogPageTest
{
[Test]
public async Task Index_WhenNavigatedTo_ItShouldDisplayMessage()
{
await Page.GotoAsync("/");
var message = Page.GetByRole(AriaRole.Heading, new () { Name = "Hello, world!" });
await Expect(message).ToBeVisibleAsync();
}
}