Skip to content

Commit fc6150d

Browse files
fix: update cypress visit call for search page
1 parent 8c38c3c commit fc6150d

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

cypress/e2e/english/search-results/meta.cy.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import commonExpectedMeta from '../../../fixtures/common-expected-meta.json';
33
// Tests here should apply to search result page meta, regardless of the source
44
describe('Landing metadata', () => {
55
beforeEach(() => {
6-
cy.visit('/search/?query=mock%20search%20results');
6+
cy.visit('/search/');
77
});
88

99
it('<title>', () => {

cypress/e2e/english/search-results/search-results.cy.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,7 @@ const selectors = {
88
// Tests here should apply to all search results pages, which are built dynamically from calls to Algolia
99
describe('Search results', () => {
1010
beforeEach(() => {
11-
// Note: 11ty's dev server expects a trailing slash
12-
// immediately after `/search`, before the `query` URL
13-
// parameter. This does not happen on production since we
14-
// don't redirect from the non-trailing slash version of the
15-
// page to the trailing slash version
16-
cy.visit('/search/?query=mock%20search%20results');
11+
cy.visit('/search/');
1712
});
1813

1914
it('should render basic components', () => {

0 commit comments

Comments
 (0)