Skip to content

armgit / fider

Public Imported from GitHub
0

Open platform to collect and prioritize feedback

Fixed the UI test

Matt Robertsc3d1763a0004
diff --git a/e2e/step_definitions/show_post.steps.ts b/e2e/step_definitions/show_post.steps.ts
index 4bbea5c2e..9e01506ee 100644
--- a/e2e/step_definitions/show_post.steps.ts
+++ b/e2e/step_definitions/show_post.steps.ts
@@ -13,6 +13,6 @@ Then("I should see {string} as the post title", async function (this: FiderWorld
})
Then("I should see {int} vote\\(s)", async function (this: FiderWorld, voteCount: number) {
- // Look for the vote count number with the specific styling
- await expect(this.page.locator(".text-2xl").filter({ hasText: voteCount.toString() })).toBeVisible()
+ // Look for the vote count number within the post detail view
+ await expect(this.page.locator(".p-show-post .text-2xl").filter({ hasText: voteCount.toString() })).toBeVisible()
})