forked from ipfs/js-ipfs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* test: adds automated tests to browser examples * chore: upgrade chrome * chore: throw on unhandled rejection * fix: fail if FAILED is in output * chore: exit with same exit code as nightwatch * chore: fix element id * test: add assertion * chore: add video streaming test * chore: change dist url * chore: build IPFS for basic browser demos * test: add some node tests * test: adds some more tests. ethereum one is a little wobbly * chore: accept bundle as build script * test: add final few tests * test: control assertion timeouts with global * test: wait for other peer to join workspace before sending file * chore: tidy up deps
- Loading branch information
1 parent
f6ea050
commit ecbed9d
Showing
4 changed files
with
20 additions
and
4 deletions.
There are no files selected for viewing
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
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,16 @@ | ||
'use strict' | ||
|
||
const pkg = require('./package.json') | ||
|
||
module.exports = { | ||
[pkg.name]: function (browser) { | ||
browser | ||
.url(process.env.IPFS_EXAMPLE_TEST_URL) | ||
.waitForElementVisible('[data-test=title]') | ||
.assert.containsText('[data-test=title]', 'Connected to IPFS') | ||
.assert.elementPresent('[data-test=id') | ||
.assert.elementPresent('[data-test=agentVersion') | ||
.end() | ||
} | ||
} | ||
|