Navigate to the page you want to test in your browser. Right-click and select Trydent. This will open the Trydent extension.
2. Describe Statement
Enter the describe statement for your test. This will be the name of the test suite that is generated.
Proceed to “Start Test”
4. It Statement
Enter the it statement for your test. This will be the name of the test case that is generated.
Proceed to the “Generate Test” button.
5. End to End User Experience
Run through the user experience you want to test. Trydent will locally record your actions.
Assertions enable you to validate the state of the DOM at any point during your test. You can add assertions by hovering over the component to assert and keydown “e” + “z” simultaneously.
Your “Input Log” will be populated with the actions and assertions you make.
6. Generate Code
Once you are finished recording, click the “Stop Recording and Generate Test” button. This will generate your test code.
You can press the copy button to immediately copy the code to your clipboard.