{"id":19771412,"url":"https://github.com/drunomics/behat-drupal-utils","last_synced_at":"2025-04-30T17:32:49.614Z","repository":{"id":41293743,"uuid":"131584205","full_name":"drunomics/behat-drupal-utils","owner":"drunomics","description":"Provides utilities for running smoke tests and various useful behat contexts.","archived":false,"fork":false,"pushed_at":"2023-04-06T08:09:39.000Z","size":59,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"2.x","last_synced_at":"2024-10-08T17:29:49.089Z","etag":null,"topics":["behat","drupal"],"latest_commit_sha":null,"homepage":"","language":"PHP","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}},"created_at":"2018-04-30T10:45:53.000Z","updated_at":"2024-05-09T15:50:40.000Z","dependencies_parsed_at":"2023-01-29T21:30:39.504Z","dependency_job_id":null,"html_url":"https://github.com/drunomics/behat-drupal-utils","commit_stats":null,"previous_names":[],"tags_count":32,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drunomics%2Fbehat-drupal-utils","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drunomics%2Fbehat-drupal-utils/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drunomics%2Fbehat-drupal-utils/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drunomics%2Fbehat-drupal-utils/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/drunomics","download_url":"https://codeload.github.com/drunomics/behat-drupal-utils/tar.gz/refs/heads/2.x","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224062258,"owners_count":17249274,"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":["behat","drupal"],"created_at":"2024-11-12T05:01:37.426Z","updated_at":"2024-11-12T05:01:57.046Z","avatar_url":"https://github.com/drunomics.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# drunomics Behat Drupal utils\n\n## Dependencies:\n\n- Behat\n- Drupal\n- Drupal Extension\n- Behat Driver with Javascript enabled (e.g. `dmore/behat-chrome-extension`)\n\nThe javascript step definitions are all tested with `dmore/behat-chrome-extension`.\n\n## Overview:\n\nThe package provides:\n\n* Various useful behat contexts, organized the following context classes:\n  - DrupalUtilsApiContext\n  - DrupalUtilsDrushContext\n  - MinkUtilsContext\n  - HttpHeadersContext\n\n  Depending on your behat configuration, the suiting context classes should be added in. It automatically includes\n  all compatible step definitions.\n* Optional additional context classes that add automatic checks or cleanup routines like:\n  - DrupalCleanTestContentApiContext\n  - DrupalErrorCheckApiContext\n\n## Smoke tests\n\nThe tests below ./examples/ ensure a simple Drupal login/logout works and a page of your site can be opened, while\nfrontend assets are loaded and no javascript or watchdog errors are triggered.\n\n### Setup\n\n* Add this package to your project's dev dependencies.\n* Add one of the three context to your behat.yml, optionall also add optional contexts.\n* Feel free to copy the example behat features.\n* Add the provided js file to your sites js. The listener is required to catch js errors.\n\n### Detecting watchdog errors\n##### Default behaviour\n\nWhen DrupalErrorCheckApiContext is added, all watchdog entries excluding `Notice`, `Info` and `Debug` will be detected\nand trigger PHP errors in the behat PHP runner automatically.\n\n##### Adjusting watchdog entries severity to `NOTICE` level\n\nTo change the error detection severity to `NOTICE` set the `fail_on_notice` parameter in the behat.yml to `TRUE`.\n\n```\ncontexts:\n  - drunomics\\BehatDrupalUtils\\Context\\DrupalErrorCheckApiContext:\n      fail_on_notice: TRUE\n```\n\n## Credits\n \n  developed by drunomics GmbH, hello@drunomics.com\n  Please refer to the commit log individual contributors.  \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrunomics%2Fbehat-drupal-utils","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdrunomics%2Fbehat-drupal-utils","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrunomics%2Fbehat-drupal-utils/lists"}