KaotoIO / kaoto-ui

Frontend for the Kaoto project to provide an easy-to-use integration framework based on Apache Camel.
https://www.kaoto.io
Apache License 2.0
88 stars 44 forks source link

Stabilize e2e tests with sandbox #2198

Open tplevko opened 1 year ago

tplevko commented 1 year ago

Please describe the task that needs to be done

The current state of e2e is that it works with the standalone deployment. The tests should be updated to be able to run with the recently added sandbox - currently several test failures due to instability are occurring.

lordrip commented 1 year ago

The command to run the e2e tests against the sandbox application are:

In the kaoto-ui folder, from a separate terminal execute:

yarn workspace @kaoto/sandbox run star --port 1337 --host 0.0.0.0

In the same folder, from another terminal

IFRAME_ENABLED=true yarn workspace @kaoto/kaoto-ui run e2e:headless

Feel free to rename the custom isomorphicGet() command or to rename the environment variable

tplevko commented 1 year ago

@lordrip https://github.com/KaotoIO/kaoto-ui/issues/2200 is introducing some challenges when stabilizing the e2e tests with the sandbox. It can probably be worked around, but I wanted to raise this, in case it's not an expected behaviour for the sandboxed app, potentially causing discrepancies with the VSCode plugin.

lordrip commented 1 year ago

@tplevko you're right, it's the same behavior as vscode-kaoto.

Definitely It's not ideal neither a desired behavior.

It's happening because we have 2 listeners, one from the code editor and another one from the multiplying architecture.

tplevko commented 1 year ago

Another inconsistency with the standalone - https://github.com/KaotoIO/kaoto-ui/issues/2227