Skip to content

Commit

Permalink
fix: Re-added USDC since it was removed during refactoring (#472) (#475)
Browse files Browse the repository at this point in the history
  • Loading branch information
espensimensen authored Nov 16, 2023
1 parent 6533cd4 commit 54af4be
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 19 deletions.
19 changes: 0 additions & 19 deletions playwright-tests/create.spec.js

This file was deleted.

24 changes: 24 additions & 0 deletions playwright-tests/tests/create.spec.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
import { test } from "@playwright/test";
import { setInputAndAssert, selectAndAssert } from "../testUtils";

test("should be able to submit a solution with USDC as currency", async ({
page,
}) => {
await page.goto("/devgovgigs.near/widget/app?page=create");

await page.click('button:has-text("Solution")');

await setInputAndAssert(
page,
'p:has-text("Title") + input',
"The test title"
);

await page.click('label:has-text("Yes") button');
await selectAndAssert(page, 'div:has-text("Currency") select', "USDT");
await setInputAndAssert(
page,
'div:has-text("Requested amount") input',
"300"
);
});
1 change: 1 addition & 0 deletions src/devhub/page/create.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -384,6 +384,7 @@ const fundraisingDiv = (
USDT
</option>
<option value="NEAR">NEAR</option>
<option value="USDC">USDC</option>
</select>
</div>
<div className="col-lg-6 mb-2">
Expand Down

0 comments on commit 54af4be

Please sign in to comment.