Skip to content

Commit

Permalink
Update EndToEndTests.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
stoftot committed Dec 18, 2024
1 parent 3ba7525 commit 509d6fc
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions Chirp/test/PlaywrightTests/EndToEndTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,7 @@ public class EndToEndTests : PageTestWithRazorPlaywrightWebApplicationFactory
{
private async Task Register(Author author, string password)
{
await Page.GetByRole(AriaRole.Link, new() { Name = "register" }).ClickAsync();
await Page.GetByPlaceholder("name", new() { Exact = true }).ClickAsync();
await Page.GetByPlaceholder("name", new() { Exact = true }).FillAsync(author.UserName!);
await Page.GetByPlaceholder("name@example.com").ClickAsync();
await Page.GetByPlaceholder("name@example.com").FillAsync(author.Email!);
await Page.GetByLabel("Password", new() { Exact = true }).ClickAsync();
await Page.GetByLabel("Password", new() { Exact = true }).FillAsync(password);
await Page.GetByLabel("Confirm Password").ClickAsync();
await Page.GetByLabel("Confirm Password").FillAsync(password);
await Page.GetByRole(AriaRole.Button, new() { Name = "Register" }).ClickAsync();
await Page.GetByRole(AriaRole.Link, new() { Name = "Click here to confirm your account" }).ClickAsync();
await RazorPageUtils.Register(author.UserName!, author.Email!, password);
}

[Test]
Expand Down

0 comments on commit 509d6fc

Please sign in to comment.