Skip to content

disabled payout #3441

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 15, 2024
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
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
Loading