refactor: waits on closing test to end tests (#1748)

* refactor: waits on closing test to end tests
This commit is contained in:
Mukul Jangid
2021-10-19 16:18:07 -04:00
committed by GitHub
parent bd154fd6e8
commit 8feafb216d
3 changed files with 17 additions and 1 deletions

View File

@@ -41,7 +41,7 @@ describe('Browser Tests', function () {
)
await page.waitForFunction(
'document.querySelector("body").innerText.includes("submit multisigned transaction")',
'document.querySelector("body").innerText.includes("closing test")',
{ timeout: TIMEOUT },
)

View File

@@ -0,0 +1,13 @@
import assert from 'assert'
// how long before each test case times out
const TIMEOUT = 20000
// the purpose of this file is to indicate the end of tests and not really test anything.
describe('test', function () {
this.timeout(TIMEOUT)
it('closing test', function () {
assert(true)
})
})

View File

@@ -41,3 +41,6 @@ export * from './requests/utility'
export * from './fundWallet'
export * from './integration'
export * from './regularKey'
// Ensure you export all added tests above "export * from './finalTest'", otherwise they will not be run.
export * from './finalTest'