Skip to content

Commit

Permalink
disabled payout (#3441)
Browse files Browse the repository at this point in the history
* disabled payout

* skip test
  • Loading branch information
thelostone-mc authored May 15, 2024
1 parent 0af1139 commit 42c5b61
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -494,11 +494,12 @@ export function PayProjectsTable(props: {
<button
type="button"
data-testid="pay-out-funds-button"
className="block m-3 rounded-md bg-indigo-600 py-1.5 px-3 text-center text-sm font-semibold leading-6 text-white shadow-sm hover:bg-indigo-500 disabled:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600"
disabled={selectedProjects.length === 0}
className="block m-3 rounded-md bg-indigo-600 py-1.5 px-3 text-center text-sm font-semibold leading-6 text-white shadow-sm hover:bg-indigo-500 disabled:text-slate-500 disabled:bg-gray-100 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600"
// disabled={selectedProjects.length === 0}
disabled={true}
onClick={() => handlePayOutFunds()}
>
Payout funds
Payout funds (Disabled)
</button>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ describe("View Fund Grantees", () => {
expect(screen.getByText("Wallet Address")).toBeInTheDocument();
expect(screen.getByText("Matching %")).toBeInTheDocument();
expect(screen.getByText("Payout Amount")).toBeInTheDocument();
expect(screen.getByText("Payout funds")).toBeInTheDocument();
expect(screen.getByText("Payout funds (Disabled)")).toBeInTheDocument();
});

it("displays exact list of projects in table which are to be paid", async () => {
Expand All @@ -246,7 +246,7 @@ describe("View Fund Grantees", () => {
).toBeInTheDocument();
});

it("Should show the confirmation modal and close on cancel", async () => {
it.skip("Should show the confirmation modal and close on cancel", async () => {
(useBalance as jest.Mock).mockImplementation(() => ({
data: { formatted: "0", value: ethers.utils.parseEther("1000") },
error: null,
Expand All @@ -272,7 +272,7 @@ describe("View Fund Grantees", () => {
expect(screen.queryByText("Confirm Decision")).not.toBeInTheDocument();
});

it("Should show the progress modal", async () => {
it.skip("Should show the progress modal", async () => {
(useBalance as jest.Mock).mockImplementation(() => ({
data: { formatted: "0", value: ethers.utils.parseEther("1000") },
error: null,
Expand All @@ -296,7 +296,7 @@ describe("View Fund Grantees", () => {
});
});

it("Should show the warning when not enough funds in contract", async () => {
it.skip("Should show the warning when not enough funds in contract", async () => {
(useBalance as jest.Mock).mockImplementation(() => ({
data: { formatted: "0", value: "0" },
error: null,
Expand Down

0 comments on commit 42c5b61

Please sign in to comment.