From 8e62dfbd6a181de0ed014563a5510aebd837d5a9 Mon Sep 17 00:00:00 2001 From: ebebbington Date: Wed, 15 May 2024 22:28:13 +0100 Subject: [PATCH] emove console tests --- .github/workflows/master.yml | 15 --------------- tests/console/bumper_test.ts | 27 --------------------------- 2 files changed, 42 deletions(-) delete mode 100644 tests/console/bumper_test.ts diff --git a/.github/workflows/master.yml b/.github/workflows/master.yml index 5553708..c05be57 100644 --- a/.github/workflows/master.yml +++ b/.github/workflows/master.yml @@ -21,21 +21,6 @@ jobs: docker exec drivers deno test -A --config tsconfig.json --no-check=remote tests/integration docker exec drivers deno test -A --config tsconfig.json --no-check=remote tests/unit - console-tests: - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v2 - - - name: Install Deno - uses: denoland/setup-deno@v1 - with: - deno-version: vx.x.x - - - name: Run Console Tests - run: | - deno test -A tests/console - linter: # Only one OS is required since fmt is cross platform runs-on: ubuntu-latest diff --git a/tests/console/bumper_test.ts b/tests/console/bumper_test.ts deleted file mode 100644 index a257469..0000000 --- a/tests/console/bumper_test.ts +++ /dev/null @@ -1,27 +0,0 @@ -import { assertEquals } from "../../deps.ts"; - -Deno.test("Updates chrome version in dockerfile", async () => { - const chromeVersionsRes = await fetch( - "https://versionhistory.googleapis.com/v1/chrome/platforms/win/channels/stable/versions", - ); - const { versions } = await chromeVersionsRes.json(); - const version = versions[0].version; - const originalContents = Deno.readTextFileSync( - "./tests/drivers.dockerfile", - ); - let newContent = originalContents; - newContent.replace(/CHROME_VERSION \".*\"/, 'CHROME VERSION "123"'); - Deno.writeTextFileSync( - "./tests/drivers.dockerfile", - newContent, - ); - const p = new Deno.Command("deno", { - args: ["run", "-A", "console/bumper_ci_service.ts"], - }); - const child = p.spawn(); - await child.status; - newContent = Deno.readTextFileSync( - "./tests/drivers.dockerfile", - ); - assertEquals(newContent.includes(`CHROME_VERSION "${version}"`), true); -});