https://github.com/wlsf82/cy-en-pt
Sample project to demonstrate how to test a website that has versions in two different languages (EN and PT-BR.)
https://github.com/wlsf82/cy-en-pt
cypress-io multi-language-testing talking-about-testing testing
Last synced: about 1 year ago
JSON representation
Sample project to demonstrate how to test a website that has versions in two different languages (EN and PT-BR.)
- Host: GitHub
- URL: https://github.com/wlsf82/cy-en-pt
- Owner: wlsf82
- License: mit
- Created: 2023-08-22T00:31:00.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2025-01-29T01:04:57.000Z (over 1 year ago)
- Last Synced: 2025-04-23T08:13:19.259Z (about 1 year ago)
- Topics: cypress-io, multi-language-testing, talking-about-testing, testing
- Language: JavaScript
- Homepage:
- Size: 190 KB
- Stars: 6
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# cy-en-pt
[](https://github.com/wlsf82/cy-en-pt/actions)
Sample project to demonstrate how to test a website that has versions in two different languages (EN and PT-BR.)
## Pre-requirements
It is required to have git, Node.js and npm installed to clone and run this project.
> I used versions `2.34.1`, `v18.15.0`, and `9.5.0.` of git, Node.js and npm, respectively. I suggest you use the same or later LTS versions.
## Installation
After cloning and accessing the repository, run `npm install` (or `npm i` for the short version) to install the dev dependencies.
## Tests
Run `npm test` (or `npm t` for the short version) to run the tests in headless mode in both languages (EN and PT-BR.)
Run `npm test:en` to run the tests in headless mode in English.
Run `npm test:pt-br` to run the tests in headless mode in Portuguese (Brazil.)
Run `npm run cy:open:en` to open the Cypress App and run the tests in interactive mode in English.
Or, run `npm run cy:open:pt-br` to open the Cypress App and run the tests in interactive mode in Portuguese (Brazil.)
## Support this project
If you want to support this project, leave a ⭐.
___
This project was created with 💚 by [Walmyr](https://walmyr.dev).