{"id":19845349,"url":"https://github.com/qavajs/steps-lighthouse","last_synced_at":"2025-05-01T21:30:28.796Z","repository":{"id":211084468,"uuid":"728160515","full_name":"qavajs/steps-lighthouse","owner":"qavajs","description":"Steps to perform lighthouse audit","archived":false,"fork":false,"pushed_at":"2023-12-06T11:14:45.000Z","size":96,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-08-08T23:12:29.120Z","etag":null,"topics":["qa","test-automation","testing"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/qavajs.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-12-06T11:03:18.000Z","updated_at":"2024-02-07T14:36:24.000Z","dependencies_parsed_at":"2023-12-06T12:26:32.723Z","dependency_job_id":"ea987e05-3599-470d-a173-97664ee802df","html_url":"https://github.com/qavajs/steps-lighthouse","commit_stats":null,"previous_names":["qavajs/steps-lighthouse"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qavajs%2Fsteps-lighthouse","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qavajs%2Fsteps-lighthouse/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qavajs%2Fsteps-lighthouse/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qavajs%2Fsteps-lighthouse/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/qavajs","download_url":"https://codeload.github.com/qavajs/steps-lighthouse/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224278484,"owners_count":17285080,"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":["qa","test-automation","testing"],"created_at":"2024-11-12T13:07:21.090Z","updated_at":"2025-05-01T21:30:28.789Z","avatar_url":"https://github.com/qavajs.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @qavajs/steps-lighthouse\nSteps to perform lighthouse audit.\nLibrary can work on top of playwright and webdriverio drivers\n\n## Installation\n`npm install @qavajs/steps-lighthouse`\n\n## Configuration\n```typescript\nexport default {\n    require: [\n        'node_modules/@qavajs/steps-wdio/index.js', //corresponding driver library should be imported first\n        'node_modules/@qavajs/steps-lighthouse/index.js'\n    ],\n    format: [\n        ['@qavajs/html-formatter', 'report.html']\n    ]\n    }\n```\n\n## Usage\nModule provides `I perform lighthouse audit as save results as {variable}` \nstep that performs audit, attaches html report and save results as \\{variable} variable\n\n```gherkin\nFeature: Lighthouse\n\n  Scenario: perform lighthouse audit\n    When I open 'https://qavajs.github.io/' url\n    # with default config\n    And I perform lighthouse audit and save results as 'lh'\n    # with provided config https://github.com/GoogleChrome/lighthouse/blob/main/docs/configuration.md\n    And I perform lighthouse audit and save results as 'lh':\n    \"\"\"\n    {\n        \"extends\": \"lighthouse:default\",\n        \"settings\": {\n            \"formFactor\": \"desktop\",\n            \"screenEmulation\": {\n                \"mobile\": false,\n                \"width\": 1350,\n                \"height\": 940,\n                \"deviceScaleFactor\": 1,\n                \"disabled\": false\n            }\n        }\n    }\n    \"\"\"\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqavajs%2Fsteps-lighthouse","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fqavajs%2Fsteps-lighthouse","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqavajs%2Fsteps-lighthouse/lists"}