Skip to content

armgit / fider

Public Imported from GitHub
0

Open platform to collect and prioritize feedback

Failing test sorted

Matt Roberts301c59480135
diff --git a/e2e/step_definitions/show_post.steps.ts b/e2e/step_definitions/show_post.steps.ts
index 73b28f35a..4bbea5c2e 100644
--- a/e2e/step_definitions/show_post.steps.ts
+++ b/e2e/step_definitions/show_post.steps.ts
@@ -3,12 +3,12 @@ import { FiderWorld } from "../world"
import { expect } from "@playwright/test"
Then("I should be on the show post page", async function (this: FiderWorld) {
- const container = await this.page.$$("#p-show-post")
+ const container = await this.page.$$(".p-show-post")
expect(container).toBeDefined()
})
Then("I should see {string} as the post title", async function (this: FiderWorld, title: string) {
- const postTitle = await this.page.innerText("#p-show-post h1")
+ const postTitle = await this.page.innerText(".p-show-post__title")
expect(postTitle).toBe(title)
})