-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
1 parent
6533cd4
commit 54af4be
Showing
3 changed files
with
25 additions
and
19 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters