diff --git a/e2e/tests/plugin-sitemap/sitemap.cy.ts b/e2e/tests/plugin-sitemap/sitemap.cy.ts index 82e8a56c9a..dcd16775d9 100644 --- a/e2e/tests/plugin-sitemap/sitemap.cy.ts +++ b/e2e/tests/plugin-sitemap/sitemap.cy.ts @@ -1,6 +1,8 @@ describe('sitemap', () => { + const BASE = Cypress.env('E2E_BASE') + it('have sitemap', () => { - cy.request('/sitemap.xml').then((res) => { + cy.request(`${BASE}sitemap.xml`).then((res) => { expect(res.body).to.be.a('string') expect(res.body).to.contain(' { }) it('frontmatter config', () => { - cy.request('/sitemap.xml').then((res) => { + cy.request(`${BASE}sitemap.xml`).then((res) => { expect(res.body).to.contain('yearly') }) }) it('exclude url', () => { - cy.request('/sitemap.xml').then((res) => { + cy.request(`${BASE}sitemap.xml`).then((res) => { expect(res.body).to.not.contain('/sitemap/config-exclude.html') expect(res.body).to.not.contain('/sitemap/frontmatter-exclude.html') expect(res.body).to.not.contain('/sitemap/meta-exclude.html') diff --git a/e2e/tests/theme-default/home.cy.ts b/e2e/tests/theme-default/home.cy.ts index cd0f183829..f074991663 100644 --- a/e2e/tests/theme-default/home.cy.ts +++ b/e2e/tests/theme-default/home.cy.ts @@ -1,6 +1,6 @@ -const BASE = Cypress.env('E2E_BASE') - describe('homepage', () => { + const BASE = Cypress.env('E2E_BASE') + it('has hero info', () => { const title = 'VuePress Ecosystem E2E' const description = 'VuePress Ecosystem E2E Test Site'