Vibe Google Analytics
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
using Microsoft.Playwright;
|
||||
using Microsoft.Playwright.NUnit;
|
||||
using Microsoft.Playwright.NUnit;
|
||||
using Tests.PageObjects;
|
||||
|
||||
namespace Tests;
|
||||
@@ -8,10 +7,6 @@ namespace Tests;
|
||||
[TestFixture]
|
||||
public class FeatureTests : PageTest
|
||||
{
|
||||
private DecksPage _decksPage;
|
||||
private DeckDetailPage _deckDetailPage;
|
||||
private AgentsPage _agentsPage;
|
||||
|
||||
[SetUp]
|
||||
public void Setup()
|
||||
{
|
||||
@@ -20,17 +15,21 @@ public class FeatureTests : PageTest
|
||||
_agentsPage = new AgentsPage(Page);
|
||||
}
|
||||
|
||||
private DecksPage _decksPage;
|
||||
private DeckDetailPage _deckDetailPage;
|
||||
private AgentsPage _agentsPage;
|
||||
|
||||
[Test]
|
||||
public async Task DeckManaCurve_ShouldBeVisibleOnDetail()
|
||||
{
|
||||
await _decksPage.GotoAsync();
|
||||
|
||||
|
||||
// Assuming there is at least one deck. If not, this might need a more robust approach.
|
||||
var deckCards = _decksPage.GetDeckCards();
|
||||
await Expect(deckCards.First).ToBeVisibleAsync();
|
||||
|
||||
|
||||
await deckCards.First.ClickAsync();
|
||||
|
||||
|
||||
await Expect(_deckDetailPage.ManaCurve).ToBeVisibleAsync();
|
||||
var barCount = await _deckDetailPage.GetManaBarCountAsync();
|
||||
Assert.That(barCount, Is.GreaterThan(0));
|
||||
@@ -43,4 +42,4 @@ public class FeatureTests : PageTest
|
||||
await _agentsPage.WaitForGridAsync();
|
||||
await Expect(_agentsPage.Grid).ToBeVisibleAsync();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user