{"id":20035934,"url":"https://github.com/rafaelfgx/cypress","last_synced_at":"2026-06-10T17:31:06.777Z","repository":{"id":96528661,"uuid":"349578646","full_name":"rafaelfgx/Cypress","owner":"rafaelfgx","description":"Cypress.","archived":false,"fork":false,"pushed_at":"2024-11-30T12:47:41.000Z","size":3,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-11-30T13:34:51.796Z","etag":null,"topics":["cypress","cypress-io","cypress-tests","test","test-automation","testing","tests"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rafaelfgx.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"license.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-03-19T23:19:08.000Z","updated_at":"2024-11-30T12:47:45.000Z","dependencies_parsed_at":"2024-05-31T21:06:32.412Z","dependency_job_id":"14f139ac-0ce4-4253-81ab-168f40dd7762","html_url":"https://github.com/rafaelfgx/Cypress","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rafaelfgx%2FCypress","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rafaelfgx%2FCypress/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rafaelfgx%2FCypress/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rafaelfgx%2FCypress/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rafaelfgx","download_url":"https://codeload.github.com/rafaelfgx/Cypress/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":233644268,"owners_count":18707595,"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","cypress-io","cypress-tests","test","test-automation","testing","tests"],"created_at":"2024-11-13T10:09:59.599Z","updated_at":"2025-01-12T18:31:21.216Z","avatar_url":"https://github.com/rafaelfgx.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Cypress\n\n## Links\n\n* [Cypress](https://cypress.io)\n* [Cypress Examples](https://example.cypress.io)\n* [Joi](https://joi.dev)\n\n## Run\n\n1. Execute **npm i**\n2. Execute **npm run cy:open** or **npm run cy:run**\n\n## Examples\n\n### Functions\n\n```js\nconst add = (a, b) =\u003e a + b\n\nconst subtract = (a, b) =\u003e a - b\n\nconst divide = (a, b) =\u003e a / b\n\nconst multiply = (a, b) =\u003e a * b\n```\n\n```js\ndescribe(\"Math\", () =\u003e {\n    it(\"Add\", () =\u003e expect(add(5, 10)).to.eq(15))\n\n    it(\"Subtract\", () =\u003e expect(subtract(15, 5)).to.eq(10))\n\n    it(\"Divide\", () =\u003e expect(divide(10, 2)).to.eq(5))\n\n    it(\"Divide by Zero\", () =\u003e expect(divide(10, 0)).to.eq(Infinity))\n\n    it(\"Multiply\", () =\u003e expect(multiply(2, 5)).to.eq(10))\n})\n```\n\n### API\n\n```js\nconst url = \"https://jsonplaceholder.cypress.io\"\n\ndescribe(\"API\", () =\u003e {\n    describe(\"Users\", () =\u003e {\n        it(\"Status 200\", () =\u003e cy.request(`${url}/users`).its(\"status\").should(\"eq\", 200))\n    })\n\n    describe(\"Todos\", () =\u003e {\n        it(\"Status 200\", () =\u003e cy.request(`${url}/todos`).its(\"status\").should(\"eq\", 200))\n\n        it(\"Valid\", () =\u003e {\n            const schema = JOI.array().items(JOI.object({\n                id: JOI.number(),\n                title: JOI.string(),\n                completed: JOI.bool(),\n                userId: JOI.number()\n            }))\n\n            cy.request(`${url}/todos`).should((response) =\u003e JOI.assert(response.body, schema))\n        })\n    })\n})\n```\n\n### Browser\n\n```js\ndescribe(\"Browser\", () =\u003e {\n    describe(\"Login\", () =\u003e {\n        beforeEach(() =\u003e cy.visit(\"https://practicetestautomation.com/practice-test-login\"))\n\n        it(\"Invalid\", () =\u003e {\n            cy.get(\"input[name='username']\").type(\"invalid\")\n            cy.get(\"input[name='password']\").type(\"invalid\")\n            cy.get(\"button[id='submit']\").click()\n            cy.get(\"div#error\").should(\"be.visible\")\n        })\n\n        it(\"Valid\", () =\u003e {\n            cy.get(\"input[name='username']\").type(\"student\")\n            cy.get(\"input[name='password']\").type(\"Password123\")\n            cy.get(\"button[id='submit']\").click()\n            cy.url().should(\"contain\", \"logged-in-successfully\")\n        })\n    })\n})\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frafaelfgx%2Fcypress","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frafaelfgx%2Fcypress","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frafaelfgx%2Fcypress/lists"}