diff --git a/cypress/integration/i18n_spec.js b/cypress/integration/i18n_spec.js index 7d029f2aa9..8887d5bba9 100644 --- a/cypress/integration/i18n_spec.js +++ b/cypress/integration/i18n_spec.js @@ -11,14 +11,14 @@ describe('i18n', () => { it('provides an alternate link for available English languages', function () { cy.wrap(this.langValues).each((lang) => { cy.get(`link[hreflang="${lang}"]`).should(($linkTag) => { - let expectedHref = `https://docs.cypress.io/${lang}/guides/overview/why-cypress.html` + let expectedPath = `${lang}/guides/overview/why-cypress.html` if (lang === 'en') { - expectedHref = 'https://docs.cypress.io/guides/overview/why-cypress.html' + expectedPath = 'guides/overview/why-cypress.html' } expect($linkTag[0].rel).to.eq('alternate') - expect($linkTag[0].href).to.eq(expectedHref) + expect($linkTag[0].href).to.include(expectedPath) }) }) })