ipdatepppdate
This commit is contained in:
@@ -397,10 +397,16 @@ def test_feed_vote_voted_state_persists(alice):
|
||||
page.locator("#create-post-modal button.btn-primary:has-text('Post')").click()
|
||||
page.wait_for_url(f"{BASE_URL}/posts/*", wait_until="domcontentloaded")
|
||||
page.goto(f"{BASE_URL}/feed", wait_until="domcontentloaded")
|
||||
page.locator(".post-action-btn.vote-up").first.click()
|
||||
expect(page.locator(".post-vote-count").first).to_have_text("1")
|
||||
card = page.locator(
|
||||
".post-card", has_text="Feed vote persistence test content"
|
||||
).first
|
||||
card.locator(".post-action-btn.vote-up").click()
|
||||
expect(card.locator(".post-vote-count")).to_have_text("1")
|
||||
page.goto(f"{BASE_URL}/feed", wait_until="domcontentloaded")
|
||||
expect(page.locator(".post-action-btn.vote-up").first).to_have_class(
|
||||
card = page.locator(
|
||||
".post-card", has_text="Feed vote persistence test content"
|
||||
).first
|
||||
expect(card.locator(".post-action-btn.vote-up")).to_have_class(
|
||||
re.compile(r"\bvoted\b")
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user