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, chore: Removing some dead code (now is the perfect time: selenium 4.9.0. is more strict on being w3c) #16665

Merged
merged 2 commits into from
Apr 22, 2023

Conversation

czp13
Copy link
Contributor

@czp13 czp13 commented Apr 21, 2023

Description

chromeOptions.setCapability("networkConnectionEnabled", true); was deprecated, and now it was removed from Selenium, but we used it in our chromeOptions, which caused an exception now as we tried to update to the latest selenium version.

This was needed to be able to do a setConnectionType() in Chrome.

BUT:

I have checked andsetConnectionType() is not used anymore, so I am removing code parts that are not w3 compliant anymore, it was used in PWA-related IT tests back then, but not now. In that case, no point to block us from using the latest/safest selenium versions. Did we use it back then for AirPlane mode and other modes potentially? So we can delete the whole related code now, I hope.

More info:

MobileEmuliation seems is w3c compatible🤞:

Fixes # (issue):
I need this to unblock this:

Type of change

  • Bugfix
  • Feature

Checklist

  • I have read the contribution guide: https://vaadin.com/docs/latest/guide/contributing/overview/
  • I have added a description following the guideline.
  • The issue is created in the corresponding repository and I have referenced it.
  • I have added tests to ensure my change is effective and works as intended.
  • New and existing tests are passing locally with my change.
  • I have performed a self-review and corrected misspellings.

Additional for Feature type of change

  • Enhancement / new feature was discussed in a corresponding GitHub issue and Acceptance Criteria was created.

czp13 added 2 commits April 21, 2023 20:21
…rkConnectionEnabled. I have checked and we do not use it anymore it in our tests (We used back then for AirPlane mode and so, but not anymore). So we can delete the whole code now I think.
@czp13 czp13 changed the title fix, chore: Selenium most up-to-date version is more strict on being w3c. fix, chore: Removing some dead code (Now is the perfect time: selenium 4.0.9 is more strict on being w3c) Apr 21, 2023
@czp13 czp13 changed the title fix, chore: Removing some dead code (Now is the perfect time: selenium 4.0.9 is more strict on being w3c) fix, chore: Removing some dead code (now is the perfect time: selenium 4.0.9 is more strict on being w3c) Apr 21, 2023
@czp13 czp13 changed the title fix, chore: Removing some dead code (now is the perfect time: selenium 4.0.9 is more strict on being w3c) fix, chore: Removing some dead code (now is the perfect time: selenium 4.9.0. is more strict on being w3c) Apr 21, 2023
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 4 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@github-actions
Copy link

Test Results

   982 files  ±0     982 suites  ±0   1h 18m 51s ⏱️ + 5m 5s
6 173 tests ±0  6 134 ✔️ ±0  39 💤 ±0  0 ±0 
6 421 runs  +5  6 377 ✔️ +5  44 💤 ±0  0 ±0 

Results for commit 947c6d4. ± Comparison against base commit 30cd3c4.

@Artur- Artur- merged commit 1779aed into main Apr 22, 2023
@Artur- Artur- deleted the fix-chore/make-tests-w3c branch April 22, 2023 15:18
@czp13 czp13 mentioned this pull request Apr 22, 2023
mcollovati added a commit that referenced this pull request Apr 24, 2023
ZheSun88 pushed a commit that referenced this pull request Aug 14, 2023
Selenium most up-to-date update is not letting anymore to setup networkConnectionEnabled. I have checked and we do not use it anymore it in our tests (We used back then for AirPlane mode and so, but not anymore). So we can delete the whole code now I think.
ZheSun88 added a commit that referenced this pull request Aug 16, 2023
* chore: update TB to 9.0.7

* chore: Removing some dead code (#16665)

Selenium most up-to-date update is not letting anymore to setup networkConnectionEnabled. I have checked and we do not use it anymore it in our tests (We used back then for AirPlane mode and so, but not anymore). So we can delete the whole code now I think.

---------

Co-authored-by: czp13 <61667986+czp13@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants