diff --git a/.github/workflows/gcr-deploy.yaml b/.github/workflows/gcr-deploy.yaml index c637207..f15350f 100644 --- a/.github/workflows/gcr-deploy.yaml +++ b/.github/workflows/gcr-deploy.yaml @@ -21,7 +21,7 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v1 + uses: actions/checkout@v4 - name: gcloud auth id: 'auth' diff --git a/src/app/advanced/[engine]/index.html/TestForm.tsx b/src/app/advanced/[engine]/index.html/TestForm.tsx index 5eff390..6f867e6 100644 --- a/src/app/advanced/[engine]/index.html/TestForm.tsx +++ b/src/app/advanced/[engine]/index.html/TestForm.tsx @@ -1,19 +1,26 @@ 'use client' -import React, { useState } from 'react'; +import React, { useEffect, useState } from 'react'; import { TestResults } from '@/components/TestResults'; import { RegexEngine } from '@/engines/RegexEngine'; import OptionsInput from './OptionsInput'; -import { runTest as runBrowserTest, type TestInput, type TestOutput } from '@regexplanet/common'; +import { type TestInput, type TestOutput } from '@regexplanet/common'; import { useRouter } from 'next/navigation'; import { formDataToTestInput } from '@/functions/formDataToTestInput'; +import { runTestPage } from './runTestPage'; type TestFormProps = { engine: RegexEngine; - testUrl?: string; // override for use during engine development + testUrl: string; testInput: TestInput; + testOutput: TestOutput|null; } -function setTestInput(testInput: TestInput) { +const pendingTestOutput: TestOutput = { + success: true, + html: `
Running, please wait...