This commit is contained in:
Max Schmitt 2024-06-11 10:08:13 +02:00
parent 31f54d52b4
commit 865add57de
3 changed files with 4 additions and 3 deletions

View file

@ -53,11 +53,12 @@ using Microsoft.Playwright.MSTest;
namespace PlaywrightTests;
[TestClass]
public class ExampleTest : PageTest
public class ExampleTests : PageTest
{
[TestMethod]
public async Task StatusBecomesSubmitted()
{
// ...
await Page.GetByRole(AriaRole.Button, new() { Name = "Sign In" }).ClickAsync();
await Expect(Page.Locator(".status")).ToHaveTextAsync("Submitted");
}

View file

@ -56,7 +56,7 @@ using Microsoft.Playwright.MSTest;
namespace PlaywrightTests;
[TestClass]
public class ExampleTest : PageTest
public class ExampleTests : PageTest
{
[TestMethod]
public async Task NavigatetoLoginPage()

View file

@ -56,7 +56,7 @@ using Microsoft.Playwright.MSTest;
namespace PlaywrightTests;
[TestClass]
public class ExampleTest : PageTest
public class ExampleTests : PageTest
{
[TestMethod]
public async Task StatusBecomesSubmitted()