This repository has been archived by the owner on Feb 12, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
c386b5c
commit 50f3667
Showing
48 changed files
with
1,700 additions
and
48 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,7 @@ logs | |
*.log | ||
# npm pack | ||
*.tgz | ||
**/tests_output | ||
|
||
coverage | ||
|
||
|
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 |
---|---|---|
@@ -1,7 +1,11 @@ | ||
<!doctype html> | ||
<html> | ||
<head> | ||
<title>Add readable stream</title> | ||
</head> | ||
<body> | ||
<pre id="output"></pre> | ||
<script src="https://unpkg.com/ipfs/dist/index.js"></script> | ||
<script src="../../dist/index.js"></script> | ||
<script src="index.js"></script> | ||
</body> | ||
</html> |
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,13 @@ | ||
'use strict' | ||
|
||
module.exports = { | ||
'Add readable stream example': function (browser) { | ||
browser | ||
.url(process.env.IPFS_EXAMPLE_TEST_URL) | ||
.waitForElementVisible('#output') | ||
|
||
browser.expect.element('#output').text.to.contain('directory/ QmVgJePRxp1vhRxDcJWdmuFGfUB5S5RYTtG1NR3bQM4BBn') | ||
|
||
browser.end() | ||
} | ||
} |
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,21 @@ | ||
'use strict' | ||
|
||
const pkg = require('./package.json') | ||
|
||
module.exports = { | ||
[pkg.name]: function (browser) { | ||
browser | ||
.url(process.env.IPFS_EXAMPLE_TEST_URL) | ||
.waitForElementVisible('#source') | ||
.setValue('#source', 'hello') | ||
.waitForElementVisible('#store') | ||
.pause(1000) | ||
.click('#store') | ||
.waitForElementVisible('#output') | ||
|
||
browser.expect.element('#hash').text.to.contain('QmWfVY9y3xjsixTgbd9AorQxH7VtMpzfx2HaWtsoUYecaX') | ||
browser.expect.element('#content').text.to.contain('hello') | ||
|
||
browser.end() | ||
} | ||
} |
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
Oops, something went wrong.