My question seems related to the below question, but I didn't quite get the solution provided Why is console.log() not printing anything?
When I run this program, it prints logs perfectly
const x = 'Hello';
const y = 'World!';
console.log(x, y);
But when I try this, it doesn't print console.log
Given("My demo test", async function (string, string2) {
console.log("**************** Test Started ********************")
if(string === "msn"){
string = "https://msn.com";
} else if (string === "google"){
string = "https://google.com";
}
gotoPage(string)
const imageLinkText = getText(':nth-child(2) > .gb_q')
console.log(" **************** " + imageLinkText + " **************** " )
})
How can I get console.log
output in the mac terminal?
I am using the below command to run my cypress tests in the chrome browser
cypress run --headed chrome --env tags="@smoke"