https://api.tfl.gov.uk/Line/{{tubeLine}}/Status/{{fromDate}}/to/{{toDate}}
- {{tubeLine}} - victoria, district, bakerloo
- {{fromDate}} - YYYY-MM-DD
- {{toDate}} - YYYY-MM-DD
https://api.tfl.gov.uk/Line/{{tubeLine}}/Status/{{fromDate}}/to/{{toDate}}
Here are some useful links to help with your learning!
| const { lighthouse, prepareAudit } = require('cypress-audit'); | |
| module.exports = (on, config) => { | |
| on('before:browser:launch', (browser = {}, launchOptions) => { | |
| prepareAudit(launchOptions); | |
| }); | |
| on('task', { | |
| lighthouse: 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, |
| describe('Lighthouse', () => { | |
| it('should run performance audits', () => { | |
| cy.visit('/'); | |
| cy.lighthouse(); | |
| }); | |
| }); |
I hereby claim:
To claim this, I am signing this object: