From 937adda70aa93595315ab83e8754c0629cbd1593 Mon Sep 17 00:00:00 2001 From: Niraj Date: Thu, 5 Jun 2025 12:49:07 +0545 Subject: [PATCH 01/11] fix: use content attributes created at for newest and oldest sorting --- tests/govtool-frontend/playwright/lib/types.ts | 1 + .../tests/8-proposal-discussion/proposalDiscussion.spec.ts | 7 +++++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/tests/govtool-frontend/playwright/lib/types.ts b/tests/govtool-frontend/playwright/lib/types.ts index 2ffdac42c..8f223240d 100644 --- a/tests/govtool-frontend/playwright/lib/types.ts +++ b/tests/govtool-frontend/playwright/lib/types.ts @@ -210,6 +210,7 @@ export type ProposedGovAction = { attributes: { proposal_id: string; prop_name: string; + createdAt: string; }; }; creator: { diff --git a/tests/govtool-frontend/playwright/tests/8-proposal-discussion/proposalDiscussion.spec.ts b/tests/govtool-frontend/playwright/tests/8-proposal-discussion/proposalDiscussion.spec.ts index a895ecfa5..ef6bff75a 100644 --- a/tests/govtool-frontend/playwright/tests/8-proposal-discussion/proposalDiscussion.spec.ts +++ b/tests/govtool-frontend/playwright/tests/8-proposal-discussion/proposalDiscussion.spec.ts @@ -69,11 +69,14 @@ test.describe("Filter and sort proposals", () => { }); test("8B_2. Should sort the list of proposed governance actions.", async () => { + test.slow(); const sortOptions = { Oldest: (p1: ProposedGovAction, p2: ProposedGovAction) => - p1.attributes.createdAt <= p2.attributes.createdAt, + p1.attributes.content.attributes.createdAt <= + p2.attributes.content.attributes.createdAt, Newest: (p1: ProposedGovAction, p2: ProposedGovAction) => - p1.attributes.createdAt >= p2.attributes.createdAt, + p1.attributes.content.attributes.createdAt >= + p2.attributes.content.attributes.createdAt, "Most likes": (p1: ProposedGovAction, p2: ProposedGovAction) => p1.attributes.prop_likes >= p2.attributes.prop_likes, "Least likes": (p1: ProposedGovAction, p2: ProposedGovAction) => From 4b0a348542f2e60cf5a7eefd778ce07e8ca3a553 Mon Sep 17 00:00:00 2001 From: Niraj Date: Thu, 5 Jun 2025 12:51:40 +0545 Subject: [PATCH 02/11] fix: ignore space on name compare --- .../11-proposal-budget/proposalBudget.spec.ts | 39 +++++++++++++------ .../proposalDiscussion.spec.ts | 16 +++++--- 2 files changed, 37 insertions(+), 18 deletions(-) diff --git a/tests/govtool-frontend/playwright/tests/11-proposal-budget/proposalBudget.spec.ts b/tests/govtool-frontend/playwright/tests/11-proposal-budget/proposalBudget.spec.ts index 4cf3b5fb3..81954b640 100644 --- a/tests/govtool-frontend/playwright/tests/11-proposal-budget/proposalBudget.spec.ts +++ b/tests/govtool-frontend/playwright/tests/11-proposal-budget/proposalBudget.spec.ts @@ -108,6 +108,7 @@ test.describe("Budget proposal list manipulation", () => { }); test("11B_3. Should sort budget proposals", async () => { + test.slow(); const sortOptions = { Oldest: (p1: ProposedGovAction, p2: ProposedGovAction) => p1.attributes.createdAt <= p2.attributes.createdAt, @@ -120,21 +121,35 @@ test.describe("Budget proposal list manipulation", () => { p1.attributes.prop_comments_number <= p2.attributes.prop_comments_number, "Name A-Z": (p1: ProposedGovAction, p2: ProposedGovAction) => - p1.attributes.bd_proposal_detail.data.attributes.proposal_name.localeCompare( - p2.attributes.bd_proposal_detail.data.attributes.proposal_name - ) <= 0, + p1.attributes.bd_proposal_detail.data.attributes.proposal_name + .replace(/ /g, "") + .localeCompare( + p2.attributes.bd_proposal_detail.data.attributes.proposal_name.replace( + / /g, + "" + ) + ) <= 0, "Name Z-A": (p1: ProposedGovAction, p2: ProposedGovAction) => - p1.attributes.bd_proposal_detail.data.attributes.proposal_name.localeCompare( - p2.attributes.bd_proposal_detail.data.attributes.proposal_name - ) >= 0, + p1.attributes.bd_proposal_detail.data.attributes.proposal_name + .replace(/ /g, "") + .localeCompare( + p2.attributes.bd_proposal_detail.data.attributes.proposal_name.replace( + / /g, + "" + ) + ) >= 0, "Proposer A-Z": (p1: ProposedGovAction, p2: ProposedGovAction) => - p1.attributes.creator.data.attributes.govtool_username.localeCompare( - p2.attributes.creator.data.attributes.govtool_username - ) <= 0, + p1.attributes.creator.data.attributes.govtool_username + .replace(/ /g, "") + .localeCompare( + p2.attributes.creator.data.attributes.govtool_username + ) <= 0, "Proposer Z-A": (p1: ProposedGovAction, p2: ProposedGovAction) => - p1.attributes.creator.data.attributes.govtool_username.localeCompare( - p2.attributes.creator.data.attributes.govtool_username - ) >= 0, + p1.attributes.creator.data.attributes.govtool_username + .replace(/ /g, "") + .localeCompare( + p2.attributes.creator.data.attributes.govtool_username + ) >= 0, }; for (const [option, validationFn] of Object.entries(sortOptions)) { diff --git a/tests/govtool-frontend/playwright/tests/8-proposal-discussion/proposalDiscussion.spec.ts b/tests/govtool-frontend/playwright/tests/8-proposal-discussion/proposalDiscussion.spec.ts index ef6bff75a..37cd34c43 100644 --- a/tests/govtool-frontend/playwright/tests/8-proposal-discussion/proposalDiscussion.spec.ts +++ b/tests/govtool-frontend/playwright/tests/8-proposal-discussion/proposalDiscussion.spec.ts @@ -92,13 +92,17 @@ test.describe("Filter and sort proposals", () => { p1.attributes.prop_comments_number <= p2.attributes.prop_comments_number, "Name A-Z": (p1: ProposedGovAction, p2: ProposedGovAction) => - p1.attributes.content.attributes.prop_name.localeCompare( - p2.attributes.content.attributes.prop_name - ) <= 0, + p1.attributes.content.attributes.prop_name + .replace(/ /g, "") + .localeCompare( + p2.attributes.content.attributes.prop_name.replace(/ /g, "") + ) <= 0, "Name Z-A": (p1: ProposedGovAction, p2: ProposedGovAction) => - p1.attributes.content.attributes.prop_name.localeCompare( - p2.attributes.content.attributes.prop_name - ) >= 0, + p1.attributes.content.attributes.prop_name + .replace(/ /g, "") + .localeCompare( + p2.attributes.content.attributes.prop_name.replace(/ /g, "") + ) >= 0, }; for (const [sortOption, sortFunction] of Object.entries(sortOptions)) { From cc3e767a81d402b461f7cbc6dadda911146e954e Mon Sep 17 00:00:00 2001 From: Niraj Date: Thu, 5 Jun 2025 12:52:01 +0545 Subject: [PATCH 03/11] fix: show validation failing messages for proposal sorting --- .../playwright/lib/pages/budgetDiscussionPage.ts | 6 +++++- .../playwright/lib/pages/proposalDiscussionPage.ts | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/tests/govtool-frontend/playwright/lib/pages/budgetDiscussionPage.ts b/tests/govtool-frontend/playwright/lib/pages/budgetDiscussionPage.ts index 571d0688a..76b1187b0 100644 --- a/tests/govtool-frontend/playwright/lib/pages/budgetDiscussionPage.ts +++ b/tests/govtool-frontend/playwright/lib/pages/budgetDiscussionPage.ts @@ -174,7 +174,11 @@ export default class BudgetDiscussionPage { // API validation for (let i = 0; i <= proposals.length - 2; i++) { const isValid = validationFn(proposals[i], proposals[i + 1]); - expect(isValid).toBe(true); + expect(isValid, { + message: + !isValid && + `Failed on sorting ${type} with proposals: ${proposals[i].id} and ${proposals[i + 1].id}`, + }).toBe(true); } } diff --git a/tests/govtool-frontend/playwright/lib/pages/proposalDiscussionPage.ts b/tests/govtool-frontend/playwright/lib/pages/proposalDiscussionPage.ts index c2c301c39..231ee041a 100644 --- a/tests/govtool-frontend/playwright/lib/pages/proposalDiscussionPage.ts +++ b/tests/govtool-frontend/playwright/lib/pages/proposalDiscussionPage.ts @@ -183,7 +183,11 @@ export default class ProposalDiscussionPage { // API validation for (let i = 0; i <= proposals.length - 2; i++) { const isValid = validationFn(proposals[i], proposals[i + 1]); - expect(isValid).toBe(true); + expect(isValid, { + message: + !isValid && + `Failed on sorting ${type} with proposals: ${proposals[i].id} and ${proposals[i + 1].id}`, + }).toBe(true); } } From cefdd7fcb1690013ef6f17ebeecde02aceadff4a Mon Sep 17 00:00:00 2001 From: Niraj Date: Thu, 5 Jun 2025 12:52:09 +0545 Subject: [PATCH 04/11] fix: increase timeout for transaction confirmation checks --- tests/govtool-frontend/playwright/lib/helpers/transaction.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/govtool-frontend/playwright/lib/helpers/transaction.ts b/tests/govtool-frontend/playwright/lib/helpers/transaction.ts index 1cd3e914c..ce22f0278 100644 --- a/tests/govtool-frontend/playwright/lib/helpers/transaction.ts +++ b/tests/govtool-frontend/playwright/lib/helpers/transaction.ts @@ -77,7 +77,7 @@ export async function waitForTxConfirmation( .getByTestId("alert-warning") .getByText("Transaction in progress", { exact: false }) ).toBeVisible({ - timeout: 60_000, + timeout: 90_000, }); const url = (await transactionStatusPromise).url(); const regex = /\/transaction\/status\/([^\/]+)$/; @@ -90,7 +90,7 @@ export async function waitForTxConfirmation( await pollTransaction(transactionHash); await expect( page.getByText("In Progress", { exact: true }).first() //FIXME: Only one element needs to be displayed - ).not.toBeVisible({ timeout: 60_000 }); + ).not.toBeVisible({ timeout: 90_000 }); } } catch (error) { Logger.fail(error.message); From 8aa3e5e0ff2581cede1da48237e235926577dd1a Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 5 Jun 2025 10:10:12 +0000 Subject: [PATCH 05/11] chore: update @intersect.mbo/pdf-ui to 1.0.0-alfa --- govtool/frontend/package-lock.json | 8 ++++---- govtool/frontend/package.json | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/govtool/frontend/package-lock.json b/govtool/frontend/package-lock.json index 1adcee40a..2af7922b6 100644 --- a/govtool/frontend/package-lock.json +++ b/govtool/frontend/package-lock.json @@ -15,7 +15,7 @@ "@hookform/resolvers": "^3.3.1", "@intersect.mbo/govtool-outcomes-pillar-ui": "v1.4.3", "@intersect.mbo/intersectmbo.org-icons-set": "^1.0.8", - "@intersect.mbo/pdf-ui": "0.7.0-beta-36", + "@intersect.mbo/pdf-ui": "1.0.0-alfa", "@mui/icons-material": "^5.14.3", "@mui/material": "^5.14.4", "@rollup/plugin-babel": "^6.0.4", @@ -3424,9 +3424,9 @@ "license": "ISC" }, "node_modules/@intersect.mbo/pdf-ui": { - "version": "0.7.0-beta-36", - "resolved": "https://registry.npmjs.org/@intersect.mbo/pdf-ui/-/pdf-ui-0.7.0-beta-36.tgz", - "integrity": "sha512-CncItia1kW42+IIWeFh+Mftwd09tull2vADGFDUwjLQGHzMNWNxiKQ4krlSqGSCJT9436XL6k6+OtdiMe06SpQ==", + "version": "1.0.0-alfa", + "resolved": "https://registry.npmjs.org/@intersect.mbo/pdf-ui/-/pdf-ui-1.0.0-alfa.tgz", + "integrity": "sha512-mg6VHI3zRu3cXM2kz6Y3+cgBIeY3xryEIc8DY+OHa71wPvcI5/EjRyVXNH7qx3YSEpF0rCgA6K/G4p7DresW0g==", "dependencies": { "@emurgo/cardano-serialization-lib-asmjs": "^12.0.0-beta.2", "@fontsource/poppins": "^5.0.14", diff --git a/govtool/frontend/package.json b/govtool/frontend/package.json index bb32c2bc8..9e0c02347 100644 --- a/govtool/frontend/package.json +++ b/govtool/frontend/package.json @@ -29,7 +29,7 @@ "@hookform/resolvers": "^3.3.1", "@intersect.mbo/govtool-outcomes-pillar-ui": "v1.4.3", "@intersect.mbo/intersectmbo.org-icons-set": "^1.0.8", - "@intersect.mbo/pdf-ui": "0.7.0-beta-36", + "@intersect.mbo/pdf-ui": "1.0.0-alfa", "@mui/icons-material": "^5.14.3", "@mui/material": "^5.14.4", "@rollup/plugin-babel": "^6.0.4", From 44f29dc449ad29b0cdb9e98c39744af4deec29aa Mon Sep 17 00:00:00 2001 From: Ciabas Date: Thu, 5 Jun 2025 16:10:39 +0200 Subject: [PATCH 06/11] fix(#3733): blank page when dRep have @value in uri or label references --- CHANGELOG.md | 1 + govtool/backend/sql/list-dreps.sql | 66 ++++++++++++++++++++---------- 2 files changed, 46 insertions(+), 21 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6c28d95c9..1f2cc1cec 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -16,6 +16,7 @@ changes. ### Fixed +- Fix blank page on dRep details when link or identity references contain objects: { @value: ... } not strings [Issue 3733](https://github.com/IntersectMBO/govtool/issues/3733) - Fix missing off chain references in DRep details [Issue 3490](https://github.com/IntersectMBO/govtool/issues/3490) - Fix blank screen and type error on linkReferences when navigating to edit dRep page that has no links [Issue 3714](https://github.com/IntersectMBO/govtool/issues/3714) - Fix adding two link input fields when editing the dRep form when no links are present initially [Issue 3709](https://github.com/IntersectMBO/govtool/issues/3709) diff --git a/govtool/backend/sql/list-dreps.sql b/govtool/backend/sql/list-dreps.sql index 3062c9f48..cb27c527c 100644 --- a/govtool/backend/sql/list-dreps.sql +++ b/govtool/backend/sql/list-dreps.sql @@ -95,7 +95,7 @@ HasNonDeregisterVotingAnchor AS ( EXISTS ( SELECT 1 FROM drep_registration dr_sub - WHERE + WHERE dr_sub.drep_hash_id = dr.drep_hash_id AND dr_sub.voting_anchor_id IS NULL AND COALESCE(dr_sub.deposit, 0) >= 0 @@ -129,12 +129,24 @@ DRepData AS ( off_chain_vote_drep_data.image_hash, COALESCE( ( - SELECT jsonb_agg(ref) + SELECT jsonb_agg( + jsonb_build_object( + 'uri', COALESCE( + CASE WHEN jsonb_typeof(ref->'uri') = 'string' THEN ref->>'uri' END, + ref->'uri'->>'@value' + ), + '@type', ref->>'@type', + 'label', COALESCE( + CASE WHEN jsonb_typeof(ref->'label') = 'string' THEN ref->>'label' END, + ref->'label'->>'@value' + ) + ) + ) FROM jsonb_array_elements( - CASE - WHEN (ocvd.json::jsonb)->'body'->'references' IS NOT NULL - THEN (ocvd.json::jsonb)->'body'->'references' - ELSE '[]'::jsonb + CASE + WHEN (ocvd.json::jsonb)->'body'->'references' IS NOT NULL + THEN (ocvd.json::jsonb)->'body'->'references' + ELSE '[]'::jsonb END ) AS ref WHERE ref->>'@type' = 'Identity' @@ -143,12 +155,24 @@ DRepData AS ( ) AS identity_references, COALESCE( ( - SELECT jsonb_agg(ref) + SELECT jsonb_agg( + jsonb_build_object( + 'uri', COALESCE( + CASE WHEN jsonb_typeof(ref->'uri') = 'string' THEN ref->>'uri' END, + ref->'uri'->>'@value' + ), + '@type', ref->>'@type', + 'label', COALESCE( + CASE WHEN jsonb_typeof(ref->'label') = 'string' THEN ref->>'label' END, + ref->'label'->>'@value' + ) + ) + ) FROM jsonb_array_elements( - CASE - WHEN (ocvd.json::jsonb)->'body'->'references' IS NOT NULL - THEN (ocvd.json::jsonb)->'body'->'references' - ELSE '[]'::jsonb + CASE + WHEN (ocvd.json::jsonb)->'body'->'references' IS NOT NULL + THEN (ocvd.json::jsonb)->'body'->'references' + ELSE '[]'::jsonb END ) AS ref WHERE ref->>'@type' = 'Link' @@ -185,7 +209,7 @@ DRepData AS ( LEFT JOIN FetchError fetch_error ON fetch_error.voting_anchor_id = leva.voting_anchor_id LEFT JOIN HasNonDeregisterVotingAnchor hndva ON hndva.drep_hash_id = dh.id LEFT JOIN off_chain_vote_data ocvd ON ocvd.voting_anchor_id = leva.voting_anchor_id - LEFT JOIN off_chain_vote_drep_data ON off_chain_vote_drep_data.off_chain_vote_data_id = ocvd.id + LEFT JOIN off_chain_vote_drep_data ON off_chain_vote_drep_data.off_chain_vote_data_id = ocvd.id LEFT JOIN voting_procedure ON voting_procedure.drep_voter = dh.id LEFT JOIN tx voting_procedure_transaction ON voting_procedure_transaction.id = voting_procedure.tx_id LEFT JOIN block voting_procedure_block ON voting_procedure_block.id = voting_procedure_transaction.block_id @@ -244,10 +268,10 @@ DRepData AS ( ( SELECT jsonb_agg(ref) FROM jsonb_array_elements( - CASE - WHEN (ocvd.json::jsonb)->'body'->'references' IS NOT NULL - THEN (ocvd.json::jsonb)->'body'->'references' - ELSE '[]'::jsonb + CASE + WHEN (ocvd.json::jsonb)->'body'->'references' IS NOT NULL + THEN (ocvd.json::jsonb)->'body'->'references' + ELSE '[]'::jsonb END ) AS ref WHERE ref->>'@type' = 'Identity' @@ -255,10 +279,10 @@ DRepData AS ( ( SELECT jsonb_agg(ref) FROM jsonb_array_elements( - CASE - WHEN (ocvd.json::jsonb)->'body'->'references' IS NOT NULL - THEN (ocvd.json::jsonb)->'body'->'references' - ELSE '[]'::jsonb + CASE + WHEN (ocvd.json::jsonb)->'body'->'references' IS NOT NULL + THEN (ocvd.json::jsonb)->'body'->'references' + ELSE '[]'::jsonb END ) AS ref WHERE ref->>'@type' = 'Link' @@ -275,4 +299,4 @@ WHERE objectives ILIKE ? OR motivations ILIKE ? OR qualifications ILIKE ? - ) \ No newline at end of file + ) From ab68af63992b3e7ed135d714dc2c070a90797b6a Mon Sep 17 00:00:00 2001 From: Ciabas Date: Fri, 6 Jun 2025 14:16:02 +0200 Subject: [PATCH 07/11] fix(#3733): missing group_by updates in list-dreps.sql --- govtool/backend/sql/list-dreps.sql | 28 ++++++++++++++++++++++++++-- 1 file changed, 26 insertions(+), 2 deletions(-) diff --git a/govtool/backend/sql/list-dreps.sql b/govtool/backend/sql/list-dreps.sql index cb27c527c..1ae00d6fa 100644 --- a/govtool/backend/sql/list-dreps.sql +++ b/govtool/backend/sql/list-dreps.sql @@ -266,7 +266,19 @@ DRepData AS ( off_chain_vote_drep_data.image_url, off_chain_vote_drep_data.image_hash, ( - SELECT jsonb_agg(ref) + SELECT jsonb_agg( + jsonb_build_object( + 'uri', COALESCE( + CASE WHEN jsonb_typeof(ref->'uri') = 'string' THEN ref->>'uri' END, + ref->'uri'->>'@value' + ), + '@type', ref->>'@type', + 'label', COALESCE( + CASE WHEN jsonb_typeof(ref->'label') = 'string' THEN ref->>'label' END, + ref->'label'->>'@value' + ) + ) + ) FROM jsonb_array_elements( CASE WHEN (ocvd.json::jsonb)->'body'->'references' IS NOT NULL @@ -277,7 +289,19 @@ DRepData AS ( WHERE ref->>'@type' = 'Identity' ), ( - SELECT jsonb_agg(ref) + SELECT jsonb_agg( + jsonb_build_object( + 'uri', COALESCE( + CASE WHEN jsonb_typeof(ref->'uri') = 'string' THEN ref->>'uri' END, + ref->'uri'->>'@value' + ), + '@type', ref->>'@type', + 'label', COALESCE( + CASE WHEN jsonb_typeof(ref->'label') = 'string' THEN ref->>'label' END, + ref->'label'->>'@value' + ) + ) + ) FROM jsonb_array_elements( CASE WHEN (ocvd.json::jsonb)->'body'->'references' IS NOT NULL From e988d13fa72419b7011fd7429980d1cd82dc15cc Mon Sep 17 00:00:00 2001 From: Niraj Date: Mon, 9 Jun 2025 15:39:03 +0545 Subject: [PATCH 08/11] fix: make proposal title search case-insensitive --- .../tests/8-proposal-discussion/proposalDiscussion.spec.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/govtool-frontend/playwright/tests/8-proposal-discussion/proposalDiscussion.spec.ts b/tests/govtool-frontend/playwright/tests/8-proposal-discussion/proposalDiscussion.spec.ts index 37cd34c43..fbd725fec 100644 --- a/tests/govtool-frontend/playwright/tests/8-proposal-discussion/proposalDiscussion.spec.ts +++ b/tests/govtool-frontend/playwright/tests/8-proposal-discussion/proposalDiscussion.spec.ts @@ -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() + ); } }, { From 6828985ad05ed672e78782f8782e31e64f9edd6c Mon Sep 17 00:00:00 2001 From: Niraj Date: Mon, 9 Jun 2025 16:17:19 +0545 Subject: [PATCH 09/11] fix: ensure proposal cards are visible in governance actions test --- .../tests/4-proposal-visibility/proposalVisibility.spec.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/govtool-frontend/playwright/tests/4-proposal-visibility/proposalVisibility.spec.ts b/tests/govtool-frontend/playwright/tests/4-proposal-visibility/proposalVisibility.spec.ts index 0b3395cbb..c382fe6bf 100644 --- a/tests/govtool-frontend/playwright/tests/4-proposal-visibility/proposalVisibility.spec.ts +++ b/tests/govtool-frontend/playwright/tests/4-proposal-visibility/proposalVisibility.spec.ts @@ -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); From 8bea9a1aff39fed6f861f131a7b54977f9d17bed Mon Sep 17 00:00:00 2001 From: Niraj Date: Mon, 9 Jun 2025 16:24:29 +0545 Subject: [PATCH 10/11] fix: add keyboard tab for focus after input --- tests/govtool-frontend/playwright/lib/forms/dRepForm.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/govtool-frontend/playwright/lib/forms/dRepForm.ts b/tests/govtool-frontend/playwright/lib/forms/dRepForm.ts index b036726d8..91358f9f9 100644 --- a/tests/govtool-frontend/playwright/lib/forms/dRepForm.ts +++ b/tests/govtool-frontend/playwright/lib/forms/dRepForm.ts @@ -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) { From b1abd4a647428f0e8c542108b7442762bfd32220 Mon Sep 17 00:00:00 2001 From: Ciabas Date: Mon, 9 Jun 2025 17:05:21 +0200 Subject: [PATCH 11/11] Revert "chore: update @intersect.mbo/pdf-ui to 1.0.0-alfa" This reverts commit 8aa3e5e0ff2581cede1da48237e235926577dd1a. --- govtool/frontend/package-lock.json | 8 ++++---- govtool/frontend/package.json | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/govtool/frontend/package-lock.json b/govtool/frontend/package-lock.json index 2af7922b6..1adcee40a 100644 --- a/govtool/frontend/package-lock.json +++ b/govtool/frontend/package-lock.json @@ -15,7 +15,7 @@ "@hookform/resolvers": "^3.3.1", "@intersect.mbo/govtool-outcomes-pillar-ui": "v1.4.3", "@intersect.mbo/intersectmbo.org-icons-set": "^1.0.8", - "@intersect.mbo/pdf-ui": "1.0.0-alfa", + "@intersect.mbo/pdf-ui": "0.7.0-beta-36", "@mui/icons-material": "^5.14.3", "@mui/material": "^5.14.4", "@rollup/plugin-babel": "^6.0.4", @@ -3424,9 +3424,9 @@ "license": "ISC" }, "node_modules/@intersect.mbo/pdf-ui": { - "version": "1.0.0-alfa", - "resolved": "https://registry.npmjs.org/@intersect.mbo/pdf-ui/-/pdf-ui-1.0.0-alfa.tgz", - "integrity": "sha512-mg6VHI3zRu3cXM2kz6Y3+cgBIeY3xryEIc8DY+OHa71wPvcI5/EjRyVXNH7qx3YSEpF0rCgA6K/G4p7DresW0g==", + "version": "0.7.0-beta-36", + "resolved": "https://registry.npmjs.org/@intersect.mbo/pdf-ui/-/pdf-ui-0.7.0-beta-36.tgz", + "integrity": "sha512-CncItia1kW42+IIWeFh+Mftwd09tull2vADGFDUwjLQGHzMNWNxiKQ4krlSqGSCJT9436XL6k6+OtdiMe06SpQ==", "dependencies": { "@emurgo/cardano-serialization-lib-asmjs": "^12.0.0-beta.2", "@fontsource/poppins": "^5.0.14", diff --git a/govtool/frontend/package.json b/govtool/frontend/package.json index 9e0c02347..bb32c2bc8 100644 --- a/govtool/frontend/package.json +++ b/govtool/frontend/package.json @@ -29,7 +29,7 @@ "@hookform/resolvers": "^3.3.1", "@intersect.mbo/govtool-outcomes-pillar-ui": "v1.4.3", "@intersect.mbo/intersectmbo.org-icons-set": "^1.0.8", - "@intersect.mbo/pdf-ui": "1.0.0-alfa", + "@intersect.mbo/pdf-ui": "0.7.0-beta-36", "@mui/icons-material": "^5.14.3", "@mui/material": "^5.14.4", "@rollup/plugin-babel": "^6.0.4",