Skip to content

Commit c3d1763

Browse files
committed
Fixed the UI test
1 parent 402bd6d commit c3d1763

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

e2e/step_definitions/show_post.steps.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@ Then("I should see {string} as the post title", async function (this: FiderWorld
1313
})
1414

1515
Then("I should see {int} vote\\(s)", async function (this: FiderWorld, voteCount: number) {
16-
// Look for the vote count number with the specific styling
17-
await expect(this.page.locator(".text-2xl").filter({ hasText: voteCount.toString() })).toBeVisible()
16+
// Look for the vote count number within the post detail view
17+
await expect(this.page.locator(".p-show-post .text-2xl").filter({ hasText: voteCount.toString() })).toBeVisible()
1818
})

0 commit comments

Comments
 (0)