Skip to content

Bug #12094 - Fix _appiumStart method#12095

Merged
christian-bromann merged 45 commits intowebdriverio:mainfrom
lararojasmr:bugfix/appium-start-function
Jan 29, 2024
Merged

Bug #12094 - Fix _appiumStart method#12095
christian-bromann merged 45 commits intowebdriverio:mainfrom
lararojasmr:bugfix/appium-start-function

Conversation

@lararojasmr
Copy link
Contributor

@lararojasmr lararojasmr commented Jan 26, 2024

Proposed changes

I've added a timeout to the method and fix the issue that happened when the promise emit data but is not include the information that is in the conditional, that could be a error.

I added a rejectOnce method to ensure that the reject is called once.

The bug is #12094.

Types of changes

  • Bugfix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update

Checklist

  • I have read the CONTRIBUTING doc
  • I have added tests that prove my fix is effective or that my feature works
  • I have added necessary documentation (if appropriate)
  • I have added proper type definitions for new commands (if appropriate)

Further comments

Reviewers: @webdriverio/project-committers

lararojasmr and others added 28 commits October 19, 2023 12:17
…smine. Update the Cucumber Step Mode.

Change constants and option names.
- using 'getErrorFromFailedTest' to format error messages
- removing unnecessary code for mocha and jasmine
- eslint and spaces before from.
- Property 'labels' does not exist on type 'ExecutableItem'.
- error TS2835: Relative import paths need explicit
- Allure Report Methods.
- Eslint Fixes
- Test Cases wdio-allure-reporter related
- Fix undefined in fixtures
- Fixes (base on comments)
- import check
- eslit command executed
- npm run test command executed
- no it.only in the commit
- Option name rollback - comment left
- Option for customized the test error when hook fails (put off for next ticket)
- bad merge from main (imports)
- Separate hook and test status getter
- review of test cases for fixtures.
- fixtures cannot be failed the worst status could be broken.

Signed-off-by: Manuel Lara <lararojas.mr@gmail.com>
The _startAppium is stucking whitout timeout when the promise emit 'data' but the data not includes the specific text.

I've set a timeout y default in 60sec by security, and implemented a validation to reject only once at the first failure.

Add some comments.
@lararojasmr lararojasmr changed the title #12094 Bugfix/appium start function webdriverio#12094 Bugfix/appium start function Jan 26, 2024
@lararojasmr
Copy link
Contributor Author

@christian-bromann please check this changes.

Copy link
Member

@christian-bromann christian-bromann left a comment

Choose a reason for hiding this comment

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

Some last comments/suggestions.

lararojasmr and others added 4 commits January 29, 2024 13:58
Co-authored-by: Christian Bromann <git@bromann.dev>
Co-authored-by: Christian Bromann <git@bromann.dev>
Signed-off-by: Lara, Manuel <lararojas.mr@gmail.com>
Copy link
Member

@christian-bromann christian-bromann left a comment

Choose a reason for hiding this comment

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

LGTM, thanks 👍

@lararojasmr
Copy link
Contributor Author

LGTM, thanks 👍

@christian-bromann I saw some TC failing. Anything that I can do? - I've just update the branch.

Signed-off-by: Lara, Manuel <lararojas.mr@gmail.com>
Signed-off-by: Lara, Manuel <lararojas.mr@gmail.com>
@lararojasmr
Copy link
Contributor Author

@christian-bromann I sent some fixes :) all test cases are passing now. Sorry hehe

Copy link
Member

@christian-bromann christian-bromann left a comment

Choose a reason for hiding this comment

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

LGTM 👍 thanks!

@christian-bromann christian-bromann added the PR: Bug Fix 🐛 PRs that contain bug fixes label Jan 29, 2024
@christian-bromann christian-bromann merged commit 91f261e into webdriverio:main Jan 29, 2024
@wdio-bot
Copy link
Contributor

Hey lararojasmr 👋

Thank you for your contribution to WebdriverIO! Your pull request has been marked as an "Expensable" contribution.
We've sent you an email with further instructions on how to claim your expenses from our development fund. Please
make sure to check your spam folder as well. If you have any questions, feel free to reach out to us at expense@webdriver.io
or in the contributing channel on Discord.

We are looking forward to more contributions from you in the future 🙌

Have a nice day,
The WebdriverIO Team 🤖

@picakia
Copy link

picakia commented Jan 31, 2024

Hey, I recently updated from 8.29.1 to 8.29.3 and it looks like this change introduced a bug with logging that generates countless "INFO @wdio/appium-service: Appium started with ID: 496446" messages as can be seen in this screenshot:
image

Reverting back to 8.29.1 resolves the issue

@lararojasmr
Copy link
Contributor Author

lararojasmr commented Jan 31, 2024 via email

@lararojasmr
Copy link
Contributor Author

@picakia @christian-bromann A new ticket should be created for this issue, I have the solution but I not sure about how proceed here.

@christian-bromann
Copy link
Member

@lararojasmr feel free to just raise a PR, no need to create an extra issue for it if you have a solution already. Thanks for looking into it.

@lararojasmr
Copy link
Contributor Author

@christian-bromann sorry to late I created a new Issue haha. But I've added the fixes in this PR ☝🏼

acoates-ms added a commit to microsoft/fluentui-react-native that referenced this pull request Apr 4, 2024
acoates-ms added a commit to microsoft/fluentui-react-native that referenced this pull request Apr 11, 2024
* Update to RN 0.73

* Change files

* RN 73 requires node 18

* Add 72 profile

* Update wdio/appium etc to get it running on node 18

* fix

* fix

* Update podfile locks

* fix

* fix

* fix

* see if building fixes resolution of focus-zone by e2e tests

* Try specifying reports dir with full path

* Try debug level reporting to identify error creating logs

* try enabling more logs

* alternate way to specify logfile.

* downgrade @wdio/appium-service to move before webdriverio/webdriverio#12095

* Test no-packager

* yarn init-test-app  (With cleanup)

* Try install Java18

* fix

* fix

* Android E2E fixes

* fix?

* fix

* fix

* Add more logging for E2E android test failure

* more logs

* more log

* Use actual scroll region, to avoid OS swipe gestures

* Increase android time out to navigate to page

* fix

* remove extra try/catch and logging

* Fix windows build

* test windows PR without node install

---------

Co-authored-by: Saad Najmi <sanajmi@microsoft.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Expensable $50 💸 PR: Bug Fix 🐛 PRs that contain bug fixes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants