From 29098747785c9bbb87c04636b9080b8314ac519e Mon Sep 17 00:00:00 2001 From: Romuald Brillout Date: Wed, 27 Nov 2024 17:47:24 +0100 Subject: [PATCH] remove CI --- docs/.test-dev.test.ts | 2 -- docs/.test-preview.test.ts | 2 -- docs/.testCiJob.json | 1 - docs/.testRun.ts | 26 -------------------------- test-e2e.config.mjs | 4 ---- 5 files changed, 35 deletions(-) delete mode 100644 docs/.test-dev.test.ts delete mode 100644 docs/.test-preview.test.ts delete mode 100644 docs/.testCiJob.json delete mode 100644 docs/.testRun.ts diff --git a/docs/.test-dev.test.ts b/docs/.test-dev.test.ts deleted file mode 100644 index fbafdbbcf2..0000000000 --- a/docs/.test-dev.test.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { testRun } from './.testRun' -testRun('pnpm run dev') diff --git a/docs/.test-preview.test.ts b/docs/.test-preview.test.ts deleted file mode 100644 index 6cd5bbe4da..0000000000 --- a/docs/.test-preview.test.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { testRun } from './.testRun' -testRun('pnpm run preview') diff --git a/docs/.testCiJob.json b/docs/.testCiJob.json deleted file mode 100644 index 4fb8a41f56..0000000000 --- a/docs/.testCiJob.json +++ /dev/null @@ -1 +0,0 @@ -{ "name": "https://vike.dev" } diff --git a/docs/.testRun.ts b/docs/.testRun.ts deleted file mode 100644 index e98055ef0a..0000000000 --- a/docs/.testRun.ts +++ /dev/null @@ -1,26 +0,0 @@ -export { testRun } - -import { page, test, expect, run, fetchHtml, getServerUrl, partRegex } from '@brillout/test-e2e' - -const textDOM = 'Next GenerationFrontend Framework' -const textHTML = partRegex`

]+/}>Next Generation
Frontend Framework

` - -function testRun(cmd: 'pnpm run dev' | 'pnpm run preview') { - { - // Preview => `npm run preview` takes a long time - // Dev => `Learn more collapsible` takes a long time - const additionalTimeout = 120 * 1000 - run(cmd, { additionalTimeout }) - } - - test('HTML', async () => { - const html = await fetchHtml('/') - expect(html).toMatch(textHTML) - }) - - test('DOM', async () => { - await page.goto(getServerUrl() + '/') - await page.waitForFunction(() => (window as any).__docpress_hydrationFinished) - expect(await page.textContent('h1')).toBe(textDOM) - }) -} diff --git a/test-e2e.config.mjs b/test-e2e.config.mjs index cd7c6f3192..5d1488d49f 100644 --- a/test-e2e.config.mjs +++ b/test-e2e.config.mjs @@ -49,10 +49,6 @@ function getCiJobs() { { name: 'Cloudflare', setups: [linux_nodeNew] - }, - { - name: 'https://vike.dev', - setups: [linux_nodeNew] } ] }