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

Early integration of e2e test using Cypress #18

Merged
merged 20 commits into from
Apr 22, 2019
Merged

Early integration of e2e test using Cypress #18

merged 20 commits into from
Apr 22, 2019

Conversation

andriawan
Copy link
Collaborator

@andriawan andriawan commented Apr 20, 2019

What: Integrating e2e test with Cypress

Why: to automate test browser event interaction such click event

How:

Checklist:

  • Tests
  • Ready to be merged

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

@andriawan andriawan changed the title early integration of e2e with cypress early integration of e2e test with cypress Apr 20, 2019
Copy link
Contributor

@zainfathoni zainfathoni left a 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.

package.json Outdated Show resolved Hide resolved
package.json Outdated Show resolved Hide resolved
@zainfathoni zainfathoni changed the title early integration of e2e test with cypress Early integration of e2e test using Cypress Apr 20, 2019
@zainfathoni zainfathoni added the enhancement New feature or request label Apr 20, 2019
@zainfathoni zainfathoni added this to In progress in Infrastructure via automation Apr 20, 2019
@zainfathoni zainfathoni added this to the MVP Launching milestone Apr 20, 2019
@andriawan
Copy link
Collaborator Author

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 :)

@andriawan
Copy link
Collaborator Author

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.

i am not sure in making my own e2e test @zainfathoni. Please give me few sample to follow

@zainfathoni
Copy link
Contributor

@andriawan I just invited you as a collaborator in my private personal project.
You can follow the cypress integration I implemented over there.
Please don't hesitate to raise a question if you don't know where to look.
Thanks!

@andriawan
Copy link
Collaborator Author

@andriawan I just invited you as a collaborator in my private personal project.
You can follow the cypress integration I implemented over there.
Please don't hesitate to raise a question if you don't know where to look.
Thanks!

I am honored to be invited @zainfathoni. I'll check it

@zainfathoni
Copy link
Contributor

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. 😁

@andriawan
Copy link
Collaborator Author

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 😄

@r17x r17x mentioned this pull request Apr 20, 2019
43 tasks
});

it("navigating to page-2", () => {
cy.visit("page-2");
Copy link
Contributor

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.

});

it("navigating back to home", () => {
cy.visit("/");
Copy link
Contributor

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.

Infrastructure automation moved this from In progress to Review in progress Apr 20, 2019
package.json Outdated Show resolved Hide resolved
Infrastructure automation moved this from Review in progress to Reviewer approved Apr 22, 2019
package.json Outdated Show resolved Hide resolved
Co-Authored-By: andriawan <andriawan2014@gmail.com>
@andriawan andriawan dismissed stale reviews from zainfathoni via e9f019f April 22, 2019 16:20
Infrastructure automation moved this from Reviewer approved to Review in progress Apr 22, 2019
@codecov
Copy link

codecov bot commented Apr 22, 2019

Codecov Report

Merging #18 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@          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.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 1f9f010...39a9b07. Read the comment docs.

@codeclimate
Copy link

codeclimate bot commented Apr 22, 2019

Code Climate has analyzed commit 39a9b07 and detected 0 issues on this pull request.

View more on Code Climate.

@devpendent devpendent deleted a comment from codeclimate bot Apr 22, 2019
@devpendent devpendent deleted a comment from codeclimate bot Apr 22, 2019
@devpendent devpendent deleted a comment from codeclimate bot Apr 22, 2019
@devpendent devpendent deleted a comment from codeclimate bot Apr 22, 2019
@devpendent devpendent deleted a comment from codeclimate bot Apr 22, 2019
@devpendent devpendent deleted a comment from codeclimate bot Apr 22, 2019
@devpendent devpendent deleted a comment from codeclimate bot Apr 22, 2019
@zainfathoni zainfathoni self-requested a review April 22, 2019 18:26
Copy link
Contributor

@zainfathoni zainfathoni left a 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! 😁

Infrastructure automation moved this from Review in progress to Reviewer approved Apr 22, 2019
@zainfathoni zainfathoni merged commit ded5243 into devpendent:master Apr 22, 2019
Infrastructure automation moved this from Reviewer approved to Done Apr 22, 2019
@andriawan
Copy link
Collaborator Author

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

@zainfathoni
Copy link
Contributor

zainfathoni commented Apr 23, 2019

No problem.
I know the task in this PR is a lot to take.
Even it requires me to jump in because it contains a few integrated concepts I learnt from this course.

But once you master it, I guarantee that you'll like it so much. 😆
So, please try reviewing the codes thoroughly and don't hesitate to ping me up if there's anything that you don't understand.

I would be more than happy to guide you. 😉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Development

Successfully merging this pull request may close these issues.

None yet

2 participants