Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions tests/govtool-frontend/playwright/lib/forms/dRepForm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,8 @@ export default class DRepForm {
await this.identityReferenceFirstDescriptionInput.fill(
dRepInfo.identityReferenceLinks[0].description
);

await this.form.keyboard.press("Tab");
}

async validateForm(dRepInfo: IDRepInfo) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,7 @@ test("4H. Should verify none of the displayed governance actions have expired",
async () => {
const proposalCards = await govActionsPage.getAllProposals();
for (const proposalCard of proposalCards) {
await expect(proposalCard).toBeVisible();
const expiryDateEl = proposalCard.getByTestId("expiry-date");
const expiryDateTxt = await expiryDateEl.innerText();
const expiryDate = extractExpiryDateFromText(expiryDateTxt);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,9 @@ test("8C. Should search the list of proposed governance actions.", async ({
const proposalTitle = await proposalCard
.locator('[data-testid^="proposal-"][data-testid$="-title"]')
.innerText();
expect(proposalTitle.trim()).toContain(proposalName.trim());
expect(proposalTitle.toLowerCase().trim()).toContain(
proposalName.toLowerCase().trim()
);
}
},
{
Expand Down