{"repo":"wlsf82/gitlab-cypress","free":true,"listed":false,"github":"https://github.com/wlsf82/gitlab-cypress","clone":"git clone https://github.com/wlsf82/gitlab-cypress.git","description":"Sample project to experiment with Cypress to test the GitLab application.","language":"JavaScript","stars":104,"topics":["cypress","testing","api-testing","cypress-io","e2e-testing","gitlab","gui-testing","docker","github-actions","web-testing"],"license":"MIT","category":"deployment-docker-iac","readme_excerpt":"GitLab Cypress Sample project to experiment with Cypress to test the GitLab application. Pre-requirements You need to have a GitLab local environment up and running using this Docker image. You also need to have Node.js and npm installed on your computer. For this project, the following versions of Node.js and npm were used: Running GitLab on Docker Run docker run --publish 80:80 --name gitlab --hostname localhost wlsf82/gitlab-ce and wait for the environment to be up and running (this might take a minute or so). All should be ok if, when accessing the http://localhost/ URL, a form to define the password of the root user is displayed. ❗ THERE'S NO NEED TO DEFINE THE PASSWORD MANUALLY ❗ There's an automated test for it. 😉 Keep reading. Installation Run npm i to install the dev dependencies. Tests Before running the tests, create a file called cypress.env.json in the project root directory, based on the cypress.env.example.json file, and update the value of the USERPASSWORD property with one of your choice. By default, the tests will run against http://localhost/ , but if you need to run them in a different URL (e.g.: http://localhost:3000/ ), change the baseUrl property in the cypress.config.js file. Headless mode Run npm test to run all tests in headless mode. Run npm run test:api to run only the API tests in headless mode. Run npm run test:gui:project:issue to run only the GUI Project-issue-related tests in headless mode. Run npm run test:gui:project:but:issue to run only t","default_branch":null,"files":null,"tree":[],"storefront":"/r/wlsf82","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/wlsf82/gitlab-cypress/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}