-
Notifications
You must be signed in to change notification settings - Fork 134
feat: Added onReady & onClose to the API #28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
72be438
feat: Added onReady & onClose to the API
maxprilutskiy b3280d5
chore: Updated chrome version for e2e
maxprilutskiy 18f4f64
chore: Chrome version changed to stable
maxprilutskiy d19a279
chore: Changed dist to xenial
maxprilutskiy c2f6269
chore: Refactor yarn scripts
maxprilutskiy 2db9754
chore: Remove headless
maxprilutskiy 16cb501
chore: Refactoring package.json
maxprilutskiy e83af08
test: Units tests added
maxprilutskiy 5f138cd
Update README.md
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 |
|---|---|---|
|
|
@@ -57,5 +57,5 @@ node_modules | |
| # codeceptjs | ||
| e2e/output | ||
|
|
||
| # cypress | ||
| cypress | ||
| # cypress | ||
| cypress | ||
This file contains hidden or 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 hidden or 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 hidden or 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 |
|---|---|---|
|
|
@@ -21,29 +21,29 @@ | |
| "clean:lib": "rm -rf lib", | ||
| "start": "NODE_ENV=development webpack-dev-server -d --config webpack.config.dist.js", | ||
| "test": "yarn lint && yarn test:unit && yarn test:visual && yarn test:functional", | ||
| "lint": "eslint ./src --ext .js --ignore-path .eslintignore", | ||
| "test:unit": "jest", | ||
| "test:unit:watch": "jest --watch", | ||
| "test:unit:coverage": "jest --coverage", | ||
| "test:visual": "yarn test:visual:install && yarn test:visual:chrome && yarn test:visual:firefox && yarn test:visual:mobile", | ||
| "lint": "yarn eslint ./src --ext .js --ignore-path .eslintignore", | ||
| "test:unit": "yarn jest", | ||
| "test:unit:watch": "yarn jest --watch", | ||
| "test:unit:coverage": "yarn jest --coverage", | ||
| "test:visual": "yarn run test:visual:install && yarn run test:visual:chrome && yarn run test:visual:firefox && yarn run test:visual:mobile", | ||
| "test:visual:install": "yarn selenium-standalone install --silent", | ||
| "test:visual:chrome": "yarn codeceptjs --config codecept-visual.conf.js run --steps --grep @desktop", | ||
| "test:visual:firefox": "yarn codeceptjs --config codecept-visual.conf.js run --steps --profile firefox --grep @desktop", | ||
| "test:visual:mobile": "yarn codeceptjs --config codecept-visual.conf.js run --steps --grep @mobile", | ||
| "test:functional:debug": "yarn cypress open", | ||
| "test:functional": "yarn test:functional:chrome && yarn test:functional:firefox", | ||
| "test:functional": "yarn run test:functional:chrome && yarn run test:functional:firefox", | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Good catch 👍 |
||
| "test:functional:firefox": "yarn cypress run --browser firefox", | ||
| "test:functional:chrome": "yarn cypress run --browser chrome", | ||
| "prepublish": "yarn run lib", | ||
| "semantic-release": "semantic-release --branch release", | ||
| "travis-deploy-once": "travis-deploy-once --pro", | ||
| "semantic-release": "yarn semantic-release --branch release", | ||
| "travis-deploy-once": "yarn travis-deploy-once --pro", | ||
| "copy": "yarn run copy:assets && yarn run copy:helpcenter && yarn run copy:demo", | ||
| "copy:assets": "copyfiles -f assets/* dist", | ||
| "copy:helpcenter": "copyfiles -f helpcenter/* dist", | ||
| "copy:demo": "copyfiles -f demo/* dist", | ||
| "copy:assets": "yarn copyfiles -f assets/* dist", | ||
| "copy:helpcenter": "yarn copyfiles -f helpcenter/* dist", | ||
| "copy:demo": "yarn copyfiles -f demo/* dist", | ||
| "build": "yarn run dist && yarn run lib && yarn run copy", | ||
| "dist": "yarn run clean:dist && webpack --config webpack.config.dist.js", | ||
| "lib": "yarn run clean:lib && webpack --config webpack.config.lib.js" | ||
| "dist": "yarn run clean:dist && yarn webpack --config webpack.config.dist.js", | ||
| "lib": "yarn run clean:lib && yarn webpack --config webpack.config.lib.js" | ||
| }, | ||
| "devDependencies": { | ||
| "@applitools/eyes-webdriverio": "^5.7.2", | ||
|
|
@@ -72,6 +72,7 @@ | |
| "jsdom": "^11.6.2", | ||
| "react": "16.12.0", | ||
| "react-dom": "16.12.0", | ||
| "regenerator-runtime": "^0.13.5", | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. needed for async tests because babel is not up to date. |
||
| "selenium-standalone": "^6.17.0", | ||
| "semantic-release": "^12.2.5", | ||
| "travis-deploy-once": "^4.3.3", | ||
|
|
||
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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,11 @@ | ||
| export const getPostMessageHandler = (type, handler, options = {}) => (event) => { | ||
| try { | ||
| if (event.data.type !== type) { return } | ||
|
|
||
| if (options.includePayload) { | ||
| handler(event) | ||
| } else { | ||
| handler() | ||
| } | ||
| } catch (e) { } | ||
| } |
This file contains hidden or 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 hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🤦