{"id":51724890,"url":"https://github.com/deadlybyte/ded-test-task","last_synced_at":"2026-07-17T17:05:52.077Z","repository":{"id":248904570,"uuid":"807133530","full_name":"deadlybyte/ded-test-task","owner":"deadlybyte","description":null,"archived":false,"fork":false,"pushed_at":"2024-05-29T15:06:27.000Z","size":25,"stargazers_count":0,"open_issues_count":1,"forks_count":1,"subscribers_count":0,"default_branch":"main","last_synced_at":"2024-07-17T21:04:41.173Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":false,"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/deadlybyte.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-05-28T14:40:20.000Z","updated_at":"2024-07-17T21:04:50.434Z","dependencies_parsed_at":"2024-07-17T21:14:53.347Z","dependency_job_id":null,"html_url":"https://github.com/deadlybyte/ded-test-task","commit_stats":null,"previous_names":["deadlybyte/ded-test-task"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/deadlybyte/ded-test-task","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deadlybyte%2Fded-test-task","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deadlybyte%2Fded-test-task/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deadlybyte%2Fded-test-task/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deadlybyte%2Fded-test-task/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/deadlybyte","download_url":"https://codeload.github.com/deadlybyte/ded-test-task/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deadlybyte%2Fded-test-task/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35588705,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-17T02:00:06.162Z","response_time":116,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2026-07-17T17:05:48.408Z","updated_at":"2026-07-17T17:05:52.071Z","avatar_url":"https://github.com/deadlybyte.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# ded-test-task\n\n## Task\n\nPort three basic end-to-end tests for the Demilitarise Education (dED) website from one Javascript testing framework ([Cypress](https://www.cypress.io/)) to another ([Playwright](https://playwright.dev/)).\n\nSpecific requirements are as follows:\n\n-   It must be possible to configure the frameworks to run the same tests on different base URLs for different instances:\n    -   [The dED staging site](https://staging.ded1.co/)\n    -   [The dED production site](https://ded1.co/)\n    -   A local instance, eg. http://localhost:8000 (Not relevant for your tasks, but necessary later)\n-   Add simple notes to this README, to show how to run the Playwright tests:\n    -   In a GUI\n    -   from the command line\n    -   for different root URLs (eg. staging or production site)\n\n\n## Playwright\n\nIt is not necessary for candidates to have previous knowledge of either Playwright or Cypress. With a firm grasp of ES6 in general the tests should be comprehensible.\n\nCandidates are expected to refer to the excellent [Playwright documentation](https://playwright.dev/docs/intro) to familiarise themselves with the basics. This documentation should be more than sufficient to complete these tasks.\n\n\n## Prerequisites\n\n-   A command line application, such as the Linux or OSX terminal, or the Windows Subsystem for Linux.\n-   [Git](https://git-scm.com/) installed\n-   [Node Package Manager](https://docs.npmjs.com/) installed\n-   Basic fluency with the command line, Git and ES6\n\n\n## Tests\n\nThe following tests are conducted by the Cypress test files, and candidates are expected to produce Playwright tests which do the same:\n\n-   Test the home page (`cypress/cypress/e2e/home.cy.ts`):\n    -   Visit the site root (`\u003cBASE_URL\u003e/`)\n    -   Ensure there are no Javascript errors in the console\n    -   Ensure the element `p.ded-total-investment` is present\n    -   Ensure it contains an value, higher than 1bn, beginning with a pound sign (`£`)\n-   Test basic navigation (`cypress/cypress/e2e/treaty.cy.ts`):\n    -   Visit the site root (`\u003cBASE_URL\u003e/`)\n    -   Find a link `\u003ca\u003e` with href `/how-we-do-it`, and click it\n    -   Find a heading `\u003ch2\u003e` with text “treaty”, and click it\n    -   Ensure there is a heading with the text “The Demilitarise Education Treaty”\n    -   Ensure the URL is `\u003cBASE_URL\u003e/how-we-do-it/treaty`\n-   Test university search (`cypress/cypress/e2e/university-search.cy.ts`):\n    -   Visit the site root (`\u003cBASE_URL\u003e/`)\n    -   Find the element `input.ded-input-search-university`, and enter the string `bri`\n    -   Ensure an element appears with text “University of the West of England, Bristol”, and click it\n    -   Ensure the page contains a heading with text “University of the West of England, Bristol”\n    -   Ensure the breadcrumbs contain “University of the West of England, Bristol”\n    -   Ensure there are links containing text:\n        -   “policies”\n        -   “financial partnerships”\n        -   “research partnerships”\n        -   “academic partnerships”\n        -   “FOI requests”\n        -   “actions”\n\n\n## Instructions to run Cypress tests\n\nBeginning in the directory `cypress`:\n\nInstall dependencies:\n\n```\nnpm ci\n```\n\nRun all tests on staging server/production server (see `package.json` scripts):\n\n```\nnpm run cypress:staging run\nnpm run cypress:production run\n```\n\nRun a specific test on staging server server, eg. `university-search`:\n\n```\nnpm run cypress:staging run -- --spec 'cypress/e2e/university-search.cy.ts'\n```\n\nRun all tests on staging server with GUI:\n\n```\nnpm run cypress:staging open\n```\n\nAt the GUI\n\n-   Click “E2E Testing”\n-   Choose a browser, eg. Chrome\n-   Click “Start E2E Testing in ...”\n-   Click any test to run it, eg. “home.cy.ts”\n\n\n## Instructions to run Playwright tests\n\nBeginning in the directory `playwright`:\n\n---\n\nCandidates are expected to complete this section of the documentation, in the style of the Cypress section above.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeadlybyte%2Fded-test-task","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdeadlybyte%2Fded-test-task","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeadlybyte%2Fded-test-task/lists"}