-
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.
Merge pull request #1166 from IntersectMBO/enhancement/local-development
Enhance flexibility for local development
- Loading branch information
Showing
5 changed files
with
75 additions
and
56 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