More tests and WIP vibe work
This commit is contained in:
@@ -13,9 +13,18 @@ public class DecksPage : BasePage
|
||||
await NavigateToAsync("/decks");
|
||||
}
|
||||
|
||||
public ILocator GetDeckCards()
|
||||
public ILocator DeckCards => Page.Locator(".deck-card");
|
||||
public ILocator CreateDeckButton => Page.Locator(".btn-create-deck");
|
||||
|
||||
public async Task WaitForInteractiveAsync()
|
||||
{
|
||||
return Page.Locator(".deck-card");
|
||||
await Page.WaitForLoadStateAsync(LoadState.DOMContentLoaded);
|
||||
await Page.WaitForSelectorAsync(".deck-card", new PageWaitForSelectorOptions { Timeout = 15_000 });
|
||||
}
|
||||
|
||||
public async Task ClickCreateDeckAsync()
|
||||
{
|
||||
await CreateDeckButton.ClickAsync();
|
||||
}
|
||||
|
||||
public async Task ClickDeckByNameAsync(string name)
|
||||
|
||||
Reference in New Issue
Block a user