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

Component testing on android emulator #3460

Merged
merged 4 commits into from
Nov 1, 2022

Conversation

prudhvi22
Copy link
Contributor

Changes

  • Replacing localhost with 10.0.2.2 in baseUrl for mobile component testing on mobile.

lib/core/client.js Outdated Show resolved Hide resolved
lib/core/client.js Outdated Show resolved Hide resolved

// For e2e and component testing on android emulator
if (!this.settings.desiredCapabilities.real_mobile && this.settings.desiredCapabilities.avd) {
value = value.replace(/localhost|127.0.0.1/g, '10.0.2.2');
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
value = value.replace(/localhost|127.0.0.1/g, '10.0.2.2');
value = value.replace('localhost', '10.0.2.2').replace('127.0.0.1', '10.0.2.2');



describe('Mobile Component Testing', function () {
it('test baseUrl for Andoid Emulator', function(){
Copy link
Member

Choose a reason for hiding this comment

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

can you add a test for '127.0.0.1' as well?

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