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 deprecated usage of isFalsy() / isTruthy() methods in E2E tests #3294

Merged
merged 2 commits into from
Dec 8, 2023

Conversation

lawrencewin
Copy link
Contributor

@lawrencewin lawrencewin commented Dec 8, 2023

Platforms Impacted

  • iOS
  • macOS
  • win32 (Office)
  • windows
  • android

Description of changes

Currently, some E2E test cases spit out error messages by passing them in the .isFalsy() or .isTruthy() methods. Per webdriverio, this usage is deprecated. The correct usage is passing the error message into the .withContext(msg) method, before checking for falsiness/ truthiness. This PR removes all deprecated usages of .isFalsy() / .isTruthy(), replacing it with .withContext().

Verification

Tests pass / builds locally.

Pull request checklist

This PR has considered (when applicable):

  • Automated Tests
  • Documentation and examples
  • Keyboard Accessibility
  • Voiceover
  • Internationalization and Right-to-left Layouts

@lawrencewin lawrencewin requested a review from a team as a code owner December 8, 2023 22:43
@lawrencewin lawrencewin merged commit a564cf4 into microsoft:main Dec 8, 2023
11 checks passed
@lawrencewin lawrencewin deleted the e2e-withcontext-replacement branch December 8, 2023 23:56
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