{"id":16342651,"url":"https://github.com/peterszeles/cypress-cucumber-testing","last_synced_at":"2025-07-19T22:06:17.005Z","repository":{"id":52984128,"uuid":"356589534","full_name":"peterszeles/cypress-cucumber-testing","owner":"peterszeles","description":null,"archived":false,"fork":false,"pushed_at":"2021-05-21T09:15:10.000Z","size":61,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-20T23:43:24.605Z","etag":null,"topics":["cypress","gherkin-command","gherkin-tests","google-sheets","software-engineering","testing-framework"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/peterszeles.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-04-10T13:26:46.000Z","updated_at":"2021-05-21T09:15:13.000Z","dependencies_parsed_at":"2022-08-26T13:23:16.653Z","dependency_job_id":null,"html_url":"https://github.com/peterszeles/cypress-cucumber-testing","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/peterszeles/cypress-cucumber-testing","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peterszeles%2Fcypress-cucumber-testing","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peterszeles%2Fcypress-cucumber-testing/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peterszeles%2Fcypress-cucumber-testing/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peterszeles%2Fcypress-cucumber-testing/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/peterszeles","download_url":"https://codeload.github.com/peterszeles/cypress-cucumber-testing/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peterszeles%2Fcypress-cucumber-testing/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266026386,"owners_count":23866033,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cypress","gherkin-command","gherkin-tests","google-sheets","software-engineering","testing-framework"],"created_at":"2024-10-11T00:04:44.136Z","updated_at":"2025-07-19T22:06:16.466Z","avatar_url":"https://github.com/peterszeles.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Cypress Cucumber testing DSL 🥒 🚀\n\nThis is a project for UI/UX purposes with Cypress and Cucumber frameworks.\nThere is implemented a unique DSL (Domain Specific Language) usage placed in folder cypress/tests/common.\n\n\n## Installation ⚙️\n\n- Install [NodeJS](https://nodejs.org/en/) \\\n- Use the  [CLI](https://www.w3schools.com/whatis/whatis_cli.asp) to install this project.\n\n```bash\ngit clone https://github.com/peterszeles/cypress-cucumber-testing.git\nnpm intall\n```\n\n## Running ⏳\n\nTo open the Cypress UI use this command:\n```bash\nnpx cypress open\n```\n\nTo run a specific Gherkin test use this command:\n```bash\ncypress run --spec \"**/filename.feature\"\n```\n\nTo run all Gherkin tests use this command:\n```bash\nnpm test\n```\n\n## Supported Gherkin commands 🥒 🔦\n\nGiven, When, Then, And\n\n| Command | Expression |\n| --- | --- |\n| Given / When / Then / And | I am on \"string\" page | \n| Given / When / Then / And | I click on input \"string\" | \n| Given / When / Then / And | I click on Nth \"string\" | \n| Given / When / Then / And | I click on Nth \"string\" button | \n| Given / When / Then / And | I click on \"string\" | \n| Given / When / Then / And | I click on \"string\" button | \n| Given / When / Then / And | I click on \"string\" link | \n| Given / When / Then / And | I login as \"string\" \"string\"| \n| Given / When / Then / And | I scroll \"string\" into view | \n| Given / When / Then / And | I scroll to \"string\" at \"string\" | \n| Given / When / Then / And | I see \"string\" in the title | \n| Given / When / Then / And | I see \"string\" on the page | \n| Given / When / Then / And | I select from dropdown \"string\" \"string\" | \n| Given / When / Then / And | I select \"string\" | \n| Given / When / Then / And | Label \"string\" is present | \n| Given / When / Then / And | Set email at label \"string\" to \"string\" | \n| Given / When / Then / And | Set input at label \"string\" to \"string\" | \n| Given / When / Then / And | Set input \"string\" to \"string\" | \n| Given / When / Then / And | Set password to \"string\" | \n| Given / When / Then / And | Set textarea at label \"string\" to \"string\" | \n\n\n## Develop a Gherkin command 💻\nUse any JavaScript file in test/common folder as a template\n```javascript\nimport {Given, When, Then, And} from \"cypress-cucumber-preprocessor/steps\";\n\nGiven(`Expression {string}`, (str) =\u003e {\n    /** Here goes the implementation of the Gherkin command\n     * Use the Cypress documentation for implementing the test.\n     * @str is the variable from inside the Expression. \n     *      You can use STRING or NUMBER\n     *      as many as it is **/ \n    \n});\n\nWhen(`Expression {string}`, (str) =\u003e {\n    /** Here goes the implementation of the Gherkin command\n     * Use the Cypress documentation for implementing the test.\n     * @str is the variable from inside the Expression.\n     *      You can use STRING or NUMBER\n     *      as many as it is **/\n\n});\n\nThen(`Expression {string}`, (str) =\u003e {\n    /** Here goes the implementation of the Gherkin command\n     * Use the Cypress documentation for implementing the test.\n     * @str is the variable from inside the Expression.\n     *      You can use STRING or NUMBER\n     *      as many as it is **/\n\n});\n\nAnd(`Expression {string}`, (str) =\u003e {\n    /** Here goes the implementation of the Gherkin command\n     * Use the Cypress documentation for implementing the test.\n     * @str is the variable from inside the Expression.\n     *      You can use STRING or NUMBER\n     *      as many as it is **/\n\n});\n\n\n```\n\n## Usage ⚙️\nCreate a new folder at folder tests/common which describes the testing domain.\nInside in this new folder create a Gherkin file type .feature\n```gherkin\n@custom-tag\n  # The NAME of the feature testing file  \n  Feature: The name of the feature\n\n    # The description   \n    Here goes the description\n\n  # First scenario\n    Given I am on \"https://github.com/peterszeles/cypress-cucumber-testing\" page\n    When I click on \"Go to file\"\n    Then I click on \"cypress/fixtures/example.json\"\n    \n  # Second scenario\n  Scenario: Another scenario\n    Given I am on \"https://github.com/peterszeles/cypress-cucumber-testing/blob/master/cypress/fixtures/example.json\" page\n    Then I see \"cypress-cucumber-testing\" on the page\n\n```\n\n## Google Sheets format 🗄\nTo use Google Sheets for implementig test scenarios\n- create a developer google site\n- cleate a google sheet\n- add your developer specific email\n- use the sheets/snippet.js file to run\n```bash\nnode sheets/snippet.js \u0026\u0026 cypress run --spec cypress/tests/google/googleSheetTest.feature\n```\n\n## Contributing 🥒 📐✂️✒️\nYou are welcome to contribute on this project. By contributing you can make testers life easyer 🙂 \\\nPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.\n\nPlease make sure to update tests as appropriate.\n\n## License 🛒🔒\n[MIT](https://choosealicense.com/licenses/mit/)\n\n## Links 🔗\n[KPI - Department of comupters and informatics](https://kpi.fei.tuke.sk/en) \\\n[Technical University of Kosice](https://www.tuke.sk/wps/portal)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpeterszeles%2Fcypress-cucumber-testing","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpeterszeles%2Fcypress-cucumber-testing","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpeterszeles%2Fcypress-cucumber-testing/lists"}