Writing JavaScript E2E test code in Cypress in one day
Since the front-end is where the user comes into contact, it is very important to test from the user's perspective, not the developer's perspective. Through E2E testing, verify that the user scenarios work normally and experience the transition from fear to confidence in your code!
Overcome the fear of writing code with E2E testing!
While writing JavaScript code Don't you have these worries?
😅 Is it okay to remove this function? 🧐 Is there a way to quickly perform repetitive functional tests? 🤔 How do I verify my code?
Developers are responsible for the quality of their programs. Therefore, they must be able to verify that all basic requirements are met before handing over functional testing to QA. Experience the confidence boost of reliable automated testing in your code!
For beginners of FE testing Cypress E2E Testing Tutorial. 💡
Courage is not the absence of fear. True courage is acting despite fear. - Goethe
We'll create an experience together that turns the fear of having to write front-end test code into confidence.
To these people I think it will help! 🙋🏻♂️
Anyone who knows basic JavaScript concepts
Anyone with a thirst for test code
When first learning front-end, you might be focused on developing screen UI features, and you might have a vague fear of testing code. We'll overcome this fear by implementing small-scale features and providing mutual feedback. Specifically, we'll practice testing user scenarios on the client using an E2E testing tool.
🔭 After taking this course?
You will lose the fear of writing test code.
I can repeatably test the apps I write according to user scenarios.
This is what makes it different! ✨
upside down I'm learning.
The reason we're taking this course is to write test code and verify the app's functionality. So, we'll first verify the app's functionality and then learn the theory.
Writing test code Experience one cycle .
Rather than going into detail about the method or how to use it from the beginning, you first experience the entire cycle of writing test code.
Inthe test code itself So that you can concentrate.
The app already has the functionality implemented, so you can focus on writing the test code itself.
Let's test the add, subtract, and reset functions of the counter app. You can implement the functions yourself, but if you want to focus on the testing itself, write only the tests in the branch where the functions are implemented!
Test basic calculator functions such as arithmetic operations.
Have anyquestions ? 🙌
Q. Is it okay for a JavaScript beginner to listen to this?
Yes, of course. I've prepared a simple app for JavaScript beginners, and I've created a separate branch so you can focus on testing rather than implementing the functionality. Please refer to it!
Q. Is there any test code that I can refer to?
All of Makerjun's missions are covered in its own study group. You can also reference other members' code through PRs posted by study group members.
Q. Does this course also teach TDD?
Learning TDD (Test Driven Development) requires a deeper understanding of the philosophy behind TDD and a deeper understanding of functional implementation. This lecture intentionally excludes relevant content to help you become more familiar with test code and gain hands-on experience writing it. We'll discuss TDD and more in-depth test code in subsequent lectures!
Introducing Makerjun 😆
Makerjun is creating an 'environment' where we can grow together with bright energy. You can find more detailed information about Makerjun on Makerjun's profile page!
I had a vague fear of test code, but
I was able to experience writing test code through practice.
I was also able to properly learn the concept of testing and why it is necessary.
I hope the next BDD or TDD lecture comes out soon!
Although I struggled for a while because the result screen changed from time to time or there were parts that were different from the lecture, I think the class itself was informative. First of all, I think it was really good that the lectures proceeded with examples first, unlike the lectures that go into detail about the theory first~