feat(aio): add search to 404 page (#19682)
The 404 page will now run a search based on the given URL to offer suggestions for the page that the user really wanted. PR Close #19682
This commit is contained in:

committed by
Tobias Bosch

parent
88c46feb20
commit
91fcfcb042
@ -100,4 +100,12 @@ describe('site App', function() {
|
||||
expect(page.getSearchResults().map(link => link.getText())).toContain('ControlValueAccessor');
|
||||
});
|
||||
});
|
||||
|
||||
describe('404 page', () => {
|
||||
it('should search the index for words found in the url', () => {
|
||||
page.navigateTo('http/router');
|
||||
expect(page.getSearchResults().map(link => link.getText())).toContain('Http');
|
||||
expect(page.getSearchResults().map(link => link.getText())).toContain('Router');
|
||||
});
|
||||
});
|
||||
});
|
||||
|
Reference in New Issue
Block a user