I hereby claim:
- I am mdcruz on github.
- I am mcruzdrake (https://keybase.io/mcruzdrake) on keybase.
- I have a public key ASBCW185bs95I5mv0OgStsx433oL9YLH7bxUBgq41XOcUAo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| describe('Lighthouse', () => { | |
| it('should run performance audits', () => { | |
| cy.visit('/'); | |
| cy.lighthouse(); | |
| }); | |
| }); |
| describe('Lighthouse', () => { | |
| it('should run performance audits using custom thresholds', () => { | |
| cy.visit('/'); | |
| const customThresholds = { | |
| performance: 50, | |
| accessibility: 50, | |
| seo: 70, | |
| 'first-contentful-paint': 2000, | |
| 'largest-contentful-paint': 3000, |
| const { lighthouse, prepareAudit } = require('cypress-audit'); | |
| module.exports = (on, config) => { | |
| on('before:browser:launch', (browser = {}, launchOptions) => { | |
| prepareAudit(launchOptions); | |
| }); | |
| on('task', { | |
| lighthouse: lighthouse(), | |
| }); |
Here are some useful links to help with your learning!
https://api.tfl.gov.uk/Line/{{tubeLine}}/Status/{{fromDate}}/to/{{toDate}}