fresh-doctor-14925
11/08/2022, 10:40 AMfresh-doctor-14925
11/08/2022, 10:44 AMexit
statement at the end
https://linuxhint.com/bash-exit-code-of-last-command/mysterious-belgium-25713
11/08/2022, 10:46 AMfresh-doctor-14925
11/08/2022, 10:59 AMclean-intern-72668
11/08/2022, 11:14 AMfresh-doctor-14925
11/08/2022, 11:25 AMelse
. What happens if you flip the logic?
if [ $? == 0 ]
then
exit 0
else
exit 1
fi
clean-intern-72668
11/08/2022, 12:18 PMfuture-eye-56254
11/08/2022, 12:25 PMcy.exec('node /Users/sn/Documents/Kafka/consume2.js')
failed because the command exited with a non-zero code.
Pass {failOnNonZeroExit: false}
to ignore exit code failures.
Information about the failure:
Code: 1
Stdout:
{"level":"INFO","timestamp":"2022-11-08T12:17:12.850Z","logger":"kafkajs","message":"[Consumer] Starting","groupId":"my-app12"}
{"level":"INFO","timestamp":"2022-11-08T12:17:16.253Z","logger":"kafk...
Stderr:
undefined:1
undefined
^`
Not sure whats going wring here.
I have the code & the error here in the repo : https://github.com/asn-007/CypressKafka
Could some one please take a look and help.
Also is executing this through cy.exec the best way ?fresh-doctor-14925
11/08/2022, 12:34 PMfresh-doctor-14925
11/08/2022, 12:42 PMundefined
returned when you attempt to make the call with Cypress. Clue's in this error:
SyntaxError: Unexpected token u in JSON at position 0
green-boots-72737
11/08/2022, 1:27 PM<div id="foo"><div contenteditable="true"></div></div>
with Cypress? I would like to know before I loose my mind. cy.get('#foo [contenteditable]').type('Test')
does nothing at all. 😕fresh-doctor-14925
11/08/2022, 1:46 PM.type('Test', { force: true })
green-boots-72737
11/08/2022, 1:47 PMgreen-boots-72737
11/08/2022, 1:48 PMfresh-doctor-14925
11/08/2022, 1:50 PMcy.get('#foo [contenteditable]')
isn't working, the test would fail. What happens when you bring your mouse cursor over this get
event in the left hand bar?
Shouldn't matter that it's Slate. That should work in Cypress 5.5 and abovegreen-boots-72737
11/08/2022, 1:51 PMcy.get('#foo [contenteditable]')
works - there is no errorgreen-boots-72737
11/08/2022, 1:52 PMget
in the sidebar just makes that line a darker greygreen-boots-72737
11/08/2022, 1:52 PMgreen-boots-72737
11/08/2022, 1:53 PMgreen-boots-72737
11/08/2022, 1:53 PMfresh-doctor-14925
11/08/2022, 1:53 PM.click()
beforehand. I'm sure it was something like that when I was testing a Slate inputgreen-boots-72737
11/08/2022, 1:53 PMgreen-boots-72737
11/08/2022, 1:53 PMgreen-boots-72737
11/08/2022, 1:55 PMfresh-doctor-14925
11/08/2022, 1:55 PMgreen-boots-72737
11/08/2022, 1:57 PMgreen-boots-72737
11/08/2022, 1:57 PM.type()
works when I'm running Cypress component tests, but not when running Cypress erm..."normal" testsfresh-doctor-14925
11/08/2022, 1:58 PMgreen-boots-72737
11/08/2022, 1:58 PMfresh-doctor-14925
11/08/2022, 1:59 PM