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 tests in v7 #10604

Merged
merged 6 commits into from Jun 22, 2023
Merged

Fix tests in v7 #10604

merged 6 commits into from Jun 22, 2023

Conversation

sriteja777
Copy link
Contributor

Proposed changes

  1. linux with node 14.x
    • This was failing due to conflicting @types/node versions installed in different packages
    • One solution was to upgrade npm 6 to npm 7
    • The current package-lock.json has of version of v2, but npm 6 only supports v1. So maybe that's why upgrading it solved the issue. Also tried deleting the existing package-lock.json and running npm install with npm 6, but that didn't solve the issue.
    • setup-node doesn't offer any way to specify npm version, so had to upgrade it using command - related issue
  2. find element tests
    • These were failing on Linux and Windows.
    • Made the same changes as you made for v8. But after this changes Mac tests were failing
    • On debugging found out that, the version of aria-query was getting installed as 5.1.3 on linux and windows as 5.2.1 on Mac (mac be due to caching or something). The output of roleElements was different in different versions, thereby causing the tests to fail.
    • So had upgraded this package version to 5.2.1 to be consisitent

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

@sriteja777
Copy link
Contributor Author

Bull still the windows tests are failing at deep selectors. Wasn't able to find the cause of this. Tried to reproduce this with a test, but that was failing with invalid selector

@christian-bromann can you help in fixing that windows test that is failing?

README.md Outdated
@@ -7,7 +7,7 @@
</p>

<p align="center">
Next-gen browser and mobile automation test framework for Node.js.
Next-gen browser and mobile automation test work for Node.js.
Copy link
Member

Choose a reason for hiding this comment

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

Why this change?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

this was just to make some PR. forgot to remove. removed

@christian-bromann
Copy link
Member

can you help in fixing that windows test that is failing?

The Windows tests have been failing for a bit longer and I am inclined to just ignore it.

@sriteja777
Copy link
Contributor Author

@christian-bromann In that case does that failing windows test will be a blocker for release?

@sriteja777
Copy link
Contributor Author

Windows tests passed. Don't know how 😆

@christian-bromann
Copy link
Member

Windows tests passed. Don't know how 😆

Seems like they are just flaky

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.

Thanks for the fix. Will make a new v7 release.

@christian-bromann christian-bromann added the PR: Internal 🏠 PRs that contain changes internals label Jun 22, 2023
@christian-bromann christian-bromann merged commit 908ddf3 into webdriverio:v7 Jun 22, 2023
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PR: Internal 🏠 PRs that contain changes internals
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants