Skip to content

Conversation

@marraes
Copy link
Contributor

@marraes marraes commented Nov 29, 2023

Currently, Android executions use the browser-proxy implementation which has defined as the target URL the protocol static to http. However, if I run my TestCafe tests using ssl options, I receive an error, since the proxy is always targeting to a http URL.

This PR is related to the issue #162 and add an argument with the protocol to the browser-proxy based on the target URL, so the proxy target can have the same protocol from the actual target URL.

In addition to that, I fixed the tests Should return list of common browsers and devices and Should validate browser names, which were validating a list of common browsers, but the iPhone SE alias used in the test is not listed in the BrowserStack API/documentation

[closes #162]

… run in an Android device and fixed the test that validate the common browsers with a not existing iPhone version
@AlexKamaev
Copy link
Contributor

Thank you for making this PR. We'll review it.

@PavelMor25 PavelMor25 requested review from PavelMor25 and removed request for PavelMor25 December 21, 2023 06:00
Copy link
Contributor

@PavelMor25 PavelMor25 left a comment

Choose a reason for hiding this comment

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

Great work!

Could you please add a test to a separate file located at test/mocha/? You can use a test from the file test/mocha/testcafe-integration-test.js as a basis to demonstrate the functionality of your changes.

@PavelMor25 PavelMor25 merged commit 6f91454 into DevExpress:master Dec 28, 2023
PavelMor25 added a commit that referenced this pull request Dec 28, 2023
…Android devices (#211) (#213)

* Included the target protocol in the browser proxy, which is used when run in an Android device and fixed the test that validate the common browsers with a not existing iPhone version

* Update the Iphone SE test case name for the browser-names-test.js 'Should validate browser names'

* Removing comments from the browser-names-test.js

---------

Co-authored-by: Marcelo Arraes <mlparraes@outlook.com>
Co-authored-by: MarceloArraes <nf_mlopes@exactsciences.com>
PavelMor25 added a commit that referenced this pull request Dec 28, 2023
* build(deps): bump sharp from 0.30.7 to 0.32.6

Bumps [sharp](https://github.com/lovell/sharp) from 0.30.7 to 0.32.6.
- [Release notes](https://github.com/lovell/sharp/releases)
- [Changelog](https://github.com/lovell/sharp/blob/main/docs/changelog.md)
- [Commits](lovell/sharp@v0.30.7...v0.32.6)

---
updated-dependencies:
- dependency-name: sharp
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

* Add protocol argument to browser-proxy, allowing run using https for Android devices (#211) (#213)

* Included the target protocol in the browser proxy, which is used when run in an Android device and fixed the test that validate the common browsers with a not existing iPhone version

* Update the Iphone SE test case name for the browser-names-test.js 'Should validate browser names'

* Removing comments from the browser-names-test.js

---------

Co-authored-by: Marcelo Arraes <mlparraes@outlook.com>
Co-authored-by: MarceloArraes <nf_mlopes@exactsciences.com>

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: PavelMor25 <77216072+PavelMor25@users.noreply.github.com>
Co-authored-by: Marcelo Arraes <mlparraes@outlook.com>
Co-authored-by: MarceloArraes <nf_mlopes@exactsciences.com>
@marraes marraes deleted the add_browser_proxy_target_protocol branch March 4, 2024 13:56
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.

Session not running on https server for android

3 participants