-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enhance flexibility for local development
- Loading branch information
1 parent
aaced8b
commit 7bb0847
Showing
5 changed files
with
73 additions
and
52 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
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
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,22 @@ | ||
import environments from "@constants/environments"; | ||
import { faucetWallet } from "@constants/staticWallets"; | ||
import { setAllureEpic, setAllureStory } from "@helpers/allure"; | ||
import { pollTransaction } from "@helpers/transaction"; | ||
import { test as setup } from "@playwright/test"; | ||
import { loadAmountFromFaucet } from "@services/faucetService"; | ||
import kuberService from "@services/kuberService"; | ||
|
||
setup.describe.configure({ timeout: environments.txTimeOut }); | ||
|
||
setup.beforeEach(async () => { | ||
await setAllureEpic("Setup"); | ||
await setAllureStory("Faucet"); | ||
}); | ||
|
||
setup("Faucet setup", async () => { | ||
const balance = await kuberService.getBalance(faucetWallet.address); | ||
if (balance > 10000) return; | ||
|
||
const res = await loadAmountFromFaucet(faucetWallet.address); | ||
await pollTransaction(res.txid); | ||
}); |
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