From 8d5e44d66dd89fc910356cf3833b72a54cf169c5 Mon Sep 17 00:00:00 2001
From: Brian Peiris <brianpeiris@gmail.com>
Date: Thu, 29 Mar 2018 20:12:44 -0700
Subject: [PATCH] account for different file name in smoke test

---
 src/react-components/profile-entry-panel.js | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/react-components/profile-entry-panel.js b/src/react-components/profile-entry-panel.js
index cc20df8a4..d0b3d053d 100644
--- a/src/react-components/profile-entry-panel.js
+++ b/src/react-components/profile-entry-panel.js
@@ -77,7 +77,8 @@ class ProfileEntryPanel extends Component {
             ref={inp => this.nameInput = inp}/>
           <iframe
             className="profile-entry__avatar-selector"
-            src={`avatar-selector.html#avatar_id=${this.state.avatar_id}`}
+            {/* HACK: Have to account for the smoke test server like this. Feels wrong though. */}
+            src={`${/smoke/i.test(location.hostname) ? 'smoke-' : ''}avatar-selector.html#avatar_id=${this.state.avatar_id}`}
             ref={ifr => this.avatarSelector = ifr}></iframe>
           <input className="profile-entry__form-submit" type="submit" value={formatMessage({ id: "profile.save" }) }/>
         </div>
-- 
GitLab