Add test for error message when no pages are found
See original GitHub issuehttps://github.com/cloudfour/lighthouse-parade/pull/30#issuecomment-700145996
import { scan } from './scan-task' test('Displays useful error if no pages are found while crawling', () => { const result = await scan('https://nonexistent-website.com') expect(result.error).toMatch(/No pages were found for this site/) })
We can get away with it for this test, but it’s hacky for tests to make live requests. Also very slow. Sooner than later we need to figure out a way to do this the right way. So maybe we take our time with that future issue when we get there.
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
40 Clever 404 Error Pages From Real Websites - HubSpot Blog
Inspire your own designs by taking a look at some of the best 404 error messages on the web.
Read more >How to Create a Spectacular 404 Error Page (with 12 Examples)
Type a URL that does not exist on your website to load the page. Whatever you do, please don't opt for any of...
Read more >How To Find & Fix 404 Errors On Your Website | Matthew Edgar
Begin by creating a custom variable to extract the page's title. Next, create a trigger to detect any title that matches the 404...
Read more >Error 404: 4 Ways to Fix It - Hostinger
Error 404 is a response code, meaning the server could not locate the requested content. Check this article to learn 4 steps to...
Read more >How to Fix Error 404 Not Found on Your WordPress Site - Kinsta
The Error 404 Not Found status code indicates that the origin server did not find the target resource. Check out these common causes...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’ll create a new issue…
@calebeby how do you feel about taking this on?