-
Notifications
You must be signed in to change notification settings - Fork 0
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
Feature/cypress browserstack #178
Conversation
PraveenAsokan
commented
Jan 26, 2022
•
edited
Loading
edited
- Add BrowserStack library to dependencies
- Set up browserstack.json file
- Add script for cypress-browserstack in package.json
- Add unwanted run time folders to gitignore
- Few script maintenance
@@ -8,27 +8,27 @@ Feature: muon inputter component | |||
|
|||
Examples: | |||
|component |type | | |||
|muon-inputter |standard | | |||
|muon-inputter |text | |
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.
type
attribute values are not supported now.
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.
It's just for the BDD to launch the correct URL for the test. We are validating inputtype
attribute separately in the script
cypress/support/commands.js
Outdated
cy.clearInput(); | ||
cy.enterValue(value); |
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.
remove these from here and have them in each test for better understanding of test.
Cypress.on('uncaught:exception', (err, runnable) => { | ||
// returning false here prevents Cypress from | ||
// failing the test | ||
return false; |
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.
What happens when there is an exception? Does the test report as failure or skips?
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 to avoid some unwanted exceptions thrown during the run. It won't skip the failed tests. It captures the error and fails the test as excepted.