Adding vibe tests
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
using Microsoft.Playwright;
|
||||
|
||||
namespace Tests.PageObjects;
|
||||
|
||||
public class DecksPage : BasePage
|
||||
{
|
||||
public DecksPage(IPage page) : base(page) { }
|
||||
|
||||
public async Task GotoAsync() => await NavigateToAsync("/decks");
|
||||
|
||||
public ILocator GetDeckCards() => Page.Locator(".deck-card");
|
||||
|
||||
public async Task ClickDeckByNameAsync(string name)
|
||||
{
|
||||
await Page.Locator(".deck-card-title").GetByText(name, new() { Exact = true }).ClickAsync();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user