Skip to content

Commit

Permalink
progress: working headless but not accurate enough
Browse files Browse the repository at this point in the history
  • Loading branch information
PTaylour committed Feb 4, 2019
1 parent 69c4c53 commit 3ed7b16
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 5 deletions.
12 changes: 8 additions & 4 deletions package.json
Expand Up @@ -31,10 +31,14 @@
"test-watch": "jest --watch",
"test-coverage": "jest test/unit/*.js --coverage --collectCoverageFrom 'src/**/*.js'",
"test-regression": "jest test/regression/*.js",
"cypress": "cypress open",
"cypress:update": "cypress open --env updateSnapshots=true",
"ci:cypress": "start-server-and-test ci:cypress-server http://localhost:3001 cypress run",
"ci:cypress-server": "ws -p 3001",
"cypress": "yarn run _start-cypress-server-with _cypress:open",
"cypress:update-snapshots": "yarn run _start-cypress-server-with _cypress:update",
"ci:cypress": "yarn run _start-cypress-server-with _cypress:run",
"_cypress:update": "cypress open --env updateSnapshots=true",
"_cypress:open": "cypress open",
"_cypress:run": "cypress run",
"_start-cypress-server-with": "start-server-and-test _cypress-server http://localhost:3001",
"_cypress-server": "ws -p 3001",
"docs": "bash ./build-docs.sh",
"docs-commit": "npm run docs && git add docs && git diff-index --quiet HEAD || git commit -m 'update docs in preparation for release'",
"format": "prettier --write '{src,test}/**/*.js'",
Expand Down
4 changes: 3 additions & 1 deletion test/cypress/.gitignore
@@ -1 +1,3 @@
__diff_output__
__diff_output__
screenshots
videos
4 changes: 4 additions & 0 deletions test/cypress/integration/regression.spec.js
Expand Up @@ -12,6 +12,10 @@ context("playback tests", () => {

cy.get("#play").click();

// give videocontext a chance to render first frame
// should try and use the vidctx events here
cy.wait(100);

cy.get("#canvas").matchImageSnapshot("after play");

// pause after a wait
Expand Down
Binary file modified test/cypress/snapshots/All Specs/after pause.snap.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified test/cypress/snapshots/All Specs/after play.snap.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 3ed7b16

Please sign in to comment.