Skip to content

Commit

Permalink
feat: add some logs
Browse files Browse the repository at this point in the history
Signed-off-by: SuZhou-Joe <[email protected]>
  • Loading branch information
SuZhou-Joe committed Jan 24, 2024
1 parent 54e2d6f commit 50eacf6
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion cypress/utils/plugins/dashboards-assistant/commands.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,12 @@ Cypress.Commands.add('cleanRootAgent', () => {
Cypress.Commands.add('startDummyServer', () => {
// Not a good practice to start a server inside Cypress https://docs.cypress.io/guides/references/best-practices#Web-Servers
// But in out case, we need to reuse release e2e template and let's make it a tradeoff.
cy.exec(`nohup yarn start-dummy-llm-server > /dev/null 2>&1 &`);
cy.exec(`nohup yarn start-dummy-llm-server > /dev/null 2>&1 &`).then(
(result) => {
console.log(JSON.stringify(result));
cy.log(JSON.stringify(result));
}
);
});

Cypress.Commands.add('stopDummyServer', () => {
Expand Down

0 comments on commit 50eacf6

Please sign in to comment.