Skip to content

Commit d011b9a

Browse files
committed
fix: trim whitespace in proposal title search assertion
1 parent 891e918 commit d011b9a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/govtool-frontend/playwright/tests/8-proposal-discussion/proposalDiscussion.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ test("8C. Should search the list of proposed governance actions.", async ({
119119
const proposalTitle = await proposalCard
120120
.locator('[data-testid^="proposal-"][data-testid$="-title"]')
121121
.innerText();
122-
expect(proposalTitle).toContain(proposalName);
122+
expect(proposalTitle.trim()).toContain(proposalName.trim());
123123
}
124124
},
125125
{

0 commit comments

Comments
 (0)