diff --git a/tests/govtool-frontend/playwright/lib/pages/proposalDiscussionPage.ts b/tests/govtool-frontend/playwright/lib/pages/proposalDiscussionPage.ts index 5c1b5dd5f..cd7096e58 100644 --- a/tests/govtool-frontend/playwright/lib/pages/proposalDiscussionPage.ts +++ b/tests/govtool-frontend/playwright/lib/pages/proposalDiscussionPage.ts @@ -2,9 +2,9 @@ import { faker } from "@faker-js/faker"; import { generateWalletAddress } from "@helpers/cardano"; import { extractProposalIdFromUrl } from "@helpers/string"; import { Page } from "@playwright/test"; -import { ProposalCreateRequest } from "@services/proposalDiscussion/types"; import environments from "lib/constants/environments"; import ProposalDiscussionDetailsPage from "./proposalDiscussionDetailsPage"; +import {ProposalCreateRequest} from "@types"; export default class ProposalDiscussionPage { // Buttons @@ -24,6 +24,9 @@ export default class ProposalDiscussionPage { readonly showLessBtn = this.page.getByRole("button", { name: "Show less" }); readonly infoRadio = this.page.getByLabel("Info"); readonly treasuryRadio = this.page.getByLabel("Treasury"); + readonly verifyIdentityBtn = this.page.getByRole("button", { + name: "Verify your identity", + }); constructor(private readonly page: Page) {} diff --git a/tests/govtool-frontend/playwright/lib/types.ts b/tests/govtool-frontend/playwright/lib/types.ts index ea587206c..be1429caf 100644 --- a/tests/govtool-frontend/playwright/lib/types.ts +++ b/tests/govtool-frontend/playwright/lib/types.ts @@ -122,3 +122,21 @@ export type CommentResponse = { subcommens_number: number; }; }; + + +export type ProposalLink = { + prop_link: string; + prop_link_text: string; +}; + +export type ProposalCreateRequest = { + proposal_links: Array; + gov_action_type_id: number; + prop_name: string; + prop_abstract: string; + prop_motivation: string; + prop_rationale: string; + prop_receiving_address?: string; + prop_amount?: string; + is_draft: boolean; +}; \ No newline at end of file