mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-12-06 17:27:59 +00:00
refactor: waits on closing test to end tests (#1748)
* refactor: waits on closing test to end tests
This commit is contained in:
@@ -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 },
|
||||
)
|
||||
|
||||
|
||||
13
test/integration/finalTest.ts
Normal file
13
test/integration/finalTest.ts
Normal 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)
|
||||
})
|
||||
})
|
||||
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user