Skip to content

Commit

Permalink
feat: change cati url to case info
Browse files Browse the repository at this point in the history
  • Loading branch information
JAWilliamsONS committed Nov 3, 2023
1 parent 5112cbd commit f33919c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 25 deletions.
24 changes: 0 additions & 24 deletions src/App.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -188,27 +188,3 @@ describe("Given the API returns an empty list", () => {
cleanup();
});
});


describe("Given the initial external CATI URL", () => {

beforeAll(() => {
mock_server_request(200, []);
});

it("it should return with /CaseInfo", async () => {

const history = createMemoryHistory();
render(
<Router history={history}>
<App />
</Router>
);

expect(<ExternalLink text={"Link to CATI dashboard"} link={''} id={"cati-dashboard"} />).toBeInTheDocument;

// const externalCATIUrlElement = getByText("/Blaise");
// const externalCATIUrl = externalCATIUrlElement.textContent;
// expect(externalCATIUrl).toEqual("/Blaise");
});
});
2 changes: 1 addition & 1 deletion src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ function App(): ReactElement {
});

const [externalClientUrl, setExternalClientUrl] = useState<string>("External URL should be here");
const [externalCATIUrl, setExternalCATIUrl] = useState<string>("/Blaise");
const [externalCATIUrl, setExternalCATIUrl] = useState<string>("/Blaise/CaseInfo");

useEffect(function retrieveVariables() {
setExternalClientUrl(isDevEnv() ?
Expand Down

0 comments on commit f33919c

Please sign in to comment.