From 1de55dde19056fb2b113e0ca4d96098b4afabec6 Mon Sep 17 00:00:00 2001 From: Tom Coleman Date: Thu, 11 Mar 2021 22:22:30 +1100 Subject: [PATCH 1/2] The tunnel is still hosted at chromaticqa.com --- bin/lib/getEnv.js | 2 +- bin/tasks/tunnel.test.js | 8 ++++---- bin/tasks/verify.test.js | 2 +- bin/ui/tasks/tunnel.stories.js | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/bin/lib/getEnv.js b/bin/lib/getEnv.js index 83891a7eb..3c1fa9a00 100644 --- a/bin/lib/getEnv.js +++ b/bin/lib/getEnv.js @@ -2,7 +2,7 @@ const { CHROMATIC_SERVER_PORT = 3004, CHROMATIC_INDEX_URL = 'https://index.chromatic.com', - CHROMATIC_TUNNEL_URL = 'https://tunnel.chromatic.com', + CHROMATIC_TUNNEL_URL = 'https://tunnel.chromaticqa.com', CHROMATIC_CREATE_TUNNEL = 'true', CHROMATIC_RETRIES = 5, CHROMATIC_POLL_INTERVAL = 1000, diff --git a/bin/tasks/tunnel.test.js b/bin/tasks/tunnel.test.js index c64480980..4caece30e 100644 --- a/bin/tasks/tunnel.test.js +++ b/bin/tasks/tunnel.test.js @@ -10,19 +10,19 @@ const log = { debug: jest.fn() }; describe('createTunnel', () => { it('opens the tunnel and sets the isolatorUrl on context', async () => { - openTunnel.mockReturnValue({ url: 'https://tunnel.chromatic.com' }); + openTunnel.mockReturnValue({ url: 'https://tunnel.chromaticqa.com' }); const ctx = { log, isolatorUrl: 'http://localhost:9001', options: {} }; await createTunnel(ctx); expect(openTunnel).toHaveBeenCalledWith({ log, port: '9001', https: undefined }); - expect(ctx.isolatorUrl).toBe('https://tunnel.chromatic.com/'); + expect(ctx.isolatorUrl).toBe('https://tunnel.chromaticqa.com/'); }); }); describe('testConnection', () => { it('tries to fetch the isolatorUrl', async () => { - testConnection({ isolatorUrl: 'https://tunnel.chromatic.com' }); - expect(fetch).toHaveBeenCalledWith('https://tunnel.chromatic.com'); + testConnection({ isolatorUrl: 'https://tunnel.chromaticqa.com' }); + expect(fetch).toHaveBeenCalledWith('https://tunnel.chromaticqa.com'); }); }); diff --git a/bin/tasks/verify.test.js b/bin/tasks/verify.test.js index 7390b6120..f14ba80b3 100644 --- a/bin/tasks/verify.test.js +++ b/bin/tasks/verify.test.js @@ -28,7 +28,7 @@ describe('createBuild', () => { git: { version: 'whatever', matchesBranch: () => false }, pkg: { version: '1.0.0' }, storybook: { version: '2.0.0', viewLayer: 'react', addons: [] }, - isolatorUrl: 'https://tunnel.chromatic.com/', + isolatorUrl: 'https://tunnel.chromaticqa.com/', }; it('creates a build on the index and puts it on context', async () => { diff --git a/bin/ui/tasks/tunnel.stories.js b/bin/ui/tasks/tunnel.stories.js index fd3794bb2..66b5d6532 100644 --- a/bin/ui/tasks/tunnel.stories.js +++ b/bin/ui/tasks/tunnel.stories.js @@ -6,7 +6,7 @@ export default { decorators: [(storyFn) => task(storyFn())], }; -const CHROMATIC_TUNNEL_URL = 'https://tunnel.chromatic.com'; +const CHROMATIC_TUNNEL_URL = 'https://tunnel.chromaticqa.com'; const cachedUrl = 'https://fdeulpymiq.tunnel.chromatic.com/iframe.html'; export const Initial = () => initial; From 0bce217583e32524776f7672d92f597ed15ac93d Mon Sep 17 00:00:00 2001 From: Tom Coleman Date: Thu, 11 Mar 2021 22:25:09 +1100 Subject: [PATCH 2/2] Couple more --- bin/ui/messages/errors/fatalError.stories.js | 2 +- bin/ui/tasks/tunnel.stories.js | 2 +- stories/timing.stories-disabled.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/ui/messages/errors/fatalError.stories.js b/bin/ui/messages/errors/fatalError.stories.js index 5569d39f9..9530f48fb 100644 --- a/bin/ui/messages/errors/fatalError.stories.js +++ b/bin/ui/messages/errors/fatalError.stories.js @@ -36,7 +36,7 @@ const context = { number: 1400, webUrl: 'https://www.chromatic.com/build?appId=5d67dc0374b2e300209c41e7&number=1400', }, - isolatorUrl: 'https://pfkaemtlit.tunnel.chromatic.com/iframe.html', + isolatorUrl: 'https://pfkaemtlit.tunnel.chromaticqa.com/iframe.html', cachedUrl: 'https://5d67dc0374b2e300209c41e7-pfkaemtlit.chromatic.com/iframe.html', }; diff --git a/bin/ui/tasks/tunnel.stories.js b/bin/ui/tasks/tunnel.stories.js index 66b5d6532..1b770e907 100644 --- a/bin/ui/tasks/tunnel.stories.js +++ b/bin/ui/tasks/tunnel.stories.js @@ -7,7 +7,7 @@ export default { }; const CHROMATIC_TUNNEL_URL = 'https://tunnel.chromaticqa.com'; -const cachedUrl = 'https://fdeulpymiq.tunnel.chromatic.com/iframe.html'; +const cachedUrl = 'https://fdeulpymiq.tunnel.chromaticqa.com/iframe.html'; export const Initial = () => initial; diff --git a/stories/timing.stories-disabled.js b/stories/timing.stories-disabled.js index 0cac2c528..3fd9f89bf 100644 --- a/stories/timing.stories-disabled.js +++ b/stories/timing.stories-disabled.js @@ -6,7 +6,7 @@ import React, { useState } from 'react'; // Some stories to test out timing code. Disabled by default // These stories are available at (e.g.) -// http://vmdbnybkvx.tunnel.staging-chromatic.com/iframe.html?id=timing--5s +// http://vmdbnybkvx.staging-tunnel.chromaticqa.com/iframe.html?id=timing--5s // A component that guarantees the load event won't load for timeout seconds // Note that the img loading tends to take a litle longer so this is a minimum