Closed SaiSantoshPradyumna closed 4 weeks ago
Pull Request: Added Cypress Test and Tested e2e CP Problem Generator
Summary This pull request focuses on the addition of the Cypress node package to the codex -website repository and the successful testing of the workflow from the homepage to the resources, to competitive programming, and finally to the generation of test cases by filling out the form using end-to-end (e2e) testing in Microsoft, Electron, and Firefox browsers.
Changes
- Added the Cypress package to the project dependencies to enable robust automated testing.
- Created a new test file named
cp-generator.cy.ts
under thee2e
folder. This test file runs on thelocalhost:5000
port, a setting that can be customized in thecypress.config.ts
configuration file.- Modified
package.json
to update the script for running Cypress. The command has been changed tonpm run cy:open
instead of the previousnpm run cypress open
, streamlining the process for developers.Conclusion This pull request successfully integrates the Cypress testing framework into the repository, significantly enhancing our automated testing capabilities. The newly added end-to-end test meticulously validates the complete workflow of the competitive programming problem generator. This ensures that the entire process, from navigating the homepage to accessing resources, engaging in competitive programming, and generating test cases, functions correctly and reliably. The integration of Cypress supports testing across multiple browsers, including Microsoft, Electron, and Firefox, thus ensuring that our application maintains cross-browser compatibility and consistent performance.
The detailed configuration adjustments in
cypress.config.ts
andpackage.json
further streamline the testing process. Moreover, the comprehensive e2e tests offer reassurance that the application's critical functionalities work as expected, which is essential for both developers and users. By automating the testing process, this is to reduce the likelihood of human error and ensure that new updates or changes do not inadvertently break existing functionality. This integration marks the first successful test of this repository .Attached is the proof of video that you can see to check it out https://github.com/c-code-x/codex-website/assets/103298162/4060eedb-17a0-4a7f-a4e1-3b260216cdc6
Pull Request: Added Cypress Test and Tested e2e CP Problem Generator
Summary This pull request focuses on the addition of the Cypress node package to the codex -website repository and the successful testing of the workflow from the homepage to the resources, to competitive programming, and finally to the generation of test cases by filling out the form using end-to-end (e2e) testing in Microsoft, Electron, and Firefox browsers.
Changes
cp-generator.cy.ts
under thee2e
folder. This test file runs on thelocalhost:5000
port, a setting that can be customized in thecypress.config.ts
configuration file.package.json
to update the script for running Cypress. The command has been changed tonpm run cy:open
instead of the previousnpm run cypress open
, streamlining the process for developers.Conclusion This pull request successfully integrates the Cypress testing framework into the repository, significantly enhancing our automated testing capabilities. The newly added end-to-end test meticulously validates the complete workflow of the competitive programming problem generator. This ensures that the entire process, from navigating the homepage to accessing resources, engaging in competitive programming, and generating test cases, functions correctly and reliably. The integration of Cypress supports testing across multiple browsers, including Microsoft, Electron, and Firefox, thus ensuring that our application maintains cross-browser compatibility and consistent performance.
The detailed configuration adjustments in
cypress.config.ts
andpackage.json
further streamline the testing process. Moreover, the comprehensive e2e tests offer reassurance that the application's critical functionalities work as expected, which is essential for both developers and users. By automating the testing process, this is to reduce the likelihood of human error and ensure that new updates or changes do not inadvertently break existing functionality. This integration marks the first successful test of this repository .Attached is the proof of video that you can see to check it out https://github.com/c-code-x/codex-website/assets/103298162/4060eedb-17a0-4a7f-a4e1-3b260216cdc6