Skip to content

Commit

Permalink
move url to one place
Browse files Browse the repository at this point in the history
  • Loading branch information
fzhao99 committed Dec 15, 2023
1 parent f80ccb3 commit 72d5e40
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions frontend/deploy-smoke.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ let { Builder } = require("selenium-webdriver");
const Chrome = require("selenium-webdriver/chrome");

const appUrl = process.env.REACT_APP_BASE_URL.includes("localhost")
? process.env.REACT_APP_BASE_URL
: `${process.env.REACT_APP_BASE_URL}/app`;
? `${process.env.REACT_APP_BASE_URL}/health/deploy-smoke-test`
: `${process.env.REACT_APP_BASE_URL}/app/health/deploy-smoke-test`;

console.log(`Running smoke test for ${appUrl}`);
const options = new Chrome.Options();
Expand All @@ -20,7 +20,7 @@ const driver = new Builder()
.build();
driver
.navigate()
.to(`${appUrl}/health/deploy-smoke-test`)
.to(`${appUrl}`)
.then(() => {
let value = driver.findElement({ id: "root" }).getText();
return value;
Expand Down

0 comments on commit 72d5e40

Please sign in to comment.