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

Added --standalone flag #27

Merged
merged 4 commits into from
Mar 13, 2024
Merged

Conversation

itsspriyansh
Copy link
Contributor

@itsspriyansh itsspriyansh commented Feb 24, 2024

--standalone flag is added to make sure the tool downloads Android SDK to set up emulator. This will ensure that anything related to nightwatch or testing will not be downloaded.

Copy link
Member

@garg3133 garg3133 left a comment

Choose a reason for hiding this comment

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

The changes looks good.

I think we don't need to ask the browser question as well when doing --standalone setup as we don't really install the latest version Chrome browser on the emulator and asking to install Firefox is also unnecessary for --standalone usage.

We can instead mention it separately that if they want to install the latest version of Firefox as well with --standalone, use the --browser firefox flag.

src/commands/android/constants.ts Outdated Show resolved Hide resolved
@itsspriyansh
Copy link
Contributor Author

itsspriyansh commented Mar 3, 2024

@garg3133 By browser question, are you referring to the prompt that asks this following question:

'[Emulator] Select browser(s) to set up on Emulator:'

Should we remove this entirely in standalone mode?

@garg3133
Copy link
Member

garg3133 commented Mar 4, 2024

@itsspriyansh Yeah, and that can be done pretty easily. You just need to set the property meant for the answer to browser question beforehand and that question will be automatically skipped.

@itsspriyansh
Copy link
Contributor Author

itsspriyansh commented Mar 4, 2024

@garg3133 I have made the suggested change.

@itsspriyansh
Copy link
Contributor Author

itsspriyansh commented Mar 4, 2024

@garg3133 I have added the browser condition.

Copy link
Member

@garg3133 garg3133 left a comment

Choose a reason for hiding this comment

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

Just the last few things.

src/commands/android/index.ts Outdated Show resolved Hide resolved
@itsspriyansh itsspriyansh force-pushed the standalone branch 2 times, most recently from 2549f34 to 2d4a551 Compare March 6, 2024 20:36
@itsspriyansh
Copy link
Contributor Author

@garg3133 I haved made the suggested change and also added a test.

@itsspriyansh itsspriyansh force-pushed the standalone branch 2 times, most recently from 97dacf4 to c0ee1a9 Compare March 8, 2024 15:44
@itsspriyansh
Copy link
Contributor Author

@garg3133 Resolved everything.

@itsspriyansh
Copy link
Contributor Author

@garg3133 I haved added the test and modified the conditional statements.

src/commands/android/index.ts Outdated Show resolved Hide resolved
tests/unit_tests/commands/android/testIndex.js Outdated Show resolved Hide resolved
@garg3133 garg3133 merged commit f6c78e8 into nightwatchjs:main Mar 13, 2024
2 checks passed
@garg3133
Copy link
Member

Merged, thanks @itsspriyansh!

@garg3133
Copy link
Member

@itsspriyansh There are still some comments that we shouldn't have for the standalone usage, can you fix them as well?

image

@itsspriyansh
Copy link
Contributor Author

@garg3133 Thanks for the merge! And yes, I will raise a PR removing those comments.

@itsspriyansh itsspriyansh deleted the standalone branch March 13, 2024 08:21
itsspriyansh added a commit to itsspriyansh/mobile-helper-tool that referenced this pull request Mar 13, 2024
Co-authored-by: Priyansh Garg <priyanshgarg30@gmail.com>
itsspriyansh added a commit to itsspriyansh/mobile-helper-tool that referenced this pull request May 23, 2024
Co-authored-by: Priyansh Garg <priyanshgarg30@gmail.com>
itsspriyansh added a commit to itsspriyansh/mobile-helper-tool that referenced this pull request Jun 4, 2024
Co-authored-by: Priyansh Garg <priyanshgarg30@gmail.com>
itsspriyansh added a commit to itsspriyansh/mobile-helper-tool that referenced this pull request Jun 6, 2024
Co-authored-by: Priyansh Garg <priyanshgarg30@gmail.com>
itsspriyansh added a commit to itsspriyansh/mobile-helper-tool that referenced this pull request Jun 6, 2024
Co-authored-by: Priyansh Garg <priyanshgarg30@gmail.com>
itsspriyansh added a commit to itsspriyansh/mobile-helper-tool that referenced this pull request Jun 7, 2024
Co-authored-by: Priyansh Garg <priyanshgarg30@gmail.com>
itsspriyansh added a commit to itsspriyansh/mobile-helper-tool that referenced this pull request Jun 12, 2024
Co-authored-by: Priyansh Garg <priyanshgarg30@gmail.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.

2 participants