Skip to content

Commit 90d4403

Browse files
authored
Merge pull request #3740 from IntersectMBO/fix/proposal-search-case
Fix: proposal search case and unfocus input
2 parents f27027f + 8bea9a1 commit 90d4403

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

tests/govtool-frontend/playwright/lib/forms/dRepForm.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,8 @@ export default class DRepForm {
166166
await this.identityReferenceFirstDescriptionInput.fill(
167167
dRepInfo.identityReferenceLinks[0].description
168168
);
169+
170+
await this.form.keyboard.press("Tab");
169171
}
170172

171173
async validateForm(dRepInfo: IDRepInfo) {

tests/govtool-frontend/playwright/tests/4-proposal-visibility/proposalVisibility.spec.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,7 @@ test("4H. Should verify none of the displayed governance actions have expired",
203203
async () => {
204204
const proposalCards = await govActionsPage.getAllProposals();
205205
for (const proposalCard of proposalCards) {
206+
await expect(proposalCard).toBeVisible();
206207
const expiryDateEl = proposalCard.getByTestId("expiry-date");
207208
const expiryDateTxt = await expiryDateEl.innerText();
208209
const expiryDate = extractExpiryDateFromText(expiryDateTxt);

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,9 @@ test("8C. Should search the list of proposed governance actions.", async ({
156156
const proposalTitle = await proposalCard
157157
.locator('[data-testid^="proposal-"][data-testid$="-title"]')
158158
.innerText();
159-
expect(proposalTitle.trim()).toContain(proposalName.trim());
159+
expect(proposalTitle.toLowerCase().trim()).toContain(
160+
proposalName.toLowerCase().trim()
161+
);
160162
}
161163
},
162164
{

0 commit comments

Comments
 (0)