
Product
Introducing Tier 1 Reachability: Precision CVE Triage for Enterprise Teams
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.
@devoxa/cypress-page-performance
Advanced tools
Save page performance metrics to disk during Cypress runs
Installation • Usage • Additional helpers • Contributors • License
yarn add --dev @devoxa/cypress-page-performance
cypress/support/commands.ts
:import { addSavePagePerformanceMetricsCommand } from '@devoxa/cypress-page-performance/command'
addSavePagePerformanceMetricsCommand()
cypress/plugins/index.ts
:import { addSavePagePerformanceMetricsPlugin } from '@devoxa/cypress-page-performance/plugin'
export default (on: Cypress.PluginEvents, config: Cypress.PluginConfigOptions) => {
addSavePagePerformanceMetricsPlugin(on, config)
// You can also optionally add an additional options object:
// addSavePagePerformanceMetricsPlugin(on, config, options)
return config
}
Additional available options:
fileName
: The name of the file that the page performance metrics are saved into, defaults to
page-performance-metrics.json
describe('SignInPage', () => {
it('renders the page successfully', () => {
cy.visit('/sign-in')
cy.savePagePerformanceMetrics('SignInPage')
})
})
After running Cypress, the plugin will output a JSON file with an array of page performance entries in the root directory.
[
{
"label": "SignInPage",
"encodedBodySize": 205048,
"resourceLoadFinish": 156.32,
"nextjsHydrationFinish": 137.64
}
]
The package also includes an additional helper that formats the output JSON as a markdown table using Github flavoured markdown, encoded for use in Github actions.
./node_modules/.bin/format-page-performance-metrics-as-gfm
Thanks goes to these wonderful people (emoji key):
David Reeß 💻 📖 ⚠️ |
This project follows the all-contributors specification. Contributions of any kind welcome!
MIT
FAQs
Save page performance metrics to disk during Cypress runs
The npm package @devoxa/cypress-page-performance receives a total of 0 weekly downloads. As such, @devoxa/cypress-page-performance popularity was classified as not popular.
We found that @devoxa/cypress-page-performance demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.
Research
/Security News
Ongoing npm supply chain attack spreads to DuckDB: multiple packages compromised with the same wallet-drainer malware.
Security News
The MCP Steering Committee has launched the official MCP Registry in preview, a central hub for discovering and publishing MCP servers.