{"id":20038802,"url":"https://github.com/defra/forms-smoke-test","last_synced_at":"2025-10-12T16:36:26.841Z","repository":{"id":251898404,"uuid":"822623121","full_name":"DEFRA/forms-smoke-test","owner":"DEFRA","description":"Git repository for service forms-smoke-test","archived":false,"fork":false,"pushed_at":"2024-09-18T15:16:08.000Z","size":138,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-09-18T15:38:41.309Z","etag":null,"topics":["cdp","smoke","test","test-suite"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DEFRA.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-07-01T13:43:38.000Z","updated_at":"2024-09-18T15:14:52.000Z","dependencies_parsed_at":"2024-09-18T15:15:53.756Z","dependency_job_id":"75f7eb8f-965a-420d-9f94-19801c998b83","html_url":"https://github.com/DEFRA/forms-smoke-test","commit_stats":null,"previous_names":["defra/forms-smoke-test"],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DEFRA%2Fforms-smoke-test","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DEFRA%2Fforms-smoke-test/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DEFRA%2Fforms-smoke-test/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DEFRA%2Fforms-smoke-test/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DEFRA","download_url":"https://codeload.github.com/DEFRA/forms-smoke-test/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241469327,"owners_count":19968032,"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":["cdp","smoke","test","test-suite"],"created_at":"2024-11-13T10:33:03.548Z","updated_at":"2025-10-12T16:36:21.809Z","avatar_url":"https://github.com/DEFRA.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"forms-smoke-test\n\nNeeds to have a form name - Do not use - Used for Automated Tests in your environment for the test to pass\n\nThe template to create a service that runs WDIO tests against an environment.\n\n- [Requirements](#requirements)\n  - [Node.js](#nodejs)\n- [Local](#local)\n  - [Setup](#setup)\n  - [Running local tests](#running-local-tests)\n  - [Debugging local tests](#debugging-local-tests)\n- [Production](#production)\n  - [Debugging tests](#debugging-tests)\n- [Licence](#licence)\n  - [About the licence](#about-the-licence)\n\n## Local Development\n\n### Setup\n\nInstall application dependencies:\n\n```bash\nnpm install\n```\n\nCreate a form (if it doesn't exist)- Name should be `e2e form`\n\nAnd upload form json from - [test/file/register-as-a-unicorn-breeder.json](register-as-a-unicorn-breeder.json)\n\n### Running local tests\n\nStart application you are testing on the url specified in `baseUrl` [wdio.local.conf.js](wdio.local.conf.js)\n\n```bash\nnpm run test:local\n```\n\n### Debugging local tests\n\n```bash\nnpm run test:local:debug\n```\n\n## Production\n\n### Running the tests\n\nTests are run from the CDP-Portal under the Test Suites section. Before any changes can be run, a new docker image must be built, this will happen automatically when a pull request is merged into the `main` branch.\nYou can check the progress of the build under the actions section of this repository. Builds typically take around 1-2 minutes.\n\nThe results of the test run are made available in the portal.\n\n## Requirements of CDP Environment Tests\n\n1. Your service builds as a docker container using the `.github/workflows/publish.yml`\n   The workflow tags the docker images allowing the CDP Portal to identify how the container should be run on the platform.\n   It also ensures its published to the correct docker repository.\n\n2. The Dockerfile's entrypoint script should return exit\n\n## Licence\n\nTHIS INFORMATION IS LICENSED UNDER THE CONDITIONS OF THE OPEN GOVERNMENT LICENCE found at:\n\n\u003chttp://www.nationalarchives.gov.uk/doc/open-government-licence/version/3\u003e\n\nThe following attribution statement MUST be cited in your products and applications when using this information.\n\n\u003e Contains public sector information licensed under the Open Government licence v3\n\n### About the licence\n\nThe Open Government Licence (OGL) was developed by the Controller of Her Majesty's Stationery Office (HMSO) to enable\ninformation providers in the public sector to license the use and re-use of their information under a common open\nlicence.\n\nIt is designed to encourage use and re-use of information freely and flexibly, with only a few conditions.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdefra%2Fforms-smoke-test","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdefra%2Fforms-smoke-test","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdefra%2Fforms-smoke-test/lists"}