-
Notifications
You must be signed in to change notification settings - Fork 6
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
Early integration of e2e test using Cypress #18
Early integration of e2e test using Cypress #18
Conversation
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.
TODO:
- Please replace all example tests with your own tests to actually test our website
- Please integrate the cypress test into our current Continuous Integration (CI) flow.
If you're not sure about how to do this, I can help you with it.
Thanks @zainfathoni... i'll improve it. About integrating with CI, i am not sure i can handle whole of the process...give me a hand :) |
i am not sure in making my own e2e test @zainfathoni. Please give me few sample to follow |
@andriawan I just invited you as a collaborator in my private personal project. |
I am honored to be invited @zainfathoni. I'll check it |
Please implement it in this project comprehensively, so that in the future I can always point to this public implementation as an example for anybody asking the same thing. 😁 |
i will try my best @zainfathoni... need several technical adaptation i think 😄 |
cypress/e2e/test.js
Outdated
}); | ||
|
||
it("navigating to page-2", () => { | ||
cy.visit("page-2"); |
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 action means that the user accesses page-2
by typing in the address bar.
That's not what we want to test.
What we want is, when the user clicks the Go to page 2 button, the website should navigate to the correct URL and page.
cypress/e2e/test.js
Outdated
}); | ||
|
||
it("navigating back to home", () => { | ||
cy.visit("/"); |
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.
Same as above, just the other way around.
Co-Authored-By: andriawan <andriawan2014@gmail.com>
Codecov Report
@@ Coverage Diff @@
## master #18 +/- ##
=====================================
Coverage 100% 100%
=====================================
Files 4 4
Lines 19 19
Branches 3 3
=====================================
Hits 19 19 Continue to review full report at Codecov.
|
Code Climate has analyzed commit 39a9b07 and detected 0 issues on this pull request. View more on Code Climate. |
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.
I have reviewed & added some improvements.
Feel free to ask me about my changes if you don't understand them.
Thanks a lot for contributing! 😁
really nice to work with experienced developer/engineer...hope i can contribute more and learn more @zainfathoni |
No problem. But once you master it, I guarantee that you'll like it so much. 😆 I would be more than happy to guide you. 😉 |
What: Integrating e2e test with Cypress
Why: to automate test browser event interaction such click event
How:
Checklist:
Dear all reviewers. I try to integrate Cypress e2e test. I am surely aware that there is a lot of improvement which should be added. therefore, inform me what should I do for improvement if any (sure a lot).
Thanks for letting me join this project @zainfathoni @ri7nz