{"id":21674360,"url":"https://github.com/drunomics/playwright-drupal-starter","last_synced_at":"2025-04-12T04:23:45.682Z","repository":{"id":77299062,"uuid":"538176428","full_name":"drunomics/playwright-drupal-starter","owner":"drunomics","description":null,"archived":false,"fork":false,"pushed_at":"2023-12-15T08:17:33.000Z","size":11,"stargazers_count":5,"open_issues_count":1,"forks_count":1,"subscribers_count":11,"default_branch":"main","last_synced_at":"2025-04-11T18:57:23.969Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"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/drunomics.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":"2022-09-18T16:52:33.000Z","updated_at":"2024-02-21T15:25:15.000Z","dependencies_parsed_at":null,"dependency_job_id":"6310667f-db4a-41aa-a968-3930524109fe","html_url":"https://github.com/drunomics/playwright-drupal-starter","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/drunomics%2Fplaywright-drupal-starter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drunomics%2Fplaywright-drupal-starter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drunomics%2Fplaywright-drupal-starter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drunomics%2Fplaywright-drupal-starter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/drunomics","download_url":"https://codeload.github.com/drunomics/playwright-drupal-starter/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248514794,"owners_count":21117039,"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":[],"created_at":"2024-11-25T13:44:14.196Z","updated_at":"2025-04-12T04:23:45.651Z","avatar_url":"https://github.com/drunomics.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Playwright drupal starter\n\nThis repository contains basic playwright setup together with scripts and commands to ease writing tests with a drupal project.\n\n## Introduction\n\nWe assume the drupal project used is based on [drupal recommended project](https://github.com/drupal/recommended-project)\nUnder tests/playwright you will find playwright setup as standalone node.js project.\nIncluded is a run.sh script which is used to simplify environment setup and to combine local and setup on a CI system.\n\nUnder drush/ directory you will find custom drush commands used to ease testing with drupal. \nOn example, there are commands to quickly create new content by cloning existing, or a command to cleanup content created during tests.\n\nIn the docker directory you will find docker-compose and dockerfile - files which are used to dockerize a playwright project.\nThis way we make it easy to run playwright tests on a CI system.\nPrepared docker setup includes:\n- dotenv package\n- wrangler package - as a way to publish html reports generated on a CI to cloudflare\n- docker-ce-cli package - in case both drupal and playwright are dockerized, we need a way to execute drush commands from playwright container in drupal container\n  - we setup a docker socket. See volumes section of service-playwright.yml\n\n## Instructions \n\nCopy the contents of this repo into your project.\nAdjust the needed variables:\n- in tests/playwright/run.sh adjust \n  - BASE_URL -\u003e set to url of your project\n  - HTTP_AUTH_USER and HTTP_AUTH_PASS -\u003e if your site is protected with basic auth\n  - CLI_CONTAINER (and DOCKER_EXEC_CLI)-\u003e if your drupal instance is dockerized, adjust this variable to the name of the drupal container where drush commands can be executed\n  - adjust the detection of local environment. THe script assumes the existance of ENV variable set to \"local\" in a local environment.\n  - feel free to adjust the script as needed\n\nIf you wish to use dockerized playwright instance, adjust the variables in docker/service-playwright.yml accordingly.\nWe included some helpers (tests/playwright/tests/helpers) and some initial example tests (tests/playwright/tests/)\n\nFor further assistance on setting up the playwright tests with drupal,feel free to post an issue.\nPlease refer to [the official playwright documentation](https://playwright.dev/docs/intro) for help about playwright tests.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrunomics%2Fplaywright-drupal-starter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdrunomics%2Fplaywright-drupal-starter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrunomics%2Fplaywright-drupal-starter/lists"}