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

fix: add id to websocket transport messages, remove injectables for NA #2946

Merged
merged 3 commits into from
Aug 14, 2023

Conversation

Artem-Babich
Copy link
Contributor

@Artem-Babich Artem-Babich commented Aug 8, 2023

Purpose

Support NA in TestCafe Studio

Approach

Injectables

Do not fill injactables for NA mode. We inject all scripts in the NA Resource Injector.
By removing these injectables we can now inject our custom scripts in NA mode on TestRun level

Transport

Add id field to messages in order to resolve the promises in the correct order. It is required for the TestCafe Studio. It can send multiple messages at the same time and do not await their answer

References

DevExpress/testcafe#7878

Pre-Merge TODO

  • Write tests for your proposed changes
  • Make sure that existing tests do not fail

Copy link
Collaborator

@Aleksey28 Aleksey28 left a comment

Choose a reason for hiding this comment

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

Please, look at my comments.

src/session/index.ts Outdated Show resolved Hide resolved
src/client/transport/transport-in-socket.ts Outdated Show resolved Hide resolved
@miherlosev miherlosev merged commit a9cbf2c into DevExpress:master Aug 14, 2023
2 checks passed
@Artem-Babich Artem-Babich deleted the fix-injectables-na branch August 14, 2023 11:19
@github-actions
Copy link

Release v31.5.0 addresses this.

Artem-Babich added a commit to DevExpress/testcafe that referenced this pull request Aug 21, 2023
## Purpose
Support NA in TestCafe Studio

## Approach
Described here: DevExpress/testcafe-hammerhead#2946

## References
DevExpress/testcafe-hammerhead#2946

## Pre-Merge TODO
- [ ] Write tests for your proposed changes
- [ ] Make sure that existing tests do not fail

---------

Co-authored-by: artem-babich <artem.babich@devexpress.com>
miherlosev pushed a commit to miherlosev/testcafe that referenced this pull request Aug 22, 2023
…press#7878)

## Purpose
Support NA in TestCafe Studio

## Approach
Described here: DevExpress/testcafe-hammerhead#2946

## References
DevExpress/testcafe-hammerhead#2946

## Pre-Merge TODO
- [ ] Write tests for your proposed changes
- [ ] Make sure that existing tests do not fail

---------

Co-authored-by: artem-babich <artem.babich@devexpress.com>
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.

3 participants