Skip to content
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

Merged
merged 10 commits into from
Feb 15, 2022
Merged

Conversation

PraveenAsokan
Copy link
Contributor

@PraveenAsokan PraveenAsokan commented Jan 26, 2022

  • 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 |
Copy link
Contributor

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.

Copy link
Contributor Author

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

Comment on lines 18 to 19
cy.clearInput();
cy.enterValue(value);
Copy link
Contributor

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;
Copy link
Contributor

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?

Copy link
Contributor Author

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.

@MekalaNagarajan-Centrica MekalaNagarajan-Centrica linked an issue Feb 15, 2022 that may be closed by this pull request
3 tasks
@PraveenAsokan PraveenAsokan merged commit 6420561 into main Feb 15, 2022
@jholt1 jholt1 deleted the feature/cypress-browserstack branch September 14, 2022 10:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cypress-BrowserStack integration
2 participants