Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DO NOT MERGE: testing webrtc using multidim stack #240

Closed
wants to merge 7 commits into from

Conversation

maschad
Copy link
Member

@maschad maschad commented Jul 19, 2023

Related #235

@maschad maschad changed the title DO NOT MERGE: testing RTCDatachannels using multidim stack (#235) DO NOT MERGE: testing RTCDatachannels using multidim stack Jul 19, 2023
@maschad maschad changed the title DO NOT MERGE: testing RTCDatachannels using multidim stack DO NOT MERGE: testing webrtc using multidim stack Jul 19, 2023
@MarcoPolo
Copy link
Contributor

I don't understand why we're copying so much of the multidim-interop test runner code. Shouldn't this be able to live inside test-plans/multidim-interop/impl/no-js-libp2p/...?

const connectButton = page.getByTestId('connectButton');
const messageInputBox = page.getByTestId('message');
const sendButton = page.getByTestId('sendButton');
const receivedBox = page.getByTestId('receivebox');
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't understand. Are these referencing the same page? Are you not testing communication between two browsers?

Copy link
Member Author

@maschad maschad Aug 23, 2023

Choose a reason for hiding this comment

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

If the intention is to set up an RTCDataChannel between two browsers via playwright, wouldn't that essentially be a simplistic replication of the test here?

Copy link
Contributor

Choose a reason for hiding this comment

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

Yes, that's the goal. Except without any js-libp2p. From the original issue:

Maybe a very simple non-js-libp2p browser only interop test would be a good way to test if the browser is at fault.

Copy link
Member Author

Choose a reason for hiding this comment

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

I understand, but upon reconsideration I wondering what insights that may yield given this test passes consistently. Do you think it would be fruitful to run that test in the multidim interop setup?

Copy link
Contributor

@MarcoPolo MarcoPolo Aug 23, 2023

Choose a reason for hiding this comment

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

Does that test run with multiple browsers? Looking at it, it seems like it's run within a single context. By multiple browsers, I mean browser A connects to browser B over webrtc.

Copy link
Member Author

Choose a reason for hiding this comment

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

Gotcha, you are correct it does not run in multiple browsers.

@maschad maschad closed this Aug 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants