{"id":22825708,"url":"https://github.com/wlsf82/page-objects-vs-gui-custom-commands","last_synced_at":"2025-04-23T08:14:59.456Z","repository":{"id":44458162,"uuid":"356019570","full_name":"wlsf82/page-objects-vs-gui-custom-commands","owner":"wlsf82","description":"Project to demonstrate Page Objects and GUI custom commands with Cypress.io","archived":false,"fork":false,"pushed_at":"2021-07-21T21:50:19.000Z","size":23,"stargazers_count":29,"open_issues_count":0,"forks_count":15,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-23T08:14:52.424Z","etag":null,"topics":["custom-commands","cypress-io","e2e-testing","mattermost","page-object"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"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/wlsf82.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-04-08T19:00:46.000Z","updated_at":"2025-01-27T05:31:09.000Z","dependencies_parsed_at":"2022-09-22T09:10:17.425Z","dependency_job_id":null,"html_url":"https://github.com/wlsf82/page-objects-vs-gui-custom-commands","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/wlsf82%2Fpage-objects-vs-gui-custom-commands","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wlsf82%2Fpage-objects-vs-gui-custom-commands/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wlsf82%2Fpage-objects-vs-gui-custom-commands/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wlsf82%2Fpage-objects-vs-gui-custom-commands/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wlsf82","download_url":"https://codeload.github.com/wlsf82/page-objects-vs-gui-custom-commands/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250395285,"owners_count":21423400,"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":["custom-commands","cypress-io","e2e-testing","mattermost","page-object"],"created_at":"2024-12-12T17:11:51.262Z","updated_at":"2025-04-23T08:14:59.428Z","avatar_url":"https://github.com/wlsf82.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Page Objects vs GUI Custom Commands\n\nThis is a sample project to demonstrate the differences between writing end-to-end tests using the **Page Objects** pattern, using [**Cypress custom commands**](https://docs.cypress.io/api/cypress-api/custom-commands), or none of them at all.\n\nThe application under test is [**Mattermost Preview Mode**](https://github.com/mattermost/mattermost-docker-preview), and it can be found on [**Docker Hub**](https://hub.docker.com/r/mattermost/platform).\n\n## Installation\n\nHere you will find instructions for installing the **dev dependencies**, besides the installation of the application under test (**dev environment**).\n\n### Dev Dependencies\n\nRun `npm install` to install the dev dependencies.\n\n\u003e You will need [Node.js](http://nodejs.org) and NPM installed for it.\n\n### Dev environment\n\nFor installation instructions of **Mattermost**, read [**their official documentation**](https://docs.mattermost.com/install/docker-local-machine.html).\n\n## Running the tests\n\nHere you will find instructions for running the tests in both headless and interactive modes.\n\n### Headless Mode\n\nWith the Mattermost application up-and-running, run `npm test` to run the tests in headless mode.\n\n### Interactive Mode\n\nWith the Mattermost application up-and-running, run `npm run cy:open` to open the Cypress Runner, then click the \u003ckbd\u003e\u003e Run 1 integration spec\u003c/kbd\u003e button to run the tests in interactive mode.\n\n## Implementation\n\nHere you will find the implementation of:\n\n- [The tests](./cypress/integration/signup.spec.js)\n- [The Page Object](./cypress/pageObjects/signup.js)\n- [And the GUI custom command](./cypress/support/commands.js)\n\n___\n\nMade with 💚 by [Walmyr](https://walmyr.dev).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwlsf82%2Fpage-objects-vs-gui-custom-commands","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwlsf82%2Fpage-objects-vs-gui-custom-commands","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwlsf82%2Fpage-objects-vs-gui-custom-commands/lists"}