-
Notifications
You must be signed in to change notification settings - Fork 18
Initial test case using Cypress #196
Initial test case using Cypress #196
Conversation
// Import commands.js using ES2015 syntax: | ||
// import './commands'; | ||
|
||
// Alternatively you can use CommonJS syntax: | ||
// require('./commands') |
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.
Is everything commented out here because we have no modified configuration/behavior yet?
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.
Yeah. It is more like a placeholder for now.
package.json
Outdated
"start-cy-server": "yarn start --no-base-path --oss", | ||
"cy:open": "cypress open", | ||
"cy:run": "cypress run", | ||
"e2e:test": "WAIT_ON_TIMEOUT=900000 start-server-and-test 'yarn start-cy-server' http-get://localhost:5601/app/opendistro-anomaly-detection-kibana 'yarn cy:run'" |
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.
do we test by running yarn e2e:test
?
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.
In the upcoming CI change, it will be used.
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.
Got it, makes sense
* permissions and limitations under the License. | ||
*/ | ||
|
||
/// <reference types="cypress" /> |
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.
Can we remove this line?
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.
This is needed to enable Intelligent Code Completion
in IDE: https://docs.cypress.io/guides/tooling/IDE-integration.html#Triple-slash-directives
Can you explain how to run integration test in readme? |
sure. will add it. |
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.
LGTM. Looks like small conflict with ‘yarn.lock’ after my upgrade changes.
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.
This is great start. Thanks for doing it :)
Issue #, if available:
Description of changes:
Initial test case using Cypress. CI will be configured as next step. And more tests will be added.
Testing:
Screenshot:
Command: yarn cy:open
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.