Skip to content
This repository was archived by the owner on Jul 10, 2025. It is now read-only.

feat(test): Automate smoke tests for JS Client [DXJ-293] #282

Merged
merged 12 commits into from
Mar 7, 2023

Conversation

coder11
Copy link
Contributor

@coder11 coder11 commented Mar 6, 2023

Fixes DXJ-293

Unfortunately automated tests fail in CI because of some issues with puppeteer. I've commented out the tests so that they don't fail in CI. To run test locally, global search/replace "commented_out_test" string with just "test" and run pnpm tests as usual.

My suggestion is to merge the PR as is and focus on fixing the CI pipeline in scope of a different PR.

@linear
Copy link

linear bot commented Mar 6, 2023

@coder11 coder11 requested review from nahsi and shamsartem March 7, 2023 11:45

const relay = {
multiaddr: '/ip4/127.0.0.1/tcp/4310/ws/p2p/12D3KooWKEprYXUXqoV5xSBeyqrWLpQLLH4PXfvVkDJtmcqmh5V3',
peerId: '12D3KooWKEprYXUXqoV5xSBeyqrWLpQLLH4PXfvVkDJtmcqmh5V3',
multiaddr: '/dns4/kras-01.fluence.dev/tcp/19001/wss/p2p/12D3KooWKnEqMfYo9zvfHmqTLpLdiHXPe4SVqUWcWHDJdFGrSmcA',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

seems like this should not be kras

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The reason I've switched to kras is that smoke test uses calls to registry and they fail on a single local node. At least that's true for test used in CRA and Node.js.

I will add a comment about that

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe to ask @nahsi to set up multiple local nodes like we have it everywhere else?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds like a plan. I suggest to live with kras for a little bit and figure out the best way to solve it though!

Copy link
Contributor

@shamsartem shamsartem left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Checkout my comment and also we should consider https://playwright.dev/ instead of puppeteer, because puppeteer is more for browser automation than testing. Also with playwright we can setup tests in a way that we can be sure everything is working in different browsers not only in chrome (as far as I remember puppeteer uses chrome). This could also solve the issue with CI. If you agree - please create a task for that

@coder11 coder11 merged commit 10d7eae into master Mar 7, 2023
@coder11 coder11 deleted the feat/automate-tests-dxj-293 branch March 7, 2023 16:07
@fluencebot fluencebot mentioned this pull request Mar 7, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants